From b43497897b90e88bd3566c3cbc94109c23fd0d0c Mon Sep 17 00:00:00 2001
From: Grahame Grieve
Date: Mon, 11 May 2020 17:09:14 +1000
Subject: [PATCH] upgrade to v4.4.0, with attendant fixes
---
.../convertors/conv10_50/AuditEvent10_50.java | 66 +-
.../convertors/conv10_50/CarePlan10_50.java | 6 +-
.../convertors/conv10_50/ConceptMap10_50.java | 12 +-
.../conv10_50/DeviceUseStatement10_50.java | 18 +-
.../conv10_50/MedicationDispense10_50.java | 12 +-
.../conv10_50/MedicationStatement10_50.java | 17 +-
.../convertors/conv14_50/ConceptMap14_50.java | 12 +-
.../convertors/conv30_50/AuditEvent30_50.java | 61 +-
.../convertors/conv30_50/CarePlan30_50.java | 6 +-
.../convertors/conv30_50/ConceptMap30_50.java | 12 +-
.../conv30_50/DeviceUseStatement30_50.java | 24 +-
.../convertors/conv30_50/Medication30_50.java | 12 +-
.../MedicationAdministration30_50.java | 12 +-
.../conv30_50/MedicationDispense30_50.java | 13 +-
.../conv30_50/MedicationRequest30_50.java | 12 +-
.../conv30_50/MedicationStatement30_50.java | 16 +-
.../convertors/conv40_50/AuditEvent40_50.java | 62 +-
.../convertors/conv40_50/CarePlan40_50.java | 6 +-
.../convertors/conv40_50/ConceptMap40_50.java | 12 +-
.../convertors/conv40_50/Consent40_50.java | 6 +-
.../convertors/conv40_50/Device40_50.java | 4 +-
.../conv40_50/DeviceDefinition40_50.java | 4 -
.../conv40_50/DeviceRequest40_50.java | 13 +-
.../conv40_50/DeviceUseStatement40_50.java | 24 +-
.../conv40_50/Enumerations40_50.java | 12 +-
.../conv40_50/Immunization40_50.java | 8 +-
.../ImmunizationEvaluation40_50.java | 8 +-
.../ImmunizationRecommendation40_50.java | 8 +-
.../convertors/conv40_50/Medication40_50.java | 12 +-
.../MedicationAdministration40_50.java | 12 +-
.../conv40_50/MedicationDispense40_50.java | 24 +-
.../conv40_50/MedicationKnowledge40_50.java | 12 +-
.../conv40_50/MedicationRequest40_50.java | 12 +-
.../conv40_50/MedicationStatement40_50.java | 16 +-
.../MedicinalProductDefinition40_50.java | 18 +-
.../conv40_50/SubstancePolymer40_50.java | 26 +-
.../conv40_50/SupplyRequest40_50.java | 18 +-
.../configuration/CodeableConcept.java | 13 +
.../configuration/Coding.java | 5 +
.../configuration/Constants.java | 2 +-
.../configuration/ElementDefinition.java | 10 +-
.../configuration/JsonParser.java | 6 +
.../configuration/Parameters.java | 1 -
.../ParametersParameterComponent.java | 19 +
.../configuration/ResourceType.java | 26 +
.../configuration/TypeRefComponent.java | 2 +-
.../core/generator/analysis/Analyser.java | 10 +-
.../codegen/JavaEnumerationsGenerator.java | 6 +-
.../codegen/JavaParserJsonGenerator.java | 10 +-
.../generator/codegen/JavaTypeGenerator.java | 107 +
.../generator/engine/DefinitionsLoader.java | 16 +-
.../generator/engine/JavaCoreGenerator.java | 15 +-
.../org/hl7/fhir/r5/formats/JsonParser.java | 4515 +++++--
.../org/hl7/fhir/r5/formats/RdfParser.java | 1624 ++-
.../org/hl7/fhir/r5/formats/XmlParser.java | 3700 ++++--
.../java/org/hl7/fhir/r5/model/Account.java | 2 +-
.../hl7/fhir/r5/model/ActivityDefinition.java | 12 +-
.../java/org/hl7/fhir/r5/model/Address.java | 2 +-
.../model/AdministrableProductDefinition.java | 232 +-
.../org/hl7/fhir/r5/model/AdverseEvent.java | 38 +-
.../main/java/org/hl7/fhir/r5/model/Age.java | 2 +-
.../hl7/fhir/r5/model/AllergyIntolerance.java | 20 +-
.../org/hl7/fhir/r5/model/Annotation.java | 2 +-
.../org/hl7/fhir/r5/model/Appointment.java | 4 +-
.../fhir/r5/model/AppointmentResponse.java | 2 +-
.../org/hl7/fhir/r5/model/Attachment.java | 2 +-
.../org/hl7/fhir/r5/model/AuditEvent.java | 277 +-
.../hl7/fhir/r5/model/BackboneElement.java | 2 +-
.../org/hl7/fhir/r5/model/BackboneType.java | 2 +-
.../java/org/hl7/fhir/r5/model/Basic.java | 4 +-
.../java/org/hl7/fhir/r5/model/Binary.java | 2 +-
.../r5/model/BiologicallyDerivedProduct.java | 2 +-
.../org/hl7/fhir/r5/model/BodyStructure.java | 2 +-
.../java/org/hl7/fhir/r5/model/Bundle.java | 26 +-
.../hl7/fhir/r5/model/CanonicalResource.java | 2 +-
.../fhir/r5/model/CapabilityStatement.java | 2 +-
.../fhir/r5/model/CapabilityStatement2.java | 2 +-
.../java/org/hl7/fhir/r5/model/CarePlan.java | 101 +-
.../java/org/hl7/fhir/r5/model/CareTeam.java | 14 +-
.../org/hl7/fhir/r5/model/CatalogEntry.java | 2 +-
.../org/hl7/fhir/r5/model/ChargeItem.java | 2 +-
.../fhir/r5/model/ChargeItemDefinition.java | 2 +-
.../java/org/hl7/fhir/r5/model/Citation.java | 10139 ++++++++++++++++
.../java/org/hl7/fhir/r5/model/Claim.java | 2 +-
.../org/hl7/fhir/r5/model/ClaimResponse.java | 2 +-
.../hl7/fhir/r5/model/ClinicalImpression.java | 16 +-
.../hl7/fhir/r5/model/ClinicalUseIssue.java | 132 +-
.../org/hl7/fhir/r5/model/CodeSystem.java | 10 +-
.../hl7/fhir/r5/model/CodeableConcept.java | 25 +-
.../hl7/fhir/r5/model/CodeableReference.java | 2 +-
.../java/org/hl7/fhir/r5/model/Coding.java | 6 +-
.../org/hl7/fhir/r5/model/Communication.java | 8 +-
.../fhir/r5/model/CommunicationRequest.java | 4 +-
.../fhir/r5/model/CompartmentDefinition.java | 2 +-
.../org/hl7/fhir/r5/model/Composition.java | 18 +-
.../org/hl7/fhir/r5/model/ConceptMap.java | 10 +-
.../java/org/hl7/fhir/r5/model/Condition.java | 18 +-
.../fhir/r5/model/ConditionDefinition.java | 2 +-
.../java/org/hl7/fhir/r5/model/Consent.java | 108 +-
.../java/org/hl7/fhir/r5/model/Constants.java | 10 +-
.../org/hl7/fhir/r5/model/ContactDetail.java | 2 +-
.../org/hl7/fhir/r5/model/ContactPoint.java | 2 +-
.../java/org/hl7/fhir/r5/model/Contract.java | 4 +-
.../org/hl7/fhir/r5/model/Contributor.java | 2 +-
.../java/org/hl7/fhir/r5/model/Count.java | 2 +-
.../java/org/hl7/fhir/r5/model/Coverage.java | 2 +-
.../r5/model/CoverageEligibilityRequest.java | 2 +-
.../r5/model/CoverageEligibilityResponse.java | 2 +-
.../hl7/fhir/r5/model/DataRequirement.java | 2 +-
.../java/org/hl7/fhir/r5/model/DataType.java | 2 +-
.../org/hl7/fhir/r5/model/DetectedIssue.java | 10 +-
.../java/org/hl7/fhir/r5/model/Device.java | 1036 +-
.../hl7/fhir/r5/model/DeviceDefinition.java | 212 +-
.../org/hl7/fhir/r5/model/DeviceMetric.java | 2 +-
.../org/hl7/fhir/r5/model/DeviceRequest.java | 99 +-
.../hl7/fhir/r5/model/DeviceUseStatement.java | 486 +-
.../hl7/fhir/r5/model/DiagnosticReport.java | 20 +-
.../java/org/hl7/fhir/r5/model/Distance.java | 2 +-
.../hl7/fhir/r5/model/DocumentManifest.java | 12 +-
.../hl7/fhir/r5/model/DocumentReference.java | 10 +-
.../org/hl7/fhir/r5/model/DomainResource.java | 2 +-
.../java/org/hl7/fhir/r5/model/Dosage.java | 2 +-
.../java/org/hl7/fhir/r5/model/Duration.java | 2 +-
.../java/org/hl7/fhir/r5/model/Element.java | 2 +-
.../hl7/fhir/r5/model/ElementDefinition.java | 3 +-
.../java/org/hl7/fhir/r5/model/Encounter.java | 14 +-
.../java/org/hl7/fhir/r5/model/Endpoint.java | 2 +-
.../hl7/fhir/r5/model/EnrollmentRequest.java | 2 +-
.../hl7/fhir/r5/model/EnrollmentResponse.java | 2 +-
.../org/hl7/fhir/r5/model/Enumerations.java | 764 +-
.../org/hl7/fhir/r5/model/EpisodeOfCare.java | 14 +-
.../hl7/fhir/r5/model/EventDefinition.java | 12 +-
.../java/org/hl7/fhir/r5/model/Evidence.java | 631 +-
.../org/hl7/fhir/r5/model/EvidenceFocus.java | 2048 ++++
.../hl7/fhir/r5/model/EvidenceVariable.java | 871 +-
.../hl7/fhir/r5/model/ExampleScenario.java | 2 +-
.../fhir/r5/model/ExplanationOfBenefit.java | 2 +-
.../org/hl7/fhir/r5/model/Expression.java | 2 +-
.../java/org/hl7/fhir/r5/model/Extension.java | 2 +-
.../fhir/r5/model/FamilyMemberHistory.java | 20 +-
.../main/java/org/hl7/fhir/r5/model/Flag.java | 14 +-
.../main/java/org/hl7/fhir/r5/model/Goal.java | 8 +-
.../hl7/fhir/r5/model/GraphDefinition.java | 2 +-
.../java/org/hl7/fhir/r5/model/Group.java | 2 +-
.../hl7/fhir/r5/model/GuidanceResponse.java | 2 +-
.../hl7/fhir/r5/model/HealthcareService.java | 2 +-
.../java/org/hl7/fhir/r5/model/HumanName.java | 2 +-
.../org/hl7/fhir/r5/model/Identifier.java | 2 +-
.../org/hl7/fhir/r5/model/ImagingStudy.java | 8 +-
.../org/hl7/fhir/r5/model/Immunization.java | 223 +-
.../fhir/r5/model/ImmunizationEvaluation.java | 217 +-
.../r5/model/ImmunizationRecommendation.java | 215 +-
.../fhir/r5/model/ImplementationGuide.java | 20 +-
.../org/hl7/fhir/r5/model/Ingredient.java | 344 +-
.../org/hl7/fhir/r5/model/InsurancePlan.java | 2 +-
.../org/hl7/fhir/r5/model/Integer64Type.java | 14 +-
.../java/org/hl7/fhir/r5/model/Invoice.java | 2 +-
.../java/org/hl7/fhir/r5/model/Library.java | 12 +-
.../java/org/hl7/fhir/r5/model/Linkage.java | 6 +-
.../org/hl7/fhir/r5/model/ListResource.java | 22 +-
.../java/org/hl7/fhir/r5/model/Location.java | 2 +-
.../r5/model/ManufacturedItemDefinition.java | 229 +-
.../hl7/fhir/r5/model/MarketingStatus.java | 2 +-
.../java/org/hl7/fhir/r5/model/Measure.java | 12 +-
.../org/hl7/fhir/r5/model/MeasureReport.java | 4 +-
.../org/hl7/fhir/r5/model/Medication.java | 95 +-
.../r5/model/MedicationAdministration.java | 165 +-
.../hl7/fhir/r5/model/MedicationDispense.java | 208 +-
.../fhir/r5/model/MedicationKnowledge.java | 383 +-
.../hl7/fhir/r5/model/MedicationRequest.java | 111 +-
.../hl7/fhir/r5/model/MedicationUsage.java | 111 +-
.../r5/model/MedicinalProductDefinition.java | 496 +-
.../hl7/fhir/r5/model/MessageDefinition.java | 10 +-
.../org/hl7/fhir/r5/model/MessageHeader.java | 4 +-
.../main/java/org/hl7/fhir/r5/model/Meta.java | 1370 +--
.../hl7/fhir/r5/model/MetadataResource.java | 2 +-
.../hl7/fhir/r5/model/MolecularSequence.java | 2 +-
.../java/org/hl7/fhir/r5/model/Money.java | 2 +-
.../org/hl7/fhir/r5/model/NamingSystem.java | 2 +-
.../java/org/hl7/fhir/r5/model/Narrative.java | 4 +-
.../hl7/fhir/r5/model/NutritionIntake.java | 1545 ++-
.../org/hl7/fhir/r5/model/NutritionOrder.java | 8 +-
.../hl7/fhir/r5/model/NutritionProduct.java | 2304 ++++
.../org/hl7/fhir/r5/model/Observation.java | 22 +-
.../fhir/r5/model/ObservationDefinition.java | 52 +-
.../fhir/r5/model/OperationDefinition.java | 2 +-
.../hl7/fhir/r5/model/OperationOutcome.java | 2 +-
.../fhir/r5/model/OrderedDistribution.java | 2 +-
.../org/hl7/fhir/r5/model/Organization.java | 2 +-
.../r5/model/OrganizationAffiliation.java | 2 +-
.../r5/model/PackagedProductDefinition.java | 664 +-
.../fhir/r5/model/ParameterDefinition.java | 2 +-
.../org/hl7/fhir/r5/model/Parameters.java | 59 +-
.../java/org/hl7/fhir/r5/model/Patient.java | 2 +-
.../org/hl7/fhir/r5/model/PaymentNotice.java | 6 +-
.../fhir/r5/model/PaymentReconciliation.java | 2 +-
.../java/org/hl7/fhir/r5/model/Period.java | 2 +-
.../org/hl7/fhir/r5/model/Permission.java | 1614 +++
.../java/org/hl7/fhir/r5/model/Person.java | 2 +-
.../org/hl7/fhir/r5/model/PlanDefinition.java | 12 +-
.../org/hl7/fhir/r5/model/Population.java | 2 +-
.../org/hl7/fhir/r5/model/Practitioner.java | 2 +-
.../hl7/fhir/r5/model/PractitionerRole.java | 2 +-
.../java/org/hl7/fhir/r5/model/Procedure.java | 36 +-
.../hl7/fhir/r5/model/ProdCharacteristic.java | 2 +-
.../hl7/fhir/r5/model/ProductShelfLife.java | 2 +-
.../org/hl7/fhir/r5/model/Provenance.java | 6 +-
.../java/org/hl7/fhir/r5/model/Quantity.java | 2 +-
.../org/hl7/fhir/r5/model/Questionnaire.java | 18 +-
.../fhir/r5/model/QuestionnaireResponse.java | 4 +-
.../java/org/hl7/fhir/r5/model/Range.java | 2 +-
.../java/org/hl7/fhir/r5/model/Ratio.java | 2 +-
.../java/org/hl7/fhir/r5/model/Reference.java | 2 +-
.../fhir/r5/model/RegulatedAuthorization.java | 304 +-
.../hl7/fhir/r5/model/RelatedArtifact.java | 2 +-
.../org/hl7/fhir/r5/model/RelatedPerson.java | 2 +-
.../org/hl7/fhir/r5/model/RequestGroup.java | 2 +-
.../org/hl7/fhir/r5/model/ResearchStudy.java | 2 +-
.../hl7/fhir/r5/model/ResearchSubject.java | 2 +-
.../java/org/hl7/fhir/r5/model/Resource.java | 2 +-
.../hl7/fhir/r5/model/ResourceFactory.java | 23 +-
.../org/hl7/fhir/r5/model/ResourceType.java | 94 +-
.../org/hl7/fhir/r5/model/RiskAssessment.java | 14 +-
.../org/hl7/fhir/r5/model/SampledData.java | 2 +-
.../java/org/hl7/fhir/r5/model/Schedule.java | 2 +-
.../hl7/fhir/r5/model/SearchParameter.java | 2 +-
.../org/hl7/fhir/r5/model/ServiceRequest.java | 14 +-
.../java/org/hl7/fhir/r5/model/Signature.java | 2 +-
.../main/java/org/hl7/fhir/r5/model/Slot.java | 2 +-
.../java/org/hl7/fhir/r5/model/Specimen.java | 2 +-
.../hl7/fhir/r5/model/SpecimenDefinition.java | 42 +-
.../java/org/hl7/fhir/r5/model/Statistic.java | 2 +-
.../fhir/r5/model/StructureDefinition.java | 26 +-
.../org/hl7/fhir/r5/model/StructureMap.java | 10 +-
.../org/hl7/fhir/r5/model/Subscription.java | 1718 +--
.../hl7/fhir/r5/model/SubscriptionStatus.java | 680 ++
.../{Topic.java => SubscriptionTopic.java} | 1070 +-
.../java/org/hl7/fhir/r5/model/Substance.java | 2 +-
.../hl7/fhir/r5/model/SubstanceAmount.java | 2 +-
.../fhir/r5/model/SubstanceDefinition.java | 228 +-
.../fhir/r5/model/SubstanceNucleicAcid.java | 2 +-
.../hl7/fhir/r5/model/SubstancePolymer.java | 502 +-
.../hl7/fhir/r5/model/SubstanceProtein.java | 2 +-
.../model/SubstanceReferenceInformation.java | 2 +-
.../r5/model/SubstanceSourceMaterial.java | 2 +-
.../org/hl7/fhir/r5/model/SupplyDelivery.java | 8 +-
.../org/hl7/fhir/r5/model/SupplyRequest.java | 83 +-
.../main/java/org/hl7/fhir/r5/model/Task.java | 8 +-
.../r5/model/TerminologyCapabilities.java | 2 +-
.../org/hl7/fhir/r5/model/TestReport.java | 2 +-
.../org/hl7/fhir/r5/model/TestScript.java | 134 +-
.../java/org/hl7/fhir/r5/model/Timing.java | 2 +-
.../hl7/fhir/r5/model/TriggerDefinition.java | 2 +-
.../org/hl7/fhir/r5/model/UsageContext.java | 2 +-
.../java/org/hl7/fhir/r5/model/ValueSet.java | 10 +-
.../hl7/fhir/r5/model/VerificationResult.java | 4 +-
.../hl7/fhir/r5/model/VisionPrescription.java | 8 +-
.../r5/renderers/TerminologyRenderer.java | 4 +-
.../fhir/r5/utils/StructureMapUtilities.java | 10 +-
.../instance/InstanceValidator.java | 25 +-
.../validation/instance/utils/NodeStack.java | 5 +
pom.xml | 2 +-
262 files changed, 34261 insertions(+), 9835 deletions(-)
create mode 100644 org.hl7.fhir.core.generator/configuration/ParametersParameterComponent.java
create mode 100644 org.hl7.fhir.core.generator/configuration/ResourceType.java
create mode 100644 org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaTypeGenerator.java
create mode 100644 org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Citation.java
create mode 100644 org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceFocus.java
create mode 100644 org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionProduct.java
create mode 100644 org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Permission.java
create mode 100644 org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionStatus.java
rename org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/{Topic.java => SubscriptionTopic.java} (68%)
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/AuditEvent10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/AuditEvent10_50.java
index 8205c3ec9..f2df3d922 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/AuditEvent10_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/AuditEvent10_50.java
@@ -1,6 +1,7 @@
package org.hl7.fhir.convertors.conv10_50;
import org.hl7.fhir.convertors.VersionConvertor_10_50;
+import org.hl7.fhir.convertors.VersionConvertor_30_50;
import org.hl7.fhir.exceptions.FHIRException;
public class AuditEvent10_50 {
@@ -14,8 +15,11 @@ public class AuditEvent10_50 {
for (org.hl7.fhir.r5.model.Coding t : src.getSubtype()) tgt.getEvent().addSubtype(VersionConvertor_10_50.convertCoding(t));
tgt.getEvent().setActionElement(convertAuditEventAction(src.getActionElement()));
tgt.getEvent().setDateTime(src.getRecorded());
- tgt.getEvent().setOutcomeElement(convertAuditEventOutcome(src.getOutcomeElement()));
- tgt.getEvent().setOutcomeDesc(src.getOutcomeDesc());
+
+ if (src.hasOutcome() && src.getOutcome().hasCoding("http://terminology.hl7.org/CodeSystem/audit-event-outcome"))
+ tgt.getEvent().getOutcomeElement().setValueAsString(src.getOutcome().getCode("http://terminology.hl7.org/CodeSystem/audit-event-outcome"));
+ if (src.getOutcome().hasText())
+ tgt.getEvent().setOutcomeDescElement(VersionConvertor_10_50.convertString(src.getOutcome().getTextElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getPurposeOfEvent()) for (org.hl7.fhir.r5.model.Coding cc : t.getCoding()) tgt.getEvent().addPurposeOfEvent(VersionConvertor_10_50.convertCoding(cc));
for (org.hl7.fhir.r5.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addParticipant(convertAuditEventAgentComponent(t));
if (src.hasSource())
@@ -35,8 +39,12 @@ public class AuditEvent10_50 {
for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getSubtype()) tgt.addSubtype(VersionConvertor_10_50.convertCoding(t));
tgt.setActionElement(convertAuditEventAction(src.getEvent().getActionElement()));
tgt.setRecorded(src.getEvent().getDateTime());
- tgt.setOutcomeElement(convertAuditEventOutcome(src.getEvent().getOutcomeElement()));
- tgt.setOutcomeDesc(src.getEvent().getOutcomeDesc());
+
+ if (src.getEvent().hasOutcome())
+ tgt.getOutcome().addCoding().setSystem("http://terminology.hl7.org/CodeSystem/audit-event-outcome").setCode(src.getEvent().getOutcome().toCode());
+ if (src.getEvent().hasOutcomeDesc())
+ tgt.getOutcome().setTextElement(VersionConvertor_10_50.convertString(src.getEvent().getOutcomeDescElement()));
+
for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getPurposeOfEvent()) tgt.addPurposeOfEvent().addCoding(VersionConvertor_10_50.convertCoding(t));
}
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent t : src.getParticipant()) tgt.addAgent(convertAuditEventAgentComponent(t));
@@ -258,55 +266,7 @@ public class AuditEvent10_50 {
return tgt;
}
- static public org.hl7.fhir.dstu2.model.Enumeration convertAuditEventOutcome(org.hl7.fhir.r5.model.Enumeration src) 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.AuditEvent.AuditEventOutcomeEnumFactory());
- VersionConvertor_10_50.copyElement(src, tgt);
- switch(src.getValue()) {
- case _0:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._0);
- break;
- case _4:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._4);
- break;
- case _8:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._8);
- break;
- case _12:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._12);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome.NULL);
- break;
- }
- return tgt;
- }
-
- static public org.hl7.fhir.r5.model.Enumeration convertAuditEventOutcome(org.hl7.fhir.dstu2.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.AuditEvent.AuditEventOutcomeEnumFactory());
- VersionConvertor_10_50.copyElement(src, tgt);
- switch(src.getValue()) {
- case _0:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._0);
- break;
- case _4:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._4);
- break;
- case _8:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._8);
- break;
- case _12:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._12);
- break;
- default:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome.NULL);
- break;
- }
- return tgt;
- }
+
static public org.hl7.fhir.r5.model.Enumeration convertAuditEventParticipantNetworkType(org.hl7.fhir.dstu2.model.Enumeration src) throws FHIRException {
if (src == null || src.isEmpty())
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 bb26c4d67..83f4606a9 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
@@ -107,7 +107,7 @@ public class CarePlan10_50 {
if (src.hasScheduled())
tgt.setScheduled(VersionConvertor_10_50.convertType(src.getScheduled()));
if (src.hasLocation())
- tgt.setLocation(VersionConvertor_10_50.convertReference(src.getLocation()));
+ tgt.getLocation().setReference(VersionConvertor_10_50.convertReference(src.getLocation()));
for (org.hl7.fhir.dstu2.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_50.convertReference(t));
if (src.hasProduct())
tgt.setProduct(VersionConvertor_10_50.convertType(src.getProduct()));
@@ -138,8 +138,8 @@ public class CarePlan10_50 {
tgt.setProhibitedElement(VersionConvertor_10_50.convertBoolean(src.getDoNotPerformElement()));
if (src.hasScheduled())
tgt.setScheduled(VersionConvertor_10_50.convertType(src.getScheduled()));
- if (src.hasLocation())
- tgt.setLocation(VersionConvertor_10_50.convertReference(src.getLocation()));
+ if (src.getLocation().hasReference())
+ tgt.setLocation(VersionConvertor_10_50.convertReference(src.getLocation().getReference()));
for (org.hl7.fhir.r5.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_50.convertReference(t));
if (src.hasProduct())
tgt.setProduct(VersionConvertor_10_50.convertType(src.getProduct()));
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/ConceptMap10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/ConceptMap10_50.java
index 289ab7fa3..0a0f73b7c 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/ConceptMap10_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/ConceptMap10_50.java
@@ -134,10 +134,10 @@ public class ConceptMap10_50 {
case EQUIVALENT:
tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
break;
- case SOURCENARROWERTARGET:
+ case SOURCEISNARROWERTHANTARGET:
tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.WIDER);
break;
- case SOURCEBROADERTARGET:
+ case SOURCEISBROADERTHANTARGET:
tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.NARROWER);
break;
case NOTRELATEDTO:
@@ -165,16 +165,16 @@ public class ConceptMap10_50 {
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
break;
case WIDER:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISNARROWERTHANTARGET);
break;
case SUBSUMES:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISNARROWERTHANTARGET);
break;
case NARROWER:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISBROADERTHANTARGET);
break;
case SPECIALIZES:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISBROADERTHANTARGET);
break;
case INEXACT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
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 d16f2f53f..3d221d3f0 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
@@ -13,14 +13,14 @@ public class DeviceUseStatement10_50 {
org.hl7.fhir.r5.model.DeviceUseStatement tgt = new org.hl7.fhir.r5.model.DeviceUseStatement();
VersionConvertor_10_50.copyDomainResource(src, tgt);
if (src.hasBodySiteCodeableConcept())
- tgt.setBodySite(VersionConvertor_10_50.convertCodeableConcept(src.getBodySiteCodeableConcept()));
+ tgt.getBodySite().setConcept(VersionConvertor_10_50.convertCodeableConcept(src.getBodySiteCodeableConcept()));
if (src.hasDevice())
- tgt.setDevice(VersionConvertor_10_50.convertReference(src.getDevice()));
+ tgt.getDevice().setReference(VersionConvertor_10_50.convertReference(src.getDevice()));
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.getIndication()) tgt.addReason(VersionConvertor_10_50.convertCodeableConceptToCodableReference(t));
for (org.hl7.fhir.dstu2.model.StringType t : src.getNotes()) tgt.addNote().setText(t.getValue());
if (src.hasRecordedOnElement())
- tgt.setRecordedOnElement(VersionConvertor_10_50.convertDateTime(src.getRecordedOnElement()));
+ tgt.setDateAssertedElement(VersionConvertor_10_50.convertDateTime(src.getRecordedOnElement()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_10_50.convertReference(src.getSubject()));
if (src.hasTiming())
@@ -33,16 +33,16 @@ public class DeviceUseStatement10_50 {
return null;
org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement();
VersionConvertor_10_50.copyDomainResource(src, tgt);
- if (src.hasBodySite())
- tgt.setBodySite(VersionConvertor_10_50.convertType(src.getBodySite()));
- if (src.hasDevice())
- tgt.setDevice(VersionConvertor_10_50.convertReference(src.getDevice()));
+ if (src.getBodySite().hasConcept())
+ tgt.setBodySite(VersionConvertor_10_50.convertType(src.getBodySite().getConcept()));
+ if (src.getDevice().hasReference())
+ tgt.setDevice(VersionConvertor_10_50.convertReference(src.getDevice().getReference()));
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_50.convertIdentifier(t));
for (CodeableReference t : src.getReason()) if (t.hasConcept())
tgt.addIndication(VersionConvertor_10_50.convertCodeableConcept(t.getConcept()));
for (Annotation t : src.getNote()) tgt.addNotes(t.getText());
- if (src.hasRecordedOnElement())
- tgt.setRecordedOnElement(VersionConvertor_10_50.convertDateTime(src.getRecordedOnElement()));
+ if (src.hasDateAssertedElement())
+ tgt.setRecordedOnElement(VersionConvertor_10_50.convertDateTime(src.getDateAssertedElement()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_10_50.convertReference(src.getSubject()));
if (src.hasTiming())
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/MedicationDispense10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/MedicationDispense10_50.java
index 79bdd9196..dad235aaf 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/MedicationDispense10_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/MedicationDispense10_50.java
@@ -17,8 +17,10 @@ public class MedicationDispense10_50 {
tgt.addIdentifier(VersionConvertor_10_50.convertIdentifier(src.getIdentifier()));
if (src.hasStatusElement())
tgt.setStatusElement(convertMedicationDispenseStatus(src.getStatusElement()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_10_50.convertType(src.getMedication()));
+ if (src.hasMedicationCodeableConcept())
+ tgt.getMedication().setConcept(VersionConvertor_10_50.convertCodeableConcept(src.getMedicationCodeableConcept()));
+ if (src.hasMedicationReference())
+ tgt.getMedication().setReference(VersionConvertor_10_50.convertReference(src.getMedicationReference()));
if (src.hasPatient())
tgt.setSubject(VersionConvertor_10_50.convertReference(src.getPatient()));
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthorizingPrescription()) tgt.addAuthorizingPrescription(VersionConvertor_10_50.convertReference(t));
@@ -52,8 +54,10 @@ public class MedicationDispense10_50 {
tgt.setIdentifier(VersionConvertor_10_50.convertIdentifier(src.getIdentifierFirstRep()));
if (src.hasStatusElement())
tgt.setStatusElement(convertMedicationDispenseStatus(src.getStatusElement()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_10_50.convertType(src.getMedication()));
+ if (src.getMedication().hasConcept())
+ tgt.setMedication(VersionConvertor_10_50.convertType(src.getMedication().getConcept()));
+ if (src.getMedication().hasReference())
+ tgt.setMedication(VersionConvertor_10_50.convertType(src.getMedication().getReference()));
if (src.hasSubject())
tgt.setPatient(VersionConvertor_10_50.convertReference(src.getSubject()));
for (org.hl7.fhir.r5.model.Reference t : src.getAuthorizingPrescription()) tgt.addAuthorizingPrescription(VersionConvertor_10_50.convertReference(t));
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 8d6757783..6b735f80a 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
@@ -1,6 +1,7 @@
package org.hl7.fhir.convertors.conv10_50;
import org.hl7.fhir.convertors.VersionConvertor_10_50;
+import org.hl7.fhir.convertors.VersionConvertor_30_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.Dosage.DosageDoseAndRateComponent;
@@ -14,8 +15,12 @@ public class MedicationStatement10_50 {
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_50.convertIdentifier(t));
if (src.hasStatus())
tgt.setStatusElement(convertMedicationStatementStatus(src.getStatusElement()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_10_50.convertType(src.getMedication()));
+ if (src.getMedication().hasConcept()) {
+ tgt.setMedication(VersionConvertor_10_50.convertType(src.getMedication().getConcept()));
+ }
+ if (src.getMedication().hasReference()) {
+ tgt.setMedication(VersionConvertor_10_50.convertType(src.getMedication().getReference()));
+ }
if (src.hasSubject())
tgt.setPatient(VersionConvertor_10_50.convertReference(src.getSubject()));
if (src.hasEffective())
@@ -38,8 +43,12 @@ public class MedicationStatement10_50 {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_50.convertIdentifier(t));
if (src.hasStatus())
tgt.setStatusElement(convertMedicationStatementStatus(src.getStatusElement()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_10_50.convertType(src.getMedication()));
+ if (src.hasMedicationCodeableConcept()) {
+ tgt.getMedication().setConcept(VersionConvertor_10_50.convertCodeableConcept(src.getMedicationCodeableConcept()));
+ }
+ if (src.hasMedicationReference()) {
+ tgt.getMedication().setReference(VersionConvertor_10_50.convertReference(src.getMedicationReference()));
+ }
if (src.hasPatient())
tgt.setSubject(VersionConvertor_10_50.convertReference(src.getPatient()));
if (src.hasEffective())
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/ConceptMap14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/ConceptMap14_50.java
index 837128619..0d415bc67 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/ConceptMap14_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/ConceptMap14_50.java
@@ -142,10 +142,10 @@ public class ConceptMap14_50 {
case EQUIVALENT:
tgt.setValue(org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
break;
- case SOURCENARROWERTARGET:
+ case SOURCEISNARROWERTHANTARGET:
tgt.setValue(org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence.WIDER);
break;
- case SOURCEBROADERTARGET:
+ case SOURCEISBROADERTHANTARGET:
tgt.setValue(org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence.NARROWER);
break;
case NOTRELATEDTO:
@@ -173,16 +173,16 @@ public class ConceptMap14_50 {
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
break;
case WIDER:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISNARROWERTHANTARGET);
break;
case SUBSUMES:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISNARROWERTHANTARGET);
break;
case NARROWER:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISBROADERTHANTARGET);
break;
case SPECIALIZES:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISBROADERTHANTARGET);
break;
case INEXACT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/AuditEvent30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/AuditEvent30_50.java
index 15c822162..e2d1b4bd1 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/AuditEvent30_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/AuditEvent30_50.java
@@ -18,9 +18,9 @@ public class AuditEvent30_50 {
if (src.hasRecorded())
tgt.setRecordedElement(VersionConvertor_30_50.convertInstant(src.getRecordedElement()));
if (src.hasOutcome())
- tgt.setOutcomeElement(convertAuditEventOutcome(src.getOutcomeElement()));
+ tgt.getOutcome().addCoding().setSystem("http://terminology.hl7.org/CodeSystem/audit-event-outcome").setCode(src.getOutcome().toCode());
if (src.hasOutcomeDesc())
- tgt.setOutcomeDescElement(VersionConvertor_30_50.convertString(src.getOutcomeDescElement()));
+ tgt.getOutcome().setTextElement(VersionConvertor_30_50.convertString(src.getOutcomeDescElement()));
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getPurposeOfEvent()) tgt.addPurposeOfEvent(VersionConvertor_30_50.convertCodeableConcept(t));
for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addAgent(convertAuditEventAgentComponent(t));
if (src.hasSource())
@@ -41,10 +41,10 @@ public class AuditEvent30_50 {
tgt.setActionElement(convertAuditEventAction(src.getActionElement()));
if (src.hasRecorded())
tgt.setRecordedElement(VersionConvertor_30_50.convertInstant(src.getRecordedElement()));
- if (src.hasOutcome())
- tgt.setOutcomeElement(convertAuditEventOutcome(src.getOutcomeElement()));
- if (src.hasOutcomeDesc())
- tgt.setOutcomeDescElement(VersionConvertor_30_50.convertString(src.getOutcomeDescElement()));
+ if (src.hasOutcome() && src.getOutcome().hasCoding("http://terminology.hl7.org/CodeSystem/audit-event-outcome"))
+ tgt.getOutcomeElement().setValueAsString(src.getOutcome().getCode("http://terminology.hl7.org/CodeSystem/audit-event-outcome"));
+ if (src.getOutcome().hasText())
+ tgt.setOutcomeDescElement(VersionConvertor_30_50.convertString(src.getOutcome().getTextElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getPurposeOfEvent()) tgt.addPurposeOfEvent(VersionConvertor_30_50.convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addAgent(convertAuditEventAgentComponent(t));
if (src.hasSource())
@@ -321,55 +321,6 @@ public class AuditEvent30_50 {
return tgt;
}
- static public org.hl7.fhir.dstu3.model.Enumeration convertAuditEventOutcome(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.AuditEvent.AuditEventOutcomeEnumFactory());
- VersionConvertor_30_50.copyElement(src, tgt);
- switch(src.getValue()) {
- case _0:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventOutcome._0);
- break;
- case _4:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventOutcome._4);
- break;
- case _8:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventOutcome._8);
- break;
- case _12:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventOutcome._12);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventOutcome.NULL);
- break;
- }
- return tgt;
- }
-
- static public org.hl7.fhir.r5.model.Enumeration convertAuditEventOutcome(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.AuditEvent.AuditEventOutcomeEnumFactory());
- VersionConvertor_30_50.copyElement(src, tgt);
- switch(src.getValue()) {
- case _0:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._0);
- break;
- case _4:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._4);
- break;
- case _8:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._8);
- break;
- case _12:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._12);
- break;
- default:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome.NULL);
- break;
- }
- return tgt;
- }
public static org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent convertAuditEventSourceComponent(org.hl7.fhir.r5.model.AuditEvent.AuditEventSourceComponent src) throws FHIRException {
if (src == null)
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 4abb34709..3373c59c2 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
@@ -256,8 +256,8 @@ public class CarePlan30_50 {
tgt.setScheduled(VersionConvertor_30_50.convertType(src.getScheduled()));
}
if (src.hasLocation()) {
- 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.Reference t : src.getPerformer()) {
tgt.addPerformer(VersionConvertor_30_50.convertReference(t));
@@ -325,7 +325,7 @@ public class CarePlan30_50 {
}
if (src.hasLocation()) {
if (src.hasLocation())
- tgt.setLocation(VersionConvertor_30_50.convertReference(src.getLocation()));
+ tgt.getLocation().setReference(VersionConvertor_30_50.convertReference(src.getLocation()));
}
for (org.hl7.fhir.dstu3.model.Reference t : src.getPerformer()) {
tgt.addPerformer(VersionConvertor_30_50.convertReference(t));
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 176416ac5..9910ecfe5 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
@@ -221,10 +221,10 @@ public class ConceptMap30_50 {
case EQUIVALENT:
tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
break;
- case SOURCENARROWERTARGET:
+ case SOURCEISNARROWERTHANTARGET:
tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.WIDER);
break;
- case SOURCEBROADERTARGET:
+ case SOURCEISBROADERTHANTARGET:
tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.NARROWER);
break;
case NOTRELATEDTO:
@@ -252,16 +252,16 @@ public class ConceptMap30_50 {
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
break;
case WIDER:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISNARROWERTHANTARGET);
break;
case SUBSUMES:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISNARROWERTHANTARGET);
break;
case NARROWER:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISBROADERTHANTARGET);
break;
case SPECIALIZES:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISBROADERTHANTARGET);
break;
case INEXACT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
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 1c3fe8385..658f4010f 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
@@ -18,16 +18,16 @@ public class DeviceUseStatement30_50 {
tgt.setSubject(VersionConvertor_30_50.convertReference(src.getSubject()));
if (src.hasTiming())
tgt.setTiming(VersionConvertor_30_50.convertType(src.getTiming()));
- if (src.hasRecordedOn())
- tgt.setRecordedOnElement(VersionConvertor_30_50.convertDateTime(src.getRecordedOnElement()));
- if (src.hasSource())
- tgt.setSource(VersionConvertor_30_50.convertReference(src.getSource()));
- if (src.hasDevice())
- tgt.setDevice(VersionConvertor_30_50.convertReference(src.getDevice()));
+ if (src.hasDateAsserted())
+ tgt.setRecordedOnElement(VersionConvertor_30_50.convertDateTime(src.getDateAssertedElement()));
+ if (src.hasInformationSource())
+ tgt.setSource(VersionConvertor_30_50.convertReference(src.getInformationSource()));
+ if (src.getDevice().hasReference())
+ tgt.setDevice(VersionConvertor_30_50.convertReference(src.getDevice().getReference()));
for (CodeableReference t : src.getReason()) if (t.hasConcept())
tgt.addIndication(VersionConvertor_30_50.convertCodeableConcept(t.getConcept()));
- if (src.hasBodySite())
- tgt.setBodySite(VersionConvertor_30_50.convertCodeableConcept(src.getBodySite()));
+ if (src.getBodySite().hasConcept())
+ tgt.setBodySite(VersionConvertor_30_50.convertCodeableConcept(src.getBodySite().getConcept()));
for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_30_50.convertAnnotation(t));
return tgt;
}
@@ -45,14 +45,14 @@ public class DeviceUseStatement30_50 {
if (src.hasTiming())
tgt.setTiming(VersionConvertor_30_50.convertType(src.getTiming()));
if (src.hasRecordedOn())
- tgt.setRecordedOnElement(VersionConvertor_30_50.convertDateTime(src.getRecordedOnElement()));
+ tgt.setDateAssertedElement(VersionConvertor_30_50.convertDateTime(src.getRecordedOnElement()));
if (src.hasSource())
- tgt.setSource(VersionConvertor_30_50.convertReference(src.getSource()));
+ tgt.setInformationSource(VersionConvertor_30_50.convertReference(src.getSource()));
if (src.hasDevice())
- tgt.setDevice(VersionConvertor_30_50.convertReference(src.getDevice()));
+ tgt.getDevice().setReference(VersionConvertor_30_50.convertReference(src.getDevice()));
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getIndication()) tgt.addReason(VersionConvertor_30_50.convertCodeableConceptToCodableReference(t));
if (src.hasBodySite())
- tgt.setBodySite(VersionConvertor_30_50.convertCodeableConcept(src.getBodySite()));
+ tgt.getBodySite().setConcept(VersionConvertor_30_50.convertCodeableConcept(src.getBodySite()));
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_30_50.convertAnnotation(t));
return tgt;
}
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 766608244..07fa2b9b1 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
@@ -48,8 +48,10 @@ public class Medication30_50 {
return null;
org.hl7.fhir.dstu3.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationIngredientComponent();
VersionConvertor_30_50.copyElement(src, tgt);
- if (src.hasItem())
- tgt.setItem(VersionConvertor_30_50.convertType(src.getItem()));
+ if (src.getItem().hasConcept())
+ tgt.setItem(VersionConvertor_30_50.convertType(src.getItem().getConcept()));
+ if (src.getItem().hasReference())
+ tgt.setItem(VersionConvertor_30_50.convertType(src.getItem().getReference()));
if (src.hasIsActive())
tgt.setIsActiveElement(VersionConvertor_30_50.convertBoolean(src.getIsActiveElement()));
if (src.hasStrengthRatio())
@@ -62,8 +64,10 @@ public class Medication30_50 {
return null;
org.hl7.fhir.r5.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.r5.model.Medication.MedicationIngredientComponent();
VersionConvertor_30_50.copyElement(src, tgt);
- if (src.hasItem())
- tgt.setItem(VersionConvertor_30_50.convertType(src.getItem()));
+ if (src.hasItemCodeableConcept())
+ tgt.getItem().setConcept(VersionConvertor_30_50.convertCodeableConcept(src.getItemCodeableConcept()));
+ if (src.hasItemReference())
+ tgt.getItem().setReference(VersionConvertor_30_50.convertReference(src.getItemReference()));
if (src.hasIsActive())
tgt.setIsActiveElement(VersionConvertor_30_50.convertBoolean(src.getIsActiveElement()));
if (src.hasAmount())
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationAdministration30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationAdministration30_50.java
index 061b72a28..d39113655 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationAdministration30_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationAdministration30_50.java
@@ -19,8 +19,10 @@ public class MedicationAdministration30_50 {
tgt.setStatusElement(convertMedicationAdministrationStatus(src.getStatusElement()));
if (src.hasCategory())
tgt.setCategory(VersionConvertor_30_50.convertCodeableConcept(src.getCategoryFirstRep()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication()));
+ if (src.getMedication().hasConcept())
+ tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication().getConcept()));
+ if (src.getMedication().hasReference())
+ tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication().getReference()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_30_50.convertReference(src.getSubject()));
if (src.hasEncounter())
@@ -55,8 +57,10 @@ public class MedicationAdministration30_50 {
tgt.setStatusElement(convertMedicationAdministrationStatus(src.getStatusElement()));
if (src.hasCategory())
tgt.addCategory(VersionConvertor_30_50.convertCodeableConcept(src.getCategory()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication()));
+ if (src.hasMedicationCodeableConcept())
+ tgt.getMedication().setConcept(VersionConvertor_30_50.convertCodeableConcept(src.getMedicationCodeableConcept()));
+ if (src.hasMedicationReference())
+ tgt.getMedication().setReference(VersionConvertor_30_50.convertReference(src.getMedicationReference()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_30_50.convertReference(src.getSubject()));
if (src.hasContext())
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationDispense30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationDispense30_50.java
index ebd81ad08..afb6e5e90 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationDispense30_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationDispense30_50.java
@@ -1,5 +1,6 @@
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.exceptions.FHIRException;
@@ -16,8 +17,10 @@ public class MedicationDispense30_50 {
tgt.setStatusElement(convertMedicationDispenseStatus(src.getStatusElement()));
if (src.hasCategory())
tgt.setCategory(VersionConvertor_30_50.convertCodeableConcept(src.getCategoryFirstRep()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication()));
+ if (src.getMedication().hasConcept())
+ tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication().getConcept()));
+ if (src.getMedication().hasReference())
+ tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication().getReference()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_30_50.convertReference(src.getSubject()));
if (src.hasEncounter())
@@ -58,8 +61,10 @@ public class MedicationDispense30_50 {
tgt.setStatusElement(convertMedicationDispenseStatus(src.getStatusElement()));
if (src.hasCategory())
tgt.addCategory(VersionConvertor_30_50.convertCodeableConcept(src.getCategory()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication()));
+ if (src.hasMedicationCodeableConcept())
+ tgt.getMedication().setConcept(VersionConvertor_30_50.convertCodeableConcept(src.getMedicationCodeableConcept()));
+ if (src.hasMedicationReference())
+ tgt.getMedication().setReference(VersionConvertor_30_50.convertReference(src.getMedicationReference()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_30_50.convertReference(src.getSubject()));
if (src.hasContext())
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationRequest30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationRequest30_50.java
index c509b3b28..1e7f8207c 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationRequest30_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationRequest30_50.java
@@ -21,8 +21,10 @@ public class MedicationRequest30_50 {
tgt.setIntentElement(convertMedicationRequestIntent(src.getIntentElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertMedicationRequestPriority(src.getPriorityElement()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication()));
+ if (src.getMedication().hasConcept())
+ tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication().getConcept()));
+ if (src.getMedication().hasReference())
+ tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication().getReference()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_30_50.convertReference(src.getSubject()));
if (src.hasEncounter())
@@ -68,8 +70,10 @@ public class MedicationRequest30_50 {
tgt.setIntentElement(convertMedicationRequestIntent(src.getIntentElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertMedicationRequestPriority(src.getPriorityElement()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication()));
+ if (src.hasMedicationCodeableConcept())
+ tgt.getMedication().setConcept(VersionConvertor_30_50.convertCodeableConcept(src.getMedicationCodeableConcept()));
+ if (src.hasMedicationReference())
+ tgt.getMedication().setReference(VersionConvertor_30_50.convertReference(src.getMedicationReference()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_30_50.convertReference(src.getSubject()));
if (src.hasContext())
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 40220fe5c..369fa3283 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
@@ -20,8 +20,12 @@ public class MedicationStatement30_50 {
tgt.setStatusElement(convertMedicationStatementStatus(src.getStatusElement()));
if (src.hasCategory())
tgt.addCategory(VersionConvertor_30_50.convertCodeableConcept(src.getCategory()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication()));
+ if (src.hasMedicationCodeableConcept()) {
+ tgt.getMedication().setConcept(VersionConvertor_30_50.convertCodeableConcept(src.getMedicationCodeableConcept()));
+ }
+ if (src.hasMedicationReference()) {
+ tgt.getMedication().setReference(VersionConvertor_30_50.convertReference(src.getMedicationReference()));
+ }
if (src.hasEffective())
tgt.setEffective(VersionConvertor_30_50.convertType(src.getEffective()));
if (src.hasDateAsserted())
@@ -52,8 +56,12 @@ public class MedicationStatement30_50 {
tgt.setStatusElement(convertMedicationStatementStatus(src.getStatusElement()));
if (src.hasCategory())
tgt.setCategory(VersionConvertor_30_50.convertCodeableConcept(src.getCategoryFirstRep()));
- if (src.hasMedication())
- tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication()));
+ if (src.getMedication().hasConcept()) {
+ tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication().getConcept()));
+ }
+ if (src.getMedication().hasReference()) {
+ tgt.setMedication(VersionConvertor_30_50.convertType(src.getMedication().getReference()));
+ }
if (src.hasEffective())
tgt.setEffective(VersionConvertor_30_50.convertType(src.getEffective()));
if (src.hasDateAsserted())
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/AuditEvent40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/AuditEvent40_50.java
index 2063174a2..fe9041761 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/AuditEvent40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/AuditEvent40_50.java
@@ -1,5 +1,6 @@
package org.hl7.fhir.convertors.conv40_50;
+import org.hl7.fhir.convertors.VersionConvertor_30_50;
/*-
* #%L
* org.hl7.fhir.convertors
@@ -68,9 +69,9 @@ public class AuditEvent40_50 extends VersionConvertor_40_50 {
if (src.hasRecorded())
tgt.setRecordedElement(convertInstant(src.getRecordedElement()));
if (src.hasOutcome())
- tgt.setOutcomeElement(convertAuditEventOutcome(src.getOutcomeElement()));
+ tgt.getOutcome().addCoding().setSystem("http://terminology.hl7.org/CodeSystem/audit-event-outcome").setCode(src.getOutcome().toCode());
if (src.hasOutcomeDesc())
- tgt.setOutcomeDescElement(convertString(src.getOutcomeDescElement()));
+ tgt.getOutcome().setTextElement(convertString(src.getOutcomeDescElement()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getPurposeOfEvent()) tgt.addPurposeOfEvent(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addAgent(convertAuditEventAgentComponent(t));
if (src.hasSource())
@@ -93,10 +94,10 @@ public class AuditEvent40_50 extends VersionConvertor_40_50 {
tgt.setPeriod(convertPeriod(src.getPeriod()));
if (src.hasRecorded())
tgt.setRecordedElement(convertInstant(src.getRecordedElement()));
- if (src.hasOutcome())
- tgt.setOutcomeElement(convertAuditEventOutcome(src.getOutcomeElement()));
- if (src.hasOutcomeDesc())
- tgt.setOutcomeDescElement(convertString(src.getOutcomeDescElement()));
+ if (src.hasOutcome() && src.getOutcome().hasCoding("http://terminology.hl7.org/CodeSystem/audit-event-outcome"))
+ tgt.getOutcomeElement().setValueAsString(src.getOutcome().getCode("http://terminology.hl7.org/CodeSystem/audit-event-outcome"));
+ if (src.getOutcome().hasText())
+ tgt.setOutcomeDescElement(VersionConvertor_40_50.convertString(src.getOutcome().getTextElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getPurposeOfEvent()) tgt.addPurposeOfEvent(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addAgent(convertAuditEventAgentComponent(t));
if (src.hasSource())
@@ -161,55 +162,6 @@ public class AuditEvent40_50 extends VersionConvertor_40_50 {
return tgt;
}
- static public org.hl7.fhir.r5.model.Enumeration convertAuditEventOutcome(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.AuditEvent.AuditEventOutcomeEnumFactory());
- VersionConvertor_40_50.copyElement(src, tgt);
- switch(src.getValue()) {
- case _0:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._0);
- break;
- case _4:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._4);
- break;
- case _8:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._8);
- break;
- case _12:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome._12);
- break;
- default:
- tgt.setValue(org.hl7.fhir.r5.model.AuditEvent.AuditEventOutcome.NULL);
- break;
- }
- return tgt;
- }
-
- static public org.hl7.fhir.r4.model.Enumeration convertAuditEventOutcome(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.AuditEvent.AuditEventOutcomeEnumFactory());
- VersionConvertor_40_50.copyElement(src, tgt);
- switch(src.getValue()) {
- case _0:
- tgt.setValue(org.hl7.fhir.r4.model.AuditEvent.AuditEventOutcome._0);
- break;
- case _4:
- tgt.setValue(org.hl7.fhir.r4.model.AuditEvent.AuditEventOutcome._4);
- break;
- case _8:
- tgt.setValue(org.hl7.fhir.r4.model.AuditEvent.AuditEventOutcome._8);
- break;
- case _12:
- tgt.setValue(org.hl7.fhir.r4.model.AuditEvent.AuditEventOutcome._12);
- break;
- default:
- tgt.setValue(org.hl7.fhir.r4.model.AuditEvent.AuditEventOutcome.NULL);
- break;
- }
- return tgt;
- }
public static org.hl7.fhir.r5.model.AuditEvent.AuditEventAgentComponent convertAuditEventAgentComponent(org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent src) throws FHIRException {
if (src == 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 3e3a02561..1593ca08b 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
@@ -308,7 +308,7 @@ public class CarePlan40_50 extends VersionConvertor_40_50 {
if (src.hasScheduled())
tgt.setScheduled(convertType(src.getScheduled()));
if (src.hasLocation())
- tgt.setLocation(convertReference(src.getLocation()));
+ tgt.getLocation().setReference(convertReference(src.getLocation()));
for (org.hl7.fhir.r4.model.Reference t : src.getPerformer()) tgt.addPerformer(convertReference(t));
if (src.hasProduct())
tgt.setProduct(convertType(src.getProduct()));
@@ -345,8 +345,8 @@ public class CarePlan40_50 extends VersionConvertor_40_50 {
tgt.setDoNotPerformElement(convertBoolean(src.getDoNotPerformElement()));
if (src.hasScheduled())
tgt.setScheduled(convertType(src.getScheduled()));
- if (src.hasLocation())
- tgt.setLocation(convertReference(src.getLocation()));
+ if (src.getLocation().hasReference())
+ tgt.setLocation(convertReference(src.getLocation().getReference()));
for (org.hl7.fhir.r5.model.Reference t : src.getPerformer()) tgt.addPerformer(convertReference(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/ConceptMap40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ConceptMap40_50.java
index 25276dc41..dee8c68de 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
@@ -262,10 +262,10 @@ public class ConceptMap40_50 extends VersionConvertor_40_50 {
case EQUIVALENT:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
break;
- case SOURCENARROWERTARGET:
+ case SOURCEISNARROWERTHANTARGET:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.WIDER);
break;
- case SOURCEBROADERTARGET:
+ case SOURCEISBROADERTHANTARGET:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.NARROWER);
break;
case NOTRELATEDTO:
@@ -293,16 +293,16 @@ public class ConceptMap40_50 extends VersionConvertor_40_50 {
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
break;
case WIDER:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISNARROWERTHANTARGET);
break;
case SUBSUMES:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISNARROWERTHANTARGET);
break;
case NARROWER:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISBROADERTHANTARGET);
break;
case SPECIALIZES:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISBROADERTHANTARGET);
break;
case RELATEDTO:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Consent40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Consent40_50.java
index d4333def4..6d2313200 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Consent40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Consent40_50.java
@@ -65,7 +65,7 @@ public class Consent40_50 extends VersionConvertor_40_50 {
tgt.setScope(convertCodeableConcept(src.getScope()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.addCategory(convertCodeableConcept(t));
if (src.hasPatient())
- tgt.setPatient(convertReference(src.getPatient()));
+ tgt.setSubject(convertReference(src.getPatient()));
if (src.hasDateTime())
tgt.setDateTimeElement(convertDateTime(src.getDateTimeElement()));
for (org.hl7.fhir.r4.model.Reference t : src.getPerformer()) tgt.addPerformer(convertReference(t));
@@ -94,8 +94,8 @@ public class Consent40_50 extends VersionConvertor_40_50 {
if (src.hasScope())
tgt.setScope(convertCodeableConcept(src.getScope()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory()) tgt.addCategory(convertCodeableConcept(t));
- if (src.hasPatient())
- tgt.setPatient(convertReference(src.getPatient()));
+ if (src.hasSubject())
+ tgt.setPatient(convertReference(src.getSubject()));
if (src.hasDateTime())
tgt.setDateTimeElement(convertDateTime(src.getDateTimeElement()));
for (org.hl7.fhir.r5.model.Reference t : src.getPerformer()) tgt.addPerformer(convertReference(t));
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 537d0f7e0..3293e77b8 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
@@ -83,7 +83,7 @@ public class Device40_50 extends VersionConvertor_40_50 {
if (src.hasPartNumber())
tgt.setPartNumberElement(convertString(src.getPartNumberElement()));
if (src.hasType())
- tgt.setType(convertCodeableConcept(src.getType()));
+ tgt.addType(convertCodeableConcept(src.getType()));
for (org.hl7.fhir.r4.model.Device.DeviceSpecializationComponent t : src.getSpecialization()) tgt.addSpecialization(convertDeviceSpecializationComponent(t));
for (org.hl7.fhir.r4.model.Device.DeviceVersionComponent t : src.getVersion()) tgt.addVersion(convertDeviceVersionComponent(t));
for (org.hl7.fhir.r4.model.Device.DevicePropertyComponent t : src.getProperty()) tgt.addProperty(convertDevicePropertyComponent(t));
@@ -133,7 +133,7 @@ public class Device40_50 extends VersionConvertor_40_50 {
if (src.hasPartNumber())
tgt.setPartNumberElement(convertString(src.getPartNumberElement()));
if (src.hasType())
- tgt.setType(convertCodeableConcept(src.getType()));
+ tgt.setType(convertCodeableConcept(src.getTypeFirstRep()));
for (org.hl7.fhir.r5.model.Device.DeviceSpecializationComponent t : src.getSpecialization()) tgt.addSpecialization(convertDeviceSpecializationComponent(t));
for (org.hl7.fhir.r5.model.Device.DeviceVersionComponent t : src.getVersion()) tgt.addVersion(convertDeviceVersionComponent(t));
for (org.hl7.fhir.r5.model.Device.DevicePropertyComponent t : src.getProperty()) tgt.addProperty(convertDevicePropertyComponent(t));
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 e09ac294d..4eaed93f9 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
@@ -79,8 +79,6 @@ public class DeviceDefinition40_50 extends VersionConvertor_40_50 {
if (src.hasOwner())
tgt.setOwner(convertReference(src.getOwner()));
for (org.hl7.fhir.r4.model.ContactPoint t : src.getContact()) tgt.addContact(convertContactPoint(t));
- if (src.hasUrl())
- tgt.setUrlElement(convertUri(src.getUrlElement()));
if (src.hasOnlineInformation())
tgt.setOnlineInformationElement(convertUri(src.getOnlineInformationElement()));
for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
@@ -118,8 +116,6 @@ public class DeviceDefinition40_50 extends VersionConvertor_40_50 {
if (src.hasOwner())
tgt.setOwner(convertReference(src.getOwner()));
for (org.hl7.fhir.r5.model.ContactPoint t : src.getContact()) tgt.addContact(convertContactPoint(t));
- if (src.hasUrl())
- tgt.setUrlElement(convertUri(src.getUrlElement()));
if (src.hasOnlineInformation())
tgt.setOnlineInformationElement(convertUri(src.getOnlineInformationElement()));
for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceRequest40_50.java
index e38045038..f291b851f 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceRequest40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceRequest40_50.java
@@ -72,8 +72,11 @@ public class DeviceRequest40_50 extends VersionConvertor_40_50 {
tgt.setIntentElement(convertRequestIntent(src.getIntentElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement()));
- if (src.hasCode())
- tgt.setCode(convertType(src.getCode()));
+ if (src.hasCodeCodeableConcept())
+ tgt.getCode().setConcept(convertCodeableConcept(src.getCodeCodeableConcept()));
+ else if (src.hasCodeReference())
+ tgt.getCode().setReference(convertReference(src.getCodeReference()));
+
for (org.hl7.fhir.r4.model.DeviceRequest.DeviceRequestParameterComponent t : src.getParameter()) tgt.addParameter(convertDeviceRequestParameterComponent(t));
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
@@ -116,8 +119,10 @@ public class DeviceRequest40_50 extends VersionConvertor_40_50 {
tgt.setIntentElement(convertRequestIntent(src.getIntentElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement()));
- if (src.hasCode())
- tgt.setCode(convertType(src.getCode()));
+ if (src.getCode().hasConcept())
+ tgt.setCode(convertType(src.getCode().getConcept()));
+ if (src.getCode().hasReference())
+ tgt.setCode(convertType(src.getCode().getReference()));
for (org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestParameterComponent t : src.getParameter()) tgt.addParameter(convertDeviceRequestParameterComponent(t));
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
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 f4050d6df..7d9140e1c 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
@@ -69,15 +69,15 @@ public class DeviceUseStatement40_50 extends VersionConvertor_40_50 {
if (src.hasTiming())
tgt.setTiming(convertType(src.getTiming()));
if (src.hasRecordedOn())
- tgt.setRecordedOnElement(convertDateTime(src.getRecordedOnElement()));
+ tgt.setDateAssertedElement(convertDateTime(src.getRecordedOnElement()));
if (src.hasSource())
- tgt.setSource(convertReference(src.getSource()));
+ tgt.setInformationSource(convertReference(src.getSource()));
if (src.hasDevice())
- tgt.setDevice(convertReference(src.getDevice()));
+ tgt.getDevice().setReference(convertReference(src.getDevice()));
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.hasBodySite())
- tgt.setBodySite(convertCodeableConcept(src.getBodySite()));
+ tgt.getBodySite().setConcept(convertCodeableConcept(src.getBodySite()));
for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
return tgt;
}
@@ -96,18 +96,18 @@ public class DeviceUseStatement40_50 extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.Reference t : src.getDerivedFrom()) tgt.addDerivedFrom(convertReference(t));
if (src.hasTiming())
tgt.setTiming(convertType(src.getTiming()));
- if (src.hasRecordedOn())
- tgt.setRecordedOnElement(convertDateTime(src.getRecordedOnElement()));
- if (src.hasSource())
- tgt.setSource(convertReference(src.getSource()));
- if (src.hasDevice())
- tgt.setDevice(convertReference(src.getDevice()));
+ if (src.hasDateAsserted())
+ tgt.setRecordedOnElement(convertDateTime(src.getDateAssertedElement()));
+ if (src.hasInformationSource())
+ tgt.setSource(convertReference(src.getInformationSource()));
+ if (src.getDevice().hasReference())
+ tgt.setDevice(convertReference(src.getDevice().getReference()));
for (CodeableReference t : src.getReason()) if (t.hasConcept())
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
for (CodeableReference t : src.getReason()) if (t.hasReference())
tgt.addReasonReference(convertReference(t.getReference()));
- if (src.hasBodySite())
- tgt.setBodySite(convertCodeableConcept(src.getBodySite()));
+ if (src.getBodySite().hasConcept())
+ tgt.setBodySite(convertCodeableConcept(src.getBodySite().getConcept()));
for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
return tgt;
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Enumerations40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Enumerations40_50.java
index 1208a54b0..adfd47201 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Enumerations40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Enumerations40_50.java
@@ -457,16 +457,16 @@ public class Enumerations40_50 extends VersionConvertor_40_50 {
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
break;
case WIDER:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISNARROWERTHANTARGET);
break;
case SUBSUMES:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISNARROWERTHANTARGET);
break;
case NARROWER:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISBROADERTHANTARGET);
break;
case SPECIALIZES:
- tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
+ tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEISBROADERTHANTARGET);
break;
case INEXACT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
@@ -496,10 +496,10 @@ public class Enumerations40_50 extends VersionConvertor_40_50 {
case EQUIVALENT:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
break;
- case SOURCENARROWERTARGET:
+ case SOURCEISNARROWERTHANTARGET:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.WIDER);
break;
- case SOURCEBROADERTARGET:
+ case SOURCEISBROADERTHANTARGET:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.NARROWER);
break;
case NOTRELATEDTO:
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Immunization40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Immunization40_50.java
index 04e18fa38..a90f1ae02 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Immunization40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Immunization40_50.java
@@ -303,9 +303,9 @@ public class Immunization40_50 extends VersionConvertor_40_50 {
tgt.setAuthority(convertReference(src.getAuthority()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getTargetDisease()) tgt.addTargetDisease(convertCodeableConcept(t));
if (src.hasDoseNumber())
- tgt.setDoseNumber(convertType(src.getDoseNumber()));
+ tgt.setDoseNumber(src.getDoseNumber().primitiveValue());
if (src.hasSeriesDoses())
- tgt.setSeriesDoses(convertType(src.getSeriesDoses()));
+ tgt.setSeriesDoses(src.getSeriesDoses().primitiveValue());
return tgt;
}
@@ -320,9 +320,9 @@ public class Immunization40_50 extends VersionConvertor_40_50 {
tgt.setAuthority(convertReference(src.getAuthority()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getTargetDisease()) tgt.addTargetDisease(convertCodeableConcept(t));
if (src.hasDoseNumber())
- tgt.setDoseNumber(convertType(src.getDoseNumber()));
+ tgt.setDoseNumber(convertType(src.getDoseNumberElement()));
if (src.hasSeriesDoses())
- tgt.setSeriesDoses(convertType(src.getSeriesDoses()));
+ tgt.setSeriesDoses(convertType(src.getSeriesDosesElement()));
return tgt;
}
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ImmunizationEvaluation40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ImmunizationEvaluation40_50.java
index b69cb897c..c5c9c00d4 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ImmunizationEvaluation40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ImmunizationEvaluation40_50.java
@@ -79,9 +79,9 @@ public class ImmunizationEvaluation40_50 extends VersionConvertor_40_50 {
if (src.hasSeries())
tgt.setSeriesElement(convertString(src.getSeriesElement()));
if (src.hasDoseNumber())
- tgt.setDoseNumber(convertType(src.getDoseNumber()));
+ tgt.setDoseNumber(src.getDoseNumber().primitiveValue());
if (src.hasSeriesDoses())
- tgt.setSeriesDoses(convertType(src.getSeriesDoses()));
+ tgt.setSeriesDoses(src.getSeriesDoses().primitiveValue());
return tgt;
}
@@ -111,9 +111,9 @@ public class ImmunizationEvaluation40_50 extends VersionConvertor_40_50 {
if (src.hasSeries())
tgt.setSeriesElement(convertString(src.getSeriesElement()));
if (src.hasDoseNumber())
- tgt.setDoseNumber(convertType(src.getDoseNumber()));
+ tgt.setDoseNumber(convertType(src.getDoseNumberElement()));
if (src.hasSeriesDoses())
- tgt.setSeriesDoses(convertType(src.getSeriesDoses()));
+ tgt.setSeriesDoses(convertType(src.getSeriesDosesElement()));
return tgt;
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ImmunizationRecommendation40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ImmunizationRecommendation40_50.java
index e4b059084..df13a9132 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ImmunizationRecommendation40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ImmunizationRecommendation40_50.java
@@ -103,9 +103,9 @@ public class ImmunizationRecommendation40_50 extends VersionConvertor_40_50 {
if (src.hasSeries())
tgt.setSeriesElement(convertString(src.getSeriesElement()));
if (src.hasDoseNumber())
- tgt.setDoseNumber(convertType(src.getDoseNumber()));
+ tgt.setDoseNumber(src.getDoseNumber().primitiveValue());
if (src.hasSeriesDoses())
- tgt.setSeriesDoses(convertType(src.getSeriesDoses()));
+ tgt.setSeriesDoses(src.getSeriesDoses().primitiveValue());
for (org.hl7.fhir.r4.model.Reference t : src.getSupportingImmunization()) tgt.addSupportingImmunization(convertReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getSupportingPatientInformation()) tgt.addSupportingPatientInformation(convertReference(t));
return tgt;
@@ -129,9 +129,9 @@ public class ImmunizationRecommendation40_50 extends VersionConvertor_40_50 {
if (src.hasSeries())
tgt.setSeriesElement(convertString(src.getSeriesElement()));
if (src.hasDoseNumber())
- tgt.setDoseNumber(convertType(src.getDoseNumber()));
+ tgt.setDoseNumber(convertType(src.getDoseNumberElement()));
if (src.hasSeriesDoses())
- tgt.setSeriesDoses(convertType(src.getSeriesDoses()));
+ tgt.setSeriesDoses(convertType(src.getSeriesDosesElement()));
for (org.hl7.fhir.r5.model.Reference t : src.getSupportingImmunization()) tgt.addSupportingImmunization(convertReference(t));
for (org.hl7.fhir.r5.model.Reference t : src.getSupportingPatientInformation()) tgt.addSupportingPatientInformation(convertReference(t));
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 f4053a9a8..2d8a9c4e6 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
@@ -146,8 +146,10 @@ public class Medication40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r5.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.r5.model.Medication.MedicationIngredientComponent();
copyElement(src, tgt);
- if (src.hasItem())
- tgt.setItem(convertType(src.getItem()));
+ if (src.hasItemCodeableConcept())
+ 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.hasStrength())
@@ -160,8 +162,10 @@ public class Medication40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent();
copyElement(src, tgt);
- if (src.hasItem())
- tgt.setItem(convertType(src.getItem()));
+ if (src.getItem().hasConcept())
+ tgt.setItem(convertType(src.getItem().getConcept()));
+ if (src.getItem().hasReference())
+ tgt.setItem(convertType(src.getItem().getReference()));
if (src.hasIsActive())
tgt.setIsActiveElement(convertBoolean(src.getIsActiveElement()));
if (src.hasStrengthRatio())
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationAdministration40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationAdministration40_50.java
index f5e09ddd3..7e352a9c9 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationAdministration40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationAdministration40_50.java
@@ -71,8 +71,10 @@ public class MedicationAdministration40_50 extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getStatusReason()) tgt.addStatusReason(convertCodeableConcept(t));
if (src.hasCategory())
tgt.addCategory(convertCodeableConcept(src.getCategory()));
- if (src.hasMedication())
- tgt.setMedication(convertType(src.getMedication()));
+ if (src.hasMedicationCodeableConcept())
+ tgt.getMedication().setConcept(convertCodeableConcept(src.getMedicationCodeableConcept()));
+ if (src.hasMedicationReference())
+ tgt.getMedication().setReference(convertReference(src.getMedicationReference()));
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
if (src.hasContext())
@@ -106,8 +108,10 @@ public class MedicationAdministration40_50 extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getStatusReason()) tgt.addStatusReason(convertCodeableConcept(t));
if (src.hasCategory())
tgt.setCategory(convertCodeableConcept(src.getCategoryFirstRep()));
- if (src.hasMedication())
- tgt.setMedication(convertType(src.getMedication()));
+ if (src.getMedication().hasConcept())
+ tgt.setMedication(convertType(src.getMedication().getConcept()));
+ if (src.getMedication().hasReference())
+ tgt.setMedication(convertType(src.getMedication().getReference()));
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
if (src.hasEncounter())
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationDispense40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationDispense40_50.java
index 421bc5b71..0d6682a98 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationDispense40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationDispense40_50.java
@@ -65,12 +65,16 @@ public class MedicationDispense40_50 extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.Reference t : src.getPartOf()) tgt.addPartOf(convertReference(t));
if (src.hasStatus())
tgt.setStatusElement(convertMedicationStatus(src.getStatusElement()));
- if (src.hasStatusReason())
- tgt.setStatusReason(convertType(src.getStatusReason()));
+ if (src.hasStatusReasonCodeableConcept())
+ tgt.getStatusReason().setConcept(convertCodeableConcept(src.getStatusReasonCodeableConcept()));
+ if (src.hasStatusReasonReference())
+ tgt.getStatusReason().setReference(convertReference(src.getStatusReasonReference()));
if (src.hasCategory())
tgt.addCategory(convertCodeableConcept(src.getCategory()));
- if (src.hasMedication())
- tgt.setMedication(convertType(src.getMedication()));
+ if (src.hasMedicationCodeableConcept())
+ tgt.getMedication().setConcept(convertCodeableConcept(src.getMedicationCodeableConcept()));
+ if (src.hasMedicationReference())
+ tgt.getMedication().setReference(convertReference(src.getMedicationReference()));
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
if (src.hasContext())
@@ -111,12 +115,16 @@ public class MedicationDispense40_50 extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.Reference t : src.getPartOf()) tgt.addPartOf(convertReference(t));
if (src.hasStatus())
tgt.setStatusElement(convertStatus(src.getStatusElement()));
- if (src.hasStatusReason())
- tgt.setStatusReason(convertType(src.getStatusReason()));
+ if (src.getStatusReason().hasConcept())
+ tgt.setStatusReason(convertType(src.getStatusReason().getConcept()));
+ if (src.getStatusReason().hasReference())
+ tgt.setStatusReason(convertType(src.getStatusReason().getReference()));
if (src.hasCategory())
tgt.setCategory(convertCodeableConcept(src.getCategoryFirstRep()));
- if (src.hasMedication())
- tgt.setMedication(convertType(src.getMedication()));
+ if (src.getMedication().hasConcept())
+ tgt.setMedication(convertType(src.getMedication().getConcept()));
+ if (src.getMedication().hasReference())
+ tgt.setMedication(convertType(src.getMedication().getReference()));
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
if (src.hasEncounter())
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 56180669c..ffd85da8d 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
@@ -206,8 +206,10 @@ public class MedicationKnowledge40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeIngredientComponent tgt = new org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeIngredientComponent();
copyElement(src, tgt);
- if (src.hasItem())
- tgt.setItem(convertType(src.getItem()));
+ if (src.hasItemCodeableConcept())
+ 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.hasStrength())
@@ -220,8 +222,10 @@ public class MedicationKnowledge40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeIngredientComponent tgt = new org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeIngredientComponent();
copyElement(src, tgt);
- if (src.hasItem())
- tgt.setItem(convertType(src.getItem()));
+ if (src.getItem().hasConcept())
+ tgt.setItem(convertType(src.getItem().getConcept()));
+ if (src.getItem().hasReference())
+ tgt.setItem(convertType(src.getItem().getReference()));
if (src.hasIsActive())
tgt.setIsActiveElement(convertBoolean(src.getIsActiveElement()));
if (src.hasStrengthRatio())
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationRequest40_50.java
index 10d1688c4..5a8f0aa52 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationRequest40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationRequest40_50.java
@@ -74,8 +74,10 @@ public class MedicationRequest40_50 extends VersionConvertor_40_50 {
tgt.setReportedElement(convertBoolean(src.getReportedBooleanType()));
if (src.hasReportedReference())
tgt.setInformationSource(convertReference(src.getReportedReference()));
- if (src.hasMedication())
- tgt.setMedication(convertType(src.getMedication()));
+ if (src.hasMedicationCodeableConcept())
+ tgt.getMedication().setConcept(convertCodeableConcept(src.getMedicationCodeableConcept()));
+ if (src.hasMedicationReference())
+ tgt.getMedication().setReference(convertReference(src.getMedicationReference()));
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
if (src.hasEncounter())
@@ -135,8 +137,10 @@ public class MedicationRequest40_50 extends VersionConvertor_40_50 {
tgt.setReported(convertBoolean(src.getReportedElement()));
if (src.hasInformationSource())
tgt.setReported(convertReference(src.getInformationSource()));
- if (src.hasMedication())
- tgt.setMedication(convertType(src.getMedication()));
+ if (src.getMedication().hasReference())
+ tgt.setMedication(convertType(src.getMedication().getReference()));
+ if (src.getMedication().hasConcept())
+ tgt.setMedication(convertType(src.getMedication().getConcept()));
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
if (src.hasEncounter())
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 c5272d0f3..f96fe964a 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
@@ -67,8 +67,12 @@ public class MedicationStatement40_50 extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getStatusReason()) tgt.addStatusReason(convertCodeableConcept(t));
if (src.hasCategory())
tgt.addCategory(convertCodeableConcept(src.getCategory()));
- if (src.hasMedication())
- tgt.setMedication(convertType(src.getMedication()));
+ if (src.hasMedicationCodeableConcept()) {
+ tgt.getMedication().setConcept(convertCodeableConcept(src.getMedicationCodeableConcept()));
+ }
+ if (src.hasMedicationReference()) {
+ tgt.getMedication().setReference(convertReference(src.getMedicationReference()));
+ }
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
if (src.hasContext())
@@ -100,8 +104,12 @@ public class MedicationStatement40_50 extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getStatusReason()) tgt.addStatusReason(convertCodeableConcept(t));
if (src.hasCategory())
tgt.setCategory(convertCodeableConcept(src.getCategoryFirstRep()));
- if (src.hasMedication())
- tgt.setMedication(convertType(src.getMedication()));
+ if (src.getMedication().hasConcept()) {
+ tgt.setMedication(convertType(src.getMedication().getConcept()));
+ }
+ if (src.getMedication().hasReference()) {
+ tgt.setMedication(convertType(src.getMedication().getReference()));
+ }
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
if (src.hasEncounter())
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
index eb5c318cf..a3007dd97 100644
--- 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
@@ -64,7 +64,7 @@ public class MedicinalProductDefinition40_50 extends VersionConvertor_40_50 {
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasDomain())
- tgt.setDomain(convertCoding(src.getDomain()));
+ tgt.getDomain().addCoding(convertCoding(src.getDomain()));
// version (new)
// status (new)
// description (new)
@@ -108,7 +108,7 @@ public class MedicinalProductDefinition40_50 extends VersionConvertor_40_50 {
copyElement(srcPart, tgtPart);
tgtName.addNamePart(tgtPart);
tgtPart.setPartElement(convertString(srcPart.getPartElement()));
- tgtPart.setType(convertCoding(srcPart.getType()));
+ 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();
@@ -129,7 +129,7 @@ public class MedicinalProductDefinition40_50 extends VersionConvertor_40_50 {
copyElement(srcMBO, tgtMBO);
tgt.addManufacturingBusinessOperation(tgtMBO);
if (srcMBO.hasOperationType()) {
- tgtMBO.setType(convertCodeableConcept(srcMBO.getOperationType()));
+ tgtMBO.getType().setConcept(convertCodeableConcept(srcMBO.getOperationType()));
// operationType -> type[x]
}
if (srcMBO.hasAuthorisationReferenceNumber())
@@ -163,8 +163,8 @@ public class MedicinalProductDefinition40_50 extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
- if (src.hasDomain())
- tgt.setDomain(convertCoding(src.getDomain()));
+ 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())
@@ -220,7 +220,9 @@ public class MedicinalProductDefinition40_50 extends VersionConvertor_40_50 {
copyElement(srcPart, tgtPart);
tgtName.addNamePart(tgtPart);
tgtPart.setPartElement(convertString(srcPart.getPartElement()));
- tgtPart.setType(convertCoding(srcPart.getType()));
+ 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();
@@ -248,8 +250,8 @@ public class MedicinalProductDefinition40_50 extends VersionConvertor_40_50 {
tgt.addManufacturingBusinessOperation(tgtMBO);
if (srcMBO.hasType()) {
// type[x] -> operationType
- if (srcMBO.getType() instanceof org.hl7.fhir.r5.model.CodeableConcept)
- tgtMBO.setOperationType(convertCodeableConcept((org.hl7.fhir.r5.model.CodeableConcept)srcMBO.getType()));
+ if (srcMBO.getType().hasConcept())
+ tgtMBO.setOperationType(convertCodeableConcept(srcMBO.getType().getConcept()));
else
throw new FHIRException("Converting MedicinalProductDefinition.manufacturingBusinessOperation.typeReference is not supported");
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/SubstancePolymer40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/SubstancePolymer40_50.java
index ebca16da5..b6c3e7905 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/SubstancePolymer40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/SubstancePolymer40_50.java
@@ -63,7 +63,7 @@ public class SubstancePolymer40_50 extends VersionConvertor_40_50 {
if (src.hasGeometry())
tgt.setGeometry(convertCodeableConcept(src.getGeometry()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCopolymerConnectivity()) tgt.addCopolymerConnectivity(convertCodeableConcept(t));
- for (org.hl7.fhir.r4.model.StringType t : src.getModification()) tgt.getModification().add(convertString(t));
+ for (org.hl7.fhir.r4.model.StringType t : src.getModification()) tgt.setModificationElement(convertString(t));
for (org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerMonomerSetComponent t : src.getMonomerSet()) tgt.addMonomerSet(convertSubstancePolymerMonomerSetComponent(t));
for (org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatComponent t : src.getRepeat()) tgt.addRepeat(convertSubstancePolymerRepeatComponent(t));
return tgt;
@@ -79,7 +79,7 @@ public class SubstancePolymer40_50 extends VersionConvertor_40_50 {
if (src.hasGeometry())
tgt.setGeometry(convertCodeableConcept(src.getGeometry()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCopolymerConnectivity()) tgt.addCopolymerConnectivity(convertCodeableConcept(t));
- for (org.hl7.fhir.r5.model.StringType t : src.getModification()) tgt.getModification().add(convertString(t));
+ if (src.hasModification()) tgt.getModification().add(convertString(src.getModificationElement()));
for (org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerMonomerSetComponent t : src.getMonomerSet()) tgt.addMonomerSet(convertSubstancePolymerMonomerSetComponent(t));
for (org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatComponent t : src.getRepeat()) tgt.addRepeat(convertSubstancePolymerRepeatComponent(t));
return tgt;
@@ -113,9 +113,9 @@ public class SubstancePolymer40_50 extends VersionConvertor_40_50 {
org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent tgt = new org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent();
copyElement(src, tgt);
if (src.hasMaterial())
- tgt.setMaterial(convertCodeableConcept(src.getMaterial()));
+ tgt.setCode(convertCodeableConcept(src.getMaterial()));
if (src.hasType())
- tgt.setType(convertCodeableConcept(src.getType()));
+ tgt.setCategory(convertCodeableConcept(src.getType()));
if (src.hasIsDefining())
tgt.setIsDefiningElement(convertBoolean(src.getIsDefiningElement()));
if (src.hasAmount())
@@ -128,10 +128,10 @@ public class SubstancePolymer40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent tgt = new org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent();
copyElement(src, tgt);
- if (src.hasMaterial())
- tgt.setMaterial(convertCodeableConcept(src.getMaterial()));
+ if (src.hasCode())
+ tgt.setMaterial(convertCodeableConcept(src.getCode()));
if (src.hasType())
- tgt.setType(convertCodeableConcept(src.getType()));
+ tgt.setType(convertCodeableConcept(src.getCategory()));
if (src.hasIsDefining())
tgt.setIsDefiningElement(convertBoolean(src.getIsDefiningElement()));
if (src.hasAmount())
@@ -175,9 +175,9 @@ public class SubstancePolymer40_50 extends VersionConvertor_40_50 {
org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent tgt = new org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent();
copyElement(src, tgt);
if (src.hasOrientationOfPolymerisation())
- tgt.setOrientationOfPolymerisation(convertCodeableConcept(src.getOrientationOfPolymerisation()));
+ tgt.setOrientation(convertCodeableConcept(src.getOrientationOfPolymerisation()));
if (src.hasRepeatUnit())
- tgt.setRepeatUnitElement(convertString(src.getRepeatUnitElement()));
+ tgt.setUnitElement(convertString(src.getRepeatUnitElement()));
if (src.hasAmount())
tgt.setAmount(convertSubstanceAmount(src.getAmount()));
for (org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisationComponent t : src.getDegreeOfPolymerisation()) tgt.addDegreeOfPolymerisation(convertSubstancePolymerRepeatRepeatUnitDegreeOfPolymerisationComponent(t));
@@ -190,10 +190,10 @@ public class SubstancePolymer40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent tgt = new org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent();
copyElement(src, tgt);
- if (src.hasOrientationOfPolymerisation())
- tgt.setOrientationOfPolymerisation(convertCodeableConcept(src.getOrientationOfPolymerisation()));
- if (src.hasRepeatUnit())
- tgt.setRepeatUnitElement(convertString(src.getRepeatUnitElement()));
+ if (src.hasOrientation())
+ tgt.setOrientationOfPolymerisation(convertCodeableConcept(src.getOrientation()));
+ if (src.hasUnit())
+ tgt.setRepeatUnitElement(convertString(src.getUnitElement()));
if (src.hasAmount())
tgt.setAmount(convertSubstanceAmount(src.getAmount()));
for (org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisationComponent t : src.getDegreeOfPolymerisation()) tgt.addDegreeOfPolymerisation(convertSubstancePolymerRepeatRepeatUnitDegreeOfPolymerisationComponent(t));
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/SupplyRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/SupplyRequest40_50.java
index a3bf46925..935315cfd 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/SupplyRequest40_50.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/SupplyRequest40_50.java
@@ -66,8 +66,13 @@ public class SupplyRequest40_50 extends VersionConvertor_40_50 {
tgt.setCategory(convertCodeableConcept(src.getCategory()));
if (src.hasPriority())
tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement()));
- if (src.hasItem())
- tgt.setItem(convertType(src.getItem()));
+ if (src.hasItem()) {
+ if (src.hasItemCodeableConcept()) {
+ tgt.getItem().setConcept(convertCodeableConcept(src.getItemCodeableConcept()));
+ } else {
+ tgt.getItem().setReference(convertReference(src.getItemReference()));
+ }
+ }
if (src.hasQuantity())
tgt.setQuantity(convertQuantity(src.getQuantity()));
for (org.hl7.fhir.r4.model.SupplyRequest.SupplyRequestParameterComponent t : src.getParameter()) tgt.addParameter(convertSupplyRequestParameterComponent(t));
@@ -99,8 +104,13 @@ public class SupplyRequest40_50 extends VersionConvertor_40_50 {
tgt.setCategory(convertCodeableConcept(src.getCategory()));
if (src.hasPriority())
tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement()));
- if (src.hasItem())
- tgt.setItem(convertType(src.getItem()));
+ if (src.hasItem()) {
+ if (src.getItem().hasReference()) {
+ tgt.setItem(convertType(src.getItem().getReference()));
+ } else {
+ tgt.setItem(convertType(src.getItem().getConcept()));
+ }
+ }
if (src.hasQuantity())
tgt.setQuantity(convertQuantity(src.getQuantity()));
for (org.hl7.fhir.r5.model.SupplyRequest.SupplyRequestParameterComponent t : src.getParameter()) tgt.addParameter(convertSupplyRequestParameterComponent(t));
diff --git a/org.hl7.fhir.core.generator/configuration/CodeableConcept.java b/org.hl7.fhir.core.generator/configuration/CodeableConcept.java
index 3175e2751..c79fc6649 100644
--- a/org.hl7.fhir.core.generator/configuration/CodeableConcept.java
+++ b/org.hl7.fhir.core.generator/configuration/CodeableConcept.java
@@ -13,3 +13,16 @@
}
+ public boolean matches(CodeableConcept other) {
+ for (Coding c : other.getCoding()) {
+ if (hasCoding(c.getSystem(), c.getCode())) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean hasCoding(Coding coding) {
+ return hasCoding(coding.getSystem(), coding.getCode());
+ }
+
\ No newline at end of file
diff --git a/org.hl7.fhir.core.generator/configuration/Coding.java b/org.hl7.fhir.core.generator/configuration/Coding.java
index 8e020a79c..119a78405 100644
--- a/org.hl7.fhir.core.generator/configuration/Coding.java
+++ b/org.hl7.fhir.core.generator/configuration/Coding.java
@@ -24,3 +24,8 @@
}
+
+ public boolean matches(Coding other) {
+ return other.hasCode() && this.hasCode() && other.hasSystem() && this.hasSystem() && this.getCode().equals(other.getCode()) && this.getSystem().equals(other.getSystem()) ;
+ }
+
\ No newline at end of file
diff --git a/org.hl7.fhir.core.generator/configuration/Constants.java b/org.hl7.fhir.core.generator/configuration/Constants.java
index 38de2ad58..48b4b6f9e 100644
--- a/org.hl7.fhir.core.generator/configuration/Constants.java
+++ b/org.hl7.fhir.core.generator/configuration/Constants.java
@@ -8,7 +8,7 @@ package org.hl7.fhir.r5.model;
public class Constants {
- public final static String LOCAL_REF_REGEX = "({{rt}})\\\\/[A-Za-z0-9\\\\-\\\\.]{1,64}\";
+ public final static String LOCAL_REF_REGEX = "({{rt}})\\\\/[A-Za-z0-9\\\\-\\\\.]{1,64}";
public final static String NS_SYSTEM_TYPE = "http://hl7.org/fhirpath/System.";
public final static String VERSION = "{{version}}";
diff --git a/org.hl7.fhir.core.generator/configuration/ElementDefinition.java b/org.hl7.fhir.core.generator/configuration/ElementDefinition.java
index f3c2c0dc8..c7a54526b 100644
--- a/org.hl7.fhir.core.generator/configuration/ElementDefinition.java
+++ b/org.hl7.fhir.core.generator/configuration/ElementDefinition.java
@@ -32,7 +32,15 @@
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))
diff --git a/org.hl7.fhir.core.generator/configuration/JsonParser.java b/org.hl7.fhir.core.generator/configuration/JsonParser.java
index cd5abc9a4..cf2cccb87 100644
--- a/org.hl7.fhir.core.generator/configuration/JsonParser.java
+++ b/org.hl7.fhir.core.generator/configuration/JsonParser.java
@@ -28,6 +28,12 @@ public class JsonParser extends JsonParserBase {
setAllowUnknownContent(allowUnknownContent);
}
+ public JsonParser(boolean allowUnknownContent, boolean allowComments) {
+ super();
+ setAllowUnknownContent(allowUnknownContent);
+ setAllowComments(allowComments);
+ }
+
protected void parseBaseProperties(JsonObject json, Base res) throws IOException, FHIRFormatError {
// nothing
}
diff --git a/org.hl7.fhir.core.generator/configuration/Parameters.java b/org.hl7.fhir.core.generator/configuration/Parameters.java
index 8b3c796a8..c14597a42 100644
--- a/org.hl7.fhir.core.generator/configuration/Parameters.java
+++ b/org.hl7.fhir.core.generator/configuration/Parameters.java
@@ -90,4 +90,3 @@
}
return false;
}
-
diff --git a/org.hl7.fhir.core.generator/configuration/ParametersParameterComponent.java b/org.hl7.fhir.core.generator/configuration/ParametersParameterComponent.java
new file mode 100644
index 000000000..127ebd38b
--- /dev/null
+++ b/org.hl7.fhir.core.generator/configuration/ParametersParameterComponent.java
@@ -0,0 +1,19 @@
+ public String toString() {
+ String s = getName() + " = ";
+ if (hasValue()) {
+ if (getValue().isPrimitive()) {
+ s = s + getValue().primitiveValue();
+ } else {
+ s = s + "["+getValue().fhirType()+"]";
+ }
+ } else if (hasResource()) {
+ s = s + "["+getResource().fhirType()+"]";
+ } else {
+ CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder();
+ for (ParametersParameterComponent p : getPart()) {
+ b.append(p.getName());
+ }
+ s = s + "{"+b.toString()+"}";
+ }
+ return s;
+ }
diff --git a/org.hl7.fhir.core.generator/configuration/ResourceType.java b/org.hl7.fhir.core.generator/configuration/ResourceType.java
new file mode 100644
index 000000000..8113db282
--- /dev/null
+++ b/org.hl7.fhir.core.generator/configuration/ResourceType.java
@@ -0,0 +1,26 @@
+package org.hl7.fhir.r5.model;
+
+{{license}}
+
+{{startMark}}
+
+import org.hl7.fhir.exceptions.FHIRException;
+
+public enum ResourceType {
+{{types-enum}};
+
+
+ public String getPath() {;
+ switch (this) {
+{{types-getPath}}
+ }
+ return null;
+ }
+
+
+ public static ResourceType fromCode(String code) throws FHIRException {;
+{{types-fromCode}}
+ throw new FHIRException("Unknown resource type"+code);
+ }
+
+}
diff --git a/org.hl7.fhir.core.generator/configuration/TypeRefComponent.java b/org.hl7.fhir.core.generator/configuration/TypeRefComponent.java
index 30a78f3c4..ca651f606 100644
--- a/org.hl7.fhir.core.generator/configuration/TypeRefComponent.java
+++ b/org.hl7.fhir.core.generator/configuration/TypeRefComponent.java
@@ -64,7 +64,7 @@
if (hasTargetProfile()) {
res = res + "->(";
boolean first = true;
- for (CanonicalType s : getProfile()) {
+ for (CanonicalType s : getTargetProfile()) {
if (first) first = false; else res = res + "|";
res = res + s.getValue();
}
diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java
index 86f8981f0..c535059e7 100644
--- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java
+++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java
@@ -46,7 +46,7 @@ public class Analyser {
sd.setUserData("java.type.info", type);
type.setDefn(sd.getSnapshot().getElementFirstRep());
- type.setChildren(filterChildren(ProfileUtilities.getChildList(sd, type.getDefn())));
+ type.setChildren(filterChildren(new ProfileUtilities(null, null, null).getChildList(sd, type.getDefn())));
type.setInheritedChildren(getAbstractChildren(res.getAncestor()));
for (ElementDefinition e : type.getChildren()) {
@@ -92,7 +92,7 @@ public class Analyser {
List res = new ArrayList<>();
StructureDefinition sdb = definitions.getStructures().get(structure.getBaseDefinition());
res.addAll(getAbstractChildren(sdb));
- res.addAll(filterChildren(ProfileUtilities.getChildList(structure, structure.getSnapshot().getElementFirstRep())));
+ res.addAll(filterChildren(new ProfileUtilities(null, null, null).getChildList(structure, structure.getSnapshot().getElementFirstRep())));
return res;
}
@@ -168,7 +168,7 @@ public class Analyser {
analysis.getTypeList().add(ctype);
ctype.setDefn(e);
ctype.setAncestorName(e.typeSummary());
- ctype.setChildren(filterChildren(ProfileUtilities.getChildList(analysis.getStructure(), ctype.getDefn())));
+ ctype.setChildren(filterChildren(new ProfileUtilities(null, null, null).getChildList(analysis.getStructure(), ctype.getDefn())));
for (ElementDefinition c : ctype.getChildren()) {
scanNestedTypes(analysis, ctype, cpath, c);
@@ -188,7 +188,9 @@ public class Analyser {
if (inc.hasSystem() && !inc.hasFilter() && !inc.hasConcept() && !(inc.getSystem().startsWith("http://hl7.org/fhir") || inc.getSystem().startsWith("http://terminology.hl7.org")))
ok = false;
}
- if (config.getIni().getBooleanProperty("no-enum", vs.getUrl())) {
+ if (vs == null) {
+ ok = false;
+ } else if (config.getIni().getBooleanProperty("no-enum", vs.getUrl())) {
ok = false;
}
}
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 13dd560b8..c1294ec99 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
@@ -80,7 +80,11 @@ public class JavaEnumerationsGenerator extends JavaBaseGenerator {
for (String n : names) {
ValueSet vs = enums.get(n);
write("// "+n+": "+vs.getDescription());
- write(vs.getUserData("usages").toString());
+ if (vs.hasUserData("usages")) {
+ write(vs.getUserData("usages").toString());
+ } else {
+ write("?null?");
+ }
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 4bac2ba58..50affcc18 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
@@ -76,7 +76,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator {
generateComposer(analysis);
if (!analysis.isAbstract()) {
if (analysis.getStructure().getKind() == StructureDefinitionKind.COMPLEXTYPE) {
- pregt.append(" } else if (json.has(prefix+\""+analysis.getName()+"\")) {\r\n return parse"+analysis.getRootType().getName()+"(json.getAsJsonObject(prefix+\""+analysis.getName()+"\"));\r\n");
+ pregt.append(" } else if (json.has(prefix+\""+analysis.getName()+"\")) {\r\n return parse"+analysis.getRootType().getName()+"(getJObject(json, prefix+\""+analysis.getName()+"\"));\r\n");
pregt2.append(" } else if (type.equals(\""+analysis.getName()+"\")) {\r\n return parse"+analysis.getName()+"(json);\r\n");
cregtn.append(" } else if (type instanceof "+analysis.getName()+") {\r\n compose"+analysis.getName()+"(prefix+\""+analysis.getName()+"\", ("+analysis.getClassName()+") type);\r\n");
cregti.append(" } else if (type instanceof "+analysis.getName()+") {\r\n compose"+analysis.getName()+"Properties(("+analysis.getName()+") type);\r\n");
@@ -212,7 +212,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator {
if (tn.equals("XhtmlNode")) {
prsr = "parseXhtml(json.get(\""+name+"\").getAsString())";
} else if (tn.contains("Reference(")) {
- prsr = "parseReference(json.getAsJsonObject(\""+name+"\"))";
+ prsr = "parseReference(getJObject(json, \""+name+"\"))";
aprsr = "parseReference(array.get(i).getAsJsonObject())";
anprsr = "parseReference(null)";
} else if (tn.contains("canonical(")) {
@@ -231,7 +231,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator {
if ((ed.isInlineType() || ed.hasContentReference()) && !pn.startsWith(analysis.getClassName())) {
pn = analysis.getClassName()+pn;
}
- prsr = "parse"+pn+"(json.getAsJsonObject(\""+name+"\"))";
+ prsr = "parse"+pn+"(getJObject(json, \""+name+"\"))";
aprsr = "parse"+pn+"(array.get(i).getAsJsonObject())";
anprsr = "parse"+pn+"(null)";
}
@@ -276,7 +276,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator {
if ((isPrimitive(ed.typeSummary()) || ed.typeSummary().startsWith("canonical(")) && !tn.equals("XhtmlNode")) {
parser.append(" res.add"+upFirst(getElementName(name, false))+"Element("+prsr+");\r\n");
parser.append(" if (json.has(\"_"+name+"\"))\r\n");
- parser.append(" parseElementProperties(json.getAsJsonObject(\"_"+name+"\"), res.get"+upFirst(getElementName(name, false))+"ElementFirstRep());\r\n");
+ parser.append(" parseElementProperties(getJObject(json, \"_"+name+"\"), res.get"+upFirst(getElementName(name, false))+"ElementFirstRep());\r\n");
} else {
parser.append(" res.add"+upFirst(getElementName(name, false))+"("+prsr+");\r\n");
}
@@ -285,7 +285,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator {
if ((isPrimitive(ed.typeSummary()) || ed.typeSummary().startsWith("canonical(")) && !tn.equals("XhtmlNode")) {
parser.append(" res.set"+upFirst(getElementName(name, false))+"Element("+prsr+");\r\n");
parser.append(" if (json.has(\"_"+name+"\"))\r\n");
- parser.append(" parseElementProperties(json.getAsJsonObject(\"_"+name+"\"), res.get"+upFirst(getElementName(name, false))+"Element());\r\n");
+ parser.append(" parseElementProperties(getJObject(json, \"_"+name+"\"), res.get"+upFirst(getElementName(name, false))+"Element());\r\n");
} else {
parser.append(" res.set"+upFirst(getElementName(name, false))+"("+prsr+");\r\n");
}
diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaTypeGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaTypeGenerator.java
new file mode 100644
index 000000000..d71e652d1
--- /dev/null
+++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaTypeGenerator.java
@@ -0,0 +1,107 @@
+package org.hl7.fhir.core.generator.codegen;
+/*
+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.
+
+*/
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
+import java.io.UnsupportedEncodingException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.hl7.fhir.core.generator.analysis.TypeInfo;
+import org.hl7.fhir.core.generator.codegen.JavaBaseGenerator;
+import org.hl7.fhir.core.generator.engine.Definitions;
+import org.hl7.fhir.r5.model.ImplementationGuide.SPDXLicense;
+import org.hl7.fhir.r5.model.StructureDefinition;
+import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind;
+import org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule;
+
+
+
+public class JavaTypeGenerator extends JavaBaseGenerator {
+
+
+ public JavaTypeGenerator(OutputStream out, Definitions definitions, Configuration configuration, Date genDate, String version) throws UnsupportedEncodingException {
+ super(out, definitions, configuration, version, genDate);
+ }
+
+ public void generate() throws Exception {
+ String template = config.getAdornments().get("ResourceType");
+ template = template.replace("{{license}}", config.getLicense());
+ template = template.replace("{{startMark}}", startVMarkValue());
+ template = template.replace("{{types-enum}}", genEnums());
+ template = template.replace("{{types-getPath}}", genTypePaths());
+ template = template.replace("{{types-fromCode}}", genFromCode());
+ write(template);
+ flush();
+ close();
+ }
+
+
+ private String genEnums() {
+ StringBuilder b = new StringBuilder();
+ boolean first = true;
+ for (StructureDefinition sd : definitions.getStructures().getSortedList()) {
+ if (sd.getKind() == StructureDefinitionKind.RESOURCE && sd.getDerivation() == TypeDerivationRule.SPECIALIZATION && !sd.getAbstract()) {
+ String tn = sd.getType();
+ if (first) { first = false; } else { b.append(",\r\n "); }
+ b.append(tn);
+ }
+ }
+
+ return b.toString();
+ }
+
+ private String genTypePaths() {
+ StringBuilder b = new StringBuilder();
+ for (StructureDefinition sd : definitions.getStructures().getSortedList()) {
+ if (sd.getKind() == StructureDefinitionKind.RESOURCE && sd.getDerivation() == TypeDerivationRule.SPECIALIZATION && !sd.getAbstract()) {
+ b.append(" case "+sd.getType()+":\r\n");
+ b.append(" return \""+sd.getType().toLowerCase()+"\";\r\n");
+ }
+ }
+
+ return b.toString();
+ }
+
+ private String genFromCode() {
+ StringBuilder b = new StringBuilder();
+ for (StructureDefinition sd : definitions.getStructures().getSortedList()) {
+ if (sd.getKind() == StructureDefinitionKind.RESOURCE && sd.getDerivation() == TypeDerivationRule.SPECIALIZATION && !sd.getAbstract()) {
+ b.append(" if (\""+sd.getType()+"\".equals(code))\r\n");
+ b.append(" return "+sd.getType()+";\r\n");
+ }
+ }
+ return b.toString();
+ }
+
+}
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 5ffeb2358..69e8811b3 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
@@ -23,28 +23,28 @@ public class DefinitionsLoader {
Definitions res = new Definitions();
for (String t : npm.listResources("CodeSystem")) {
- res.getCodeSystems().see((CodeSystem) load(npm, t));
+ res.getCodeSystems().see((CodeSystem) load(npm, t), null);
}
for (String t : npm.listResources("ValueSet")) {
- res.getValuesets().see((ValueSet) load(npm, t));
+ res.getValuesets().see((ValueSet) load(npm, t), null);
}
for (String t : npm.listResources("ConceptMap")) {
- res.getConceptMaps().see((ConceptMap) load(npm, t));
+ res.getConceptMaps().see((ConceptMap) load(npm, t), null);
}
for (String t : npm.listResources("CapabilityStatement")) {
- res.getStatements().see((CapabilityStatement) load(npm, t));
+ res.getStatements().see((CapabilityStatement) load(npm, t), null);
}
for (String t : npm.listResources("StructureDefinition")) {
- res.getStructures().see((StructureDefinition) load(npm, t));
+ res.getStructures().see((StructureDefinition) load(npm, t), null);
}
for (String t : npm.listResources("OperationDefinition")) {
- res.getOperations().see((OperationDefinition) load(npm, t));
+ res.getOperations().see((OperationDefinition) load(npm, t), null);
}
for (String t : npm.listResources("SearchParameter")) {
- res.getSearchParams().see((SearchParameter) load(npm, t));
+ res.getSearchParams().see((SearchParameter) load(npm, t), null);
}
for (String t : npm.listResources("CompartmentDefinition")) {
- res.getCompartments().see((CompartmentDefinition) load(npm, t));
+ res.getCompartments().see((CompartmentDefinition) load(npm, t), null);
}
return res;
}
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 707206e8d..2c079e38d 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
@@ -19,6 +19,7 @@ import org.hl7.fhir.core.generator.codegen.JavaParserJsonGenerator;
import org.hl7.fhir.core.generator.codegen.JavaParserRdfGenerator;
import org.hl7.fhir.core.generator.codegen.JavaParserXmlGenerator;
import org.hl7.fhir.core.generator.codegen.JavaResourceGenerator;
+import org.hl7.fhir.core.generator.codegen.JavaTypeGenerator;
import org.hl7.fhir.r5.model.ValueSet;
import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind;
import org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule;
@@ -61,18 +62,20 @@ public class JavaCoreGenerator {
String ap = Utilities.path(src);
System.out.println("Load Configuration from "+ap);
Configuration config = new Configuration(ap);
+ String pid = "r5";
+ String jid = "r5";
PackageCacheManager pcm = new PackageCacheManager(true, ToolsVersion.TOOLS_VERSION);
System.out.println("Cache: "+pcm.getFolder());
- System.out.println("Load hl7.fhir.r5.core");
- NpmPackage npm = pcm.loadPackage("hl7.fhir.r5.core", version);
+ System.out.println("Load hl7.fhir."+pid+".core");
+ NpmPackage npm = pcm.loadPackage("hl7.fhir."+pid+".core", version);
Definitions master = DefinitionsLoader.load(npm);
markValueSets(master, config);
- System.out.println("Load hl7.fhir.r5.expansions");
- Definitions expansions = DefinitionsLoader.load(pcm.loadPackage("hl7.fhir.r5.expansions", version));
+ System.out.println("Load hl7.fhir."+pid+".expansions");
+ Definitions expansions = DefinitionsLoader.load(pcm.loadPackage("hl7.fhir."+pid+".expansions", version));
System.out.println("Process Expansions");
updateExpansions(master, expansions);
@@ -88,6 +91,7 @@ public class JavaCoreGenerator {
egen.close();
JavaFactoryGenerator fgen = new JavaFactoryGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", "r5", "model", "ResourceFactory.java")), master, config, date, npm.version());
+ JavaTypeGenerator tgen = new JavaTypeGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", "r5", "model", "ResourceType.java")), master, config, date, npm.version());
JavaParserJsonGenerator jgen = new JavaParserJsonGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", "r5", "formats", "JsonParser.java")), master, config, date, npm.version());
JavaParserXmlGenerator xgen = new JavaParserXmlGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", "r5", "formats", "XmlParser.java")), master, config, date, npm.version());
JavaParserRdfGenerator rgen = new JavaParserRdfGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", "r5", "formats", "RdfParser.java")), master, config, date, npm.version());
@@ -169,6 +173,9 @@ public class JavaCoreGenerator {
System.out.println(" .. Factory");
fgen.generate();
fgen.close();
+ System.out.println(" .. Types");
+ tgen.generate();
+ tgen.close();
System.out.println(" .. JsonParser");
jgen.generate();
jgen.close();
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 15d841321..936e6aaf7 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
@@ -50,11 +50,10 @@ package org.hl7.fhir.r5.formats;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Mon, Jan 20, 2020 14:31+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
-import ca.uhn.fhir.parser.DataFormatException;
import org.hl7.fhir.r5.model.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.utilities.xhtml.XhtmlNode;
@@ -161,7 +160,8 @@ public class JsonParser extends JsonParserBase {
}
protected Base64BinaryType parseBase64Binary(String v) throws IOException, FHIRFormatError {
- return new Base64BinaryType(v);
+ Base64BinaryType res = new Base64BinaryType(v);
+ return res;
}
protected UnsignedIntType parseUnsignedInt(String v) throws IOException, FHIRFormatError {
@@ -2689,10 +2689,10 @@ public class JsonParser extends JsonParserBase {
res.getDevice().add(parseReference(array.get(i).getAsJsonObject()));
}
};
- if (json.has("characteristic")) {
- JsonArray array = json.getAsJsonArray("characteristic");
+ if (json.has("property")) {
+ JsonArray array = json.getAsJsonArray("property");
for (int i = 0; i < array.size(); i++) {
- res.getCharacteristic().add(parseAdministrableProductDefinitionCharacteristicComponent(array.get(i).getAsJsonObject()));
+ res.getProperty().add(parseAdministrableProductDefinitionPropertyComponent(array.get(i).getAsJsonObject()));
}
};
if (json.has("routeOfAdministration")) {
@@ -2703,16 +2703,16 @@ public class JsonParser extends JsonParserBase {
};
}
- protected AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent parseAdministrableProductDefinitionCharacteristicComponent(JsonObject json) throws IOException, FHIRFormatError {
- AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent res = new AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent();
- parseAdministrableProductDefinitionCharacteristicComponentProperties(json, res);
+ protected AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent parseAdministrableProductDefinitionPropertyComponent(JsonObject json) throws IOException, FHIRFormatError {
+ AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent res = new AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent();
+ parseAdministrableProductDefinitionPropertyComponentProperties(json, res);
return res;
}
- protected void parseAdministrableProductDefinitionCharacteristicComponentProperties(JsonObject json, AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent res) throws IOException, FHIRFormatError {
+ protected void parseAdministrableProductDefinitionPropertyComponentProperties(JsonObject json, AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res);
- if (json.has("code"))
- res.setCode(parseCodeableConcept(getJObject(json, "code")));
+ if (json.has("type"))
+ res.setType(parseCodeableConcept(getJObject(json, "type")));
DataType value = parseType("value", json);
if (value != null)
res.setValue(value);
@@ -3313,13 +3313,7 @@ public class JsonParser extends JsonParserBase {
if (json.has("_recorded"))
parseElementProperties(getJObject(json, "_recorded"), res.getRecordedElement());
if (json.has("outcome"))
- res.setOutcomeElement(parseEnumeration(json.get("outcome").getAsString(), AuditEvent.AuditEventOutcome.NULL, new AuditEvent.AuditEventOutcomeEnumFactory()));
- if (json.has("_outcome"))
- parseElementProperties(getJObject(json, "_outcome"), res.getOutcomeElement());
- if (json.has("outcomeDesc"))
- res.setOutcomeDescElement(parseString(json.get("outcomeDesc").getAsString()));
- if (json.has("_outcomeDesc"))
- parseElementProperties(getJObject(json, "_outcomeDesc"), res.getOutcomeDescElement());
+ res.setOutcome(parseCodeableConcept(getJObject(json, "outcome")));
if (json.has("purposeOfEvent")) {
JsonArray array = json.getAsJsonArray("purposeOfEvent");
for (int i = 0; i < array.size(); i++) {
@@ -5212,7 +5206,7 @@ public class JsonParser extends JsonParserBase {
if (scheduled != null)
res.setScheduled(scheduled);
if (json.has("location"))
- res.setLocation(parseReference(getJObject(json, "location")));
+ res.setLocation(parseCodeableReference(getJObject(json, "location")));
DataType reported = parseType("reported", json);
if (reported != null)
res.setReported(reported);
@@ -5787,6 +5781,653 @@ public class JsonParser extends JsonParserBase {
res.setAmount(parseMoney(getJObject(json, "amount")));
}
+ protected Citation parseCitation(JsonObject json) throws IOException, FHIRFormatError {
+ Citation res = new Citation();
+ parseCitationProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationProperties(JsonObject json, Citation res) throws IOException, FHIRFormatError {
+ parseMetadataResourceProperties(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("version"))
+ res.setVersionElement(parseString(json.get("version").getAsString()));
+ if (json.has("_version"))
+ parseElementProperties(getJObject(json, "_version"), res.getVersionElement());
+ 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("useContext")) {
+ JsonArray array = json.getAsJsonArray("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");
+ 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");
+ for (int i = 0; i < array.size(); i++) {
+ res.getRelatedIdentifier().add(parseIdentifier(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("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");
+ for (int i = 0; i < array.size(); i++) {
+ res.getAlternativeTitle().add(parseCitationAlternativeTitleComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("pagination"))
+ res.setPagination(parseCitationPaginationComponent(getJObject(json, "pagination")));
+ if (json.has("articleUrl")) {
+ JsonArray array = json.getAsJsonArray("articleUrl");
+ for (int i = 0; i < array.size(); i++) {
+ res.getArticleUrl().add(parseCitationArticleUrlComponent(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");
+ for (int i = 0; i < array.size(); i++) {
+ res.getAlternativeAbstract().add(parseCitationAlternativeAbstractComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("authorList"))
+ res.setAuthorList(parseCitationAuthorListComponent(getJObject(json, "authorList")));
+ if (json.has("authorString")) {
+ JsonArray array = json.getAsJsonArray("authorString");
+ for (int i = 0; i < array.size(); i++) {
+ res.getAuthorString().add(parseCitationAuthorStringComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("contributorList"))
+ res.setContributorList(parseCitationContributorListComponent(getJObject(json, "contributorList")));
+ 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("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("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("medlinePubMed"))
+ res.setMedlinePubMed(parseCitationMedlinePubMedComponent(getJObject(json, "medlinePubMed")));
+ }
+
+ protected Citation.CitationVariantCitationComponent parseCitationVariantCitationComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationVariantCitationComponent res = new Citation.CitationVariantCitationComponent();
+ parseCitationVariantCitationComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationVariantCitationComponentProperties(JsonObject json, Citation.CitationVariantCitationComponent 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());
+ if (json.has("baseCitation"))
+ res.setBaseCitation(parseReference(getJObject(json, "baseCitation")));
+ }
+
+ protected Citation.CitationJournalComponent parseCitationJournalComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationJournalComponent res = new Citation.CitationJournalComponent();
+ parseCitationJournalComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationJournalComponentProperties(JsonObject json, Citation.CitationJournalComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ 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("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());
+ }
+
+ protected Citation.CitationJournalJournalIssueComponent parseCitationJournalJournalIssueComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationJournalJournalIssueComponent res = new Citation.CitationJournalJournalIssueComponent();
+ parseCitationJournalJournalIssueComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationJournalJournalIssueComponentProperties(JsonObject json, Citation.CitationJournalJournalIssueComponent 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.setPublicationDateElement(parseString(json.get("publicationDate").getAsString()));
+ if (json.has("_publicationDate"))
+ parseElementProperties(getJObject(json, "_publicationDate"), res.getPublicationDateElement());
+ }
+
+ 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 {
+ 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 Citation.CitationAlternativeAbstractComponent parseCitationAlternativeAbstractComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationAlternativeAbstractComponent res = new Citation.CitationAlternativeAbstractComponent();
+ parseCitationAlternativeAbstractComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationAlternativeAbstractComponentProperties(JsonObject json, Citation.CitationAlternativeAbstractComponent 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());
+ }
+
+ protected Citation.CitationAuthorListComponent parseCitationAuthorListComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationAuthorListComponent res = new Citation.CitationAuthorListComponent();
+ parseCitationAuthorListComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationAuthorListComponentProperties(JsonObject json, Citation.CitationAuthorListComponent 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("author")) {
+ JsonArray array = json.getAsJsonArray("author");
+ for (int i = 0; i < array.size(); i++) {
+ res.getAuthor().add(parseCitationAuthorListAuthorComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ }
+
+ protected Citation.CitationAuthorListAuthorComponent parseCitationAuthorListAuthorComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationAuthorListAuthorComponent res = new Citation.CitationAuthorListAuthorComponent();
+ parseCitationAuthorListAuthorComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationAuthorListAuthorComponentProperties(JsonObject json, Citation.CitationAuthorListAuthorComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("lastName"))
+ res.setLastNameElement(parseString(json.get("lastName").getAsString()));
+ if (json.has("_lastName"))
+ parseElementProperties(getJObject(json, "_lastName"), res.getLastNameElement());
+ if (json.has("foreName"))
+ res.setForeNameElement(parseString(json.get("foreName").getAsString()));
+ if (json.has("_foreName"))
+ parseElementProperties(getJObject(json, "_foreName"), res.getForeNameElement());
+ if (json.has("suffix"))
+ res.setSuffixElement(parseString(json.get("suffix").getAsString()));
+ if (json.has("_suffix"))
+ parseElementProperties(getJObject(json, "_suffix"), res.getSuffixElement());
+ if (json.has("initials"))
+ res.setInitialsElement(parseString(json.get("initials").getAsString()));
+ if (json.has("_initials"))
+ parseElementProperties(getJObject(json, "_initials"), res.getInitialsElement());
+ if (json.has("collectiveName"))
+ res.setCollectiveNameElement(parseString(json.get("collectiveName").getAsString()));
+ if (json.has("_collectiveName"))
+ parseElementProperties(getJObject(json, "_collectiveName"), res.getCollectiveNameElement());
+ 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("affiliationInfo")) {
+ JsonArray array = json.getAsJsonArray("affiliationInfo");
+ for (int i = 0; i < array.size(); i++) {
+ res.getAffiliationInfo().add(parseCitationAuthorListAuthorAffiliationInfoComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("address")) {
+ JsonArray array = json.getAsJsonArray("address");
+ for (int i = 0; i < array.size(); i++) {
+ if (array.get(i).isJsonNull()) {
+ res.getAddress().add(new StringType());
+ } else {;
+ res.getAddress().add(parseString(array.get(i).getAsString()));
+ }
+ }
+ };
+ if (json.has("_address")) {
+ JsonArray array = json.getAsJsonArray("_address");
+ for (int i = 0; i < array.size(); i++) {
+ if (i == res.getAddress().size())
+ res.getAddress().add(parseString(null));
+ if (array.get(i) instanceof JsonObject)
+ parseElementProperties(array.get(i).getAsJsonObject(), res.getAddress().get(i));
+ }
+ };
+ if (json.has("telecom")) {
+ JsonArray array = json.getAsJsonArray("telecom");
+ for (int i = 0; i < array.size(); i++) {
+ res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("correspondingAuthor"))
+ res.setCorrespondingAuthorElement(parseBoolean(json.get("correspondingAuthor").getAsBoolean()));
+ if (json.has("_correspondingAuthor"))
+ parseElementProperties(getJObject(json, "_correspondingAuthor"), res.getCorrespondingAuthorElement());
+ if (json.has("listOrder"))
+ res.setListOrderElement(parsePositiveInt(json.get("listOrder").getAsString()));
+ if (json.has("_listOrder"))
+ parseElementProperties(getJObject(json, "_listOrder"), res.getListOrderElement());
+ }
+
+ protected Citation.CitationAuthorListAuthorAffiliationInfoComponent parseCitationAuthorListAuthorAffiliationInfoComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationAuthorListAuthorAffiliationInfoComponent res = new Citation.CitationAuthorListAuthorAffiliationInfoComponent();
+ parseCitationAuthorListAuthorAffiliationInfoComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationAuthorListAuthorAffiliationInfoComponentProperties(JsonObject json, Citation.CitationAuthorListAuthorAffiliationInfoComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("affiliation"))
+ res.setAffiliationElement(parseString(json.get("affiliation").getAsString()));
+ if (json.has("_affiliation"))
+ parseElementProperties(getJObject(json, "_affiliation"), res.getAffiliationElement());
+ if (json.has("role"))
+ res.setRoleElement(parseString(json.get("role").getAsString()));
+ if (json.has("_role"))
+ parseElementProperties(getJObject(json, "_role"), res.getRoleElement());
+ 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 Citation.CitationAuthorStringComponent parseCitationAuthorStringComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationAuthorStringComponent res = new Citation.CitationAuthorStringComponent();
+ parseCitationAuthorStringComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationAuthorStringComponentProperties(JsonObject json, Citation.CitationAuthorStringComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("source"))
+ res.setSource(parseCodeableConcept(getJObject(json, "source")));
+ if (json.has("value"))
+ res.setValueElement(parseString(json.get("value").getAsString()));
+ if (json.has("_value"))
+ parseElementProperties(getJObject(json, "_value"), res.getValueElement());
+ }
+
+ protected Citation.CitationContributorListComponent parseCitationContributorListComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationContributorListComponent res = new Citation.CitationContributorListComponent();
+ parseCitationContributorListComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationContributorListComponentProperties(JsonObject json, Citation.CitationContributorListComponent 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("contributor")) {
+ JsonArray array = json.getAsJsonArray("contributor");
+ for (int i = 0; i < array.size(); i++) {
+ res.getContributor().add(parseCitationContributorListContributorComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ }
+
+ protected Citation.CitationContributorListContributorComponent parseCitationContributorListContributorComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationContributorListContributorComponent res = new Citation.CitationContributorListContributorComponent();
+ parseCitationContributorListContributorComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationContributorListContributorComponentProperties(JsonObject json, Citation.CitationContributorListContributorComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("lastName"))
+ res.setLastNameElement(parseString(json.get("lastName").getAsString()));
+ if (json.has("_lastName"))
+ parseElementProperties(getJObject(json, "_lastName"), res.getLastNameElement());
+ if (json.has("foreName"))
+ res.setForeNameElement(parseString(json.get("foreName").getAsString()));
+ if (json.has("_foreName"))
+ parseElementProperties(getJObject(json, "_foreName"), res.getForeNameElement());
+ if (json.has("suffix"))
+ res.setSuffixElement(parseString(json.get("suffix").getAsString()));
+ if (json.has("_suffix"))
+ parseElementProperties(getJObject(json, "_suffix"), res.getSuffixElement());
+ if (json.has("initials"))
+ res.setInitialsElement(parseString(json.get("initials").getAsString()));
+ if (json.has("_initials"))
+ parseElementProperties(getJObject(json, "_initials"), res.getInitialsElement());
+ if (json.has("collectiveName"))
+ res.setCollectiveNameElement(parseString(json.get("collectiveName").getAsString()));
+ if (json.has("_collectiveName"))
+ parseElementProperties(getJObject(json, "_collectiveName"), res.getCollectiveNameElement());
+ 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("contribution")) {
+ JsonArray array = json.getAsJsonArray("contribution");
+ for (int i = 0; i < array.size(); i++) {
+ res.getContribution().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("affiliationInfo")) {
+ JsonArray array = json.getAsJsonArray("affiliationInfo");
+ for (int i = 0; i < array.size(); i++) {
+ res.getAffiliationInfo().add(parseCitationContributorListContributorAffiliationInfoComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("listOrder"))
+ res.setListOrderElement(parsePositiveInt(json.get("listOrder").getAsString()));
+ if (json.has("_listOrder"))
+ parseElementProperties(getJObject(json, "_listOrder"), res.getListOrderElement());
+ }
+
+ protected Citation.CitationContributorListContributorAffiliationInfoComponent parseCitationContributorListContributorAffiliationInfoComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Citation.CitationContributorListContributorAffiliationInfoComponent res = new Citation.CitationContributorListContributorAffiliationInfoComponent();
+ parseCitationContributorListContributorAffiliationInfoComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseCitationContributorListContributorAffiliationInfoComponentProperties(JsonObject json, Citation.CitationContributorListContributorAffiliationInfoComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("affiliation"))
+ res.setAffiliationElement(parseString(json.get("affiliation").getAsString()));
+ if (json.has("_affiliation"))
+ parseElementProperties(getJObject(json, "_affiliation"), res.getAffiliationElement());
+ if (json.has("role"))
+ res.setRoleElement(parseString(json.get("role").getAsString()));
+ if (json.has("_role"))
+ parseElementProperties(getJObject(json, "_role"), res.getRoleElement());
+ 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 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")));
+ }
+
+ 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.setPublicationDateElement(parseString(json.get("publicationDate").getAsString()));
+ if (json.has("_publicationDate"))
+ parseElementProperties(getJObject(json, "_publicationDate"), res.getPublicationDateElement());
+ }
+
+ 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.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);
@@ -7108,6 +7749,8 @@ public class JsonParser extends JsonParserBase {
res.setTypeElement(parseEnumeration(json.get("type").getAsString(), ClinicalUseIssue.ClinicalUseIssueType.NULL, new ClinicalUseIssue.ClinicalUseIssueTypeEnumFactory()));
if (json.has("_type"))
parseElementProperties(getJObject(json, "_type"), res.getTypeElement());
+ if (json.has("category"))
+ res.setCategory(parseCodeableConcept(getJObject(json, "category")));
if (json.has("subject")) {
JsonArray array = json.getAsJsonArray("subject");
for (int i = 0; i < array.size(); i++) {
@@ -8707,8 +9350,8 @@ public class JsonParser extends JsonParserBase {
res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
}
};
- if (json.has("patient"))
- res.setPatient(parseReference(getJObject(json, "patient")));
+ if (json.has("subject"))
+ res.setSubject(parseReference(getJObject(json, "subject")));
if (json.has("dateTime"))
res.setDateTimeElement(parseDateTime(json.get("dateTime").getAsString()));
if (json.has("_dateTime"))
@@ -10403,6 +11046,10 @@ public class JsonParser extends JsonParserBase {
res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject()));
}
};
+ if (json.has("displayName"))
+ res.setDisplayNameElement(parseString(json.get("displayName").getAsString()));
+ if (json.has("_displayName"))
+ parseElementProperties(getJObject(json, "_displayName"), res.getDisplayNameElement());
if (json.has("definition"))
res.setDefinition(parseReference(getJObject(json, "definition")));
if (json.has("udiCarrier")) {
@@ -10459,8 +11106,12 @@ public class JsonParser extends JsonParserBase {
res.setPartNumberElement(parseString(json.get("partNumber").getAsString()));
if (json.has("_partNumber"))
parseElementProperties(getJObject(json, "_partNumber"), res.getPartNumberElement());
- if (json.has("type"))
- res.setType(parseCodeableConcept(getJObject(json, "type")));
+ 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("specialization")) {
JsonArray array = json.getAsJsonArray("specialization");
for (int i = 0; i < array.size(); i++) {
@@ -10481,6 +11132,10 @@ public class JsonParser extends JsonParserBase {
};
if (json.has("patient"))
res.setPatient(parseReference(getJObject(json, "patient")));
+ if (json.has("operationalStatus"))
+ res.setOperationalStatus(parseDeviceOperationalStatusComponent(getJObject(json, "operationalStatus")));
+ if (json.has("associationStatus"))
+ res.setAssociationStatus(parseDeviceAssociationStatusComponent(getJObject(json, "associationStatus")));
if (json.has("owner"))
res.setOwner(parseReference(getJObject(json, "owner")));
if (json.has("contact")) {
@@ -10621,6 +11276,42 @@ public class JsonParser extends JsonParserBase {
};
}
+ protected Device.DeviceOperationalStatusComponent parseDeviceOperationalStatusComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Device.DeviceOperationalStatusComponent res = new Device.DeviceOperationalStatusComponent();
+ parseDeviceOperationalStatusComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseDeviceOperationalStatusComponentProperties(JsonObject json, Device.DeviceOperationalStatusComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("value"))
+ res.setValue(parseCodeableConcept(getJObject(json, "value")));
+ if (json.has("reason")) {
+ JsonArray array = json.getAsJsonArray("reason");
+ for (int i = 0; i < array.size(); i++) {
+ res.getReason().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
+ }
+ };
+ }
+
+ protected Device.DeviceAssociationStatusComponent parseDeviceAssociationStatusComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Device.DeviceAssociationStatusComponent res = new Device.DeviceAssociationStatusComponent();
+ parseDeviceAssociationStatusComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseDeviceAssociationStatusComponentProperties(JsonObject json, Device.DeviceAssociationStatusComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("value"))
+ res.setValue(parseCodeableConcept(getJObject(json, "value")));
+ if (json.has("reason")) {
+ JsonArray array = json.getAsJsonArray("reason");
+ for (int i = 0; i < array.size(); i++) {
+ res.getReason().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
+ }
+ };
+ }
+
protected DeviceDefinition parseDeviceDefinition(JsonObject json) throws IOException, FHIRFormatError {
DeviceDefinition res = new DeviceDefinition();
parseDeviceDefinitionProperties(json, res);
@@ -10721,10 +11412,6 @@ public class JsonParser extends JsonParserBase {
res.getContact().add(parseContactPoint(array.get(i).getAsJsonObject()));
}
};
- if (json.has("url"))
- res.setUrlElement(parseUri(json.get("url").getAsString()));
- if (json.has("_url"))
- parseElementProperties(getJObject(json, "_url"), res.getUrlElement());
if (json.has("onlineInformation"))
res.setOnlineInformationElement(parseUri(json.get("onlineInformation").getAsString()));
if (json.has("_onlineInformation"))
@@ -11011,9 +11698,8 @@ 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());
- DataType code = parseType("code", json);
- if (code != null)
- res.setCode(code);
+ if (json.has("code"))
+ res.setCode(parseCodeableReference(getJObject(json, "code")));
if (json.has("parameter")) {
JsonArray array = json.getAsJsonArray("parameter");
for (int i = 0; i < array.size(); i++) {
@@ -11108,6 +11794,12 @@ public class JsonParser extends JsonParserBase {
res.setStatusElement(parseEnumeration(json.get("status").getAsString(), DeviceUseStatement.DeviceUseStatementStatus.NULL, new DeviceUseStatement.DeviceUseStatementStatusEnumFactory()));
if (json.has("_status"))
parseElementProperties(getJObject(json, "_status"), res.getStatusElement());
+ if (json.has("category")) {
+ JsonArray array = json.getAsJsonArray("category");
+ for (int i = 0; i < array.size(); i++) {
+ res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
+ }
+ };
if (json.has("subject"))
res.setSubject(parseReference(getJObject(json, "subject")));
if (json.has("derivedFrom")) {
@@ -11116,17 +11808,27 @@ public class JsonParser extends JsonParserBase {
res.getDerivedFrom().add(parseReference(array.get(i).getAsJsonObject()));
}
};
+ if (json.has("context"))
+ res.setContext(parseReference(getJObject(json, "context")));
DataType timing = parseType("timing", json);
if (timing != null)
res.setTiming(timing);
- if (json.has("recordedOn"))
- res.setRecordedOnElement(parseDateTime(json.get("recordedOn").getAsString()));
- if (json.has("_recordedOn"))
- parseElementProperties(getJObject(json, "_recordedOn"), res.getRecordedOnElement());
- if (json.has("source"))
- res.setSource(parseReference(getJObject(json, "source")));
+ if (json.has("dateAsserted"))
+ res.setDateAssertedElement(parseDateTime(json.get("dateAsserted").getAsString()));
+ if (json.has("_dateAsserted"))
+ parseElementProperties(getJObject(json, "_dateAsserted"), res.getDateAssertedElement());
+ if (json.has("usageStatus"))
+ res.setUsageStatus(parseCodeableConcept(getJObject(json, "usageStatus")));
+ if (json.has("usageReason")) {
+ JsonArray array = json.getAsJsonArray("usageReason");
+ for (int i = 0; i < array.size(); i++) {
+ res.getUsageReason().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("informationSource"))
+ res.setInformationSource(parseReference(getJObject(json, "informationSource")));
if (json.has("device"))
- res.setDevice(parseReference(getJObject(json, "device")));
+ res.setDevice(parseCodeableReference(getJObject(json, "device")));
if (json.has("reason")) {
JsonArray array = json.getAsJsonArray("reason");
for (int i = 0; i < array.size(); i++) {
@@ -11134,7 +11836,7 @@ public class JsonParser extends JsonParserBase {
}
};
if (json.has("bodySite"))
- res.setBodySite(parseCodeableConcept(getJObject(json, "bodySite")));
+ res.setBodySite(parseCodeableReference(getJObject(json, "bodySite")));
if (json.has("note")) {
JsonArray array = json.getAsJsonArray("note");
for (int i = 0; i < array.size(); i++) {
@@ -12179,8 +12881,6 @@ public class JsonParser extends JsonParserBase {
res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject()));
}
};
- if (json.has("referentGroup"))
- res.setReferentGroup(parseEvidenceReferentGroupComponent(getJObject(json, "referentGroup")));
if (json.has("variableDefinition")) {
JsonArray array = json.getAsJsonArray("variableDefinition");
for (int i = 0; i < array.size(); i++) {
@@ -12211,32 +12911,6 @@ public class JsonParser extends JsonParserBase {
};
}
- protected Evidence.EvidenceReferentGroupComponent parseEvidenceReferentGroupComponent(JsonObject json) throws IOException, FHIRFormatError {
- Evidence.EvidenceReferentGroupComponent res = new Evidence.EvidenceReferentGroupComponent();
- parseEvidenceReferentGroupComponentProperties(json, res);
- return res;
- }
-
- protected void parseEvidenceReferentGroupComponentProperties(JsonObject json, Evidence.EvidenceReferentGroupComponent res) throws IOException, FHIRFormatError {
- parseBackboneElementProperties(json, res);
- if (json.has("description"))
- res.setDescriptionElement(parseMarkdown(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("evidenceSource"))
- res.setEvidenceSource(parseReference(getJObject(json, "evidenceSource")));
- if (json.has("intendedGroup"))
- res.setIntendedGroup(parseReference(getJObject(json, "intendedGroup")));
- if (json.has("directnessMatch"))
- res.setDirectnessMatch(parseCodeableConcept(getJObject(json, "directnessMatch")));
- }
-
protected Evidence.EvidenceVariableDefinitionComponent parseEvidenceVariableDefinitionComponent(JsonObject json) throws IOException, FHIRFormatError {
Evidence.EvidenceVariableDefinitionComponent res = new Evidence.EvidenceVariableDefinitionComponent();
parseEvidenceVariableDefinitionComponentProperties(json, res);
@@ -12257,10 +12931,10 @@ public class JsonParser extends JsonParserBase {
};
if (json.has("variableRole"))
res.setVariableRole(parseCodeableConcept(getJObject(json, "variableRole")));
- if (json.has("actualDefinition"))
- res.setActualDefinition(parseReference(getJObject(json, "actualDefinition")));
- if (json.has("intendedDefinition"))
- res.setIntendedDefinition(parseReference(getJObject(json, "intendedDefinition")));
+ if (json.has("observed"))
+ res.setObserved(parseReference(getJObject(json, "observed")));
+ if (json.has("intended"))
+ res.setIntended(parseReference(getJObject(json, "intended")));
if (json.has("directnessMatch"))
res.setDirectnessMatch(parseCodeableConcept(getJObject(json, "directnessMatch")));
}
@@ -12321,6 +12995,93 @@ public class JsonParser extends JsonParserBase {
};
}
+ protected EvidenceFocus parseEvidenceFocus(JsonObject json) throws IOException, FHIRFormatError {
+ EvidenceFocus res = new EvidenceFocus();
+ parseEvidenceFocusProperties(json, res);
+ return res;
+ }
+
+ protected void parseEvidenceFocusProperties(JsonObject json, EvidenceFocus res) throws IOException, FHIRFormatError {
+ parseMetadataResourceProperties(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");
+ 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("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("useContext")) {
+ JsonArray array = json.getAsJsonArray("useContext");
+ for (int i = 0; i < array.size(); i++) {
+ res.getUseContext().add(parseUsageContext(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("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("copyright"))
+ res.setCopyrightElement(parseMarkdown(json.get("copyright").getAsString()));
+ if (json.has("_copyright"))
+ parseElementProperties(getJObject(json, "_copyright"), res.getCopyrightElement());
+ if (json.has("citeAs"))
+ res.setCiteAs(parseReference(getJObject(json, "citeAs")));
+ if (json.has("characteristic")) {
+ JsonArray array = json.getAsJsonArray("characteristic");
+ for (int i = 0; i < array.size(); i++) {
+ res.getCharacteristic().add(parseEvidenceFocusCharacteristicComponent(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()));
+ }
+ };
+ }
+
+ protected EvidenceFocus.EvidenceFocusCharacteristicComponent parseEvidenceFocusCharacteristicComponent(JsonObject json) throws IOException, FHIRFormatError {
+ EvidenceFocus.EvidenceFocusCharacteristicComponent res = new EvidenceFocus.EvidenceFocusCharacteristicComponent();
+ parseEvidenceFocusCharacteristicComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseEvidenceFocusCharacteristicComponentProperties(JsonObject json, EvidenceFocus.EvidenceFocusCharacteristicComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(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("exclude"))
+ res.setExcludeElement(parseBoolean(json.get("exclude").getAsBoolean()));
+ if (json.has("_exclude"))
+ parseElementProperties(getJObject(json, "_exclude"), res.getExcludeElement());
+ if (json.has("period"))
+ res.setPeriod(parsePeriod(getJObject(json, "period")));
+ }
+
protected EvidenceVariable parseEvidenceVariable(JsonObject json) throws IOException, FHIRFormatError {
EvidenceVariable res = new EvidenceVariable();
parseEvidenceVariableProperties(json, res);
@@ -12457,6 +13218,10 @@ public class JsonParser extends JsonParserBase {
res.setActualElement(parseBoolean(json.get("actual").getAsBoolean()));
if (json.has("_actual"))
parseElementProperties(getJObject(json, "_actual"), res.getActualElement());
+ if (json.has("characteristicCombination"))
+ res.setCharacteristicCombinationElement(parseEnumeration(json.get("characteristicCombination").getAsString(), EvidenceVariable.CharacteristicCombination.NULL, new EvidenceVariable.CharacteristicCombinationEnumFactory()));
+ if (json.has("_characteristicCombination"))
+ parseElementProperties(getJObject(json, "_characteristicCombination"), res.getCharacteristicCombinationElement());
if (json.has("characteristic")) {
JsonArray array = json.getAsJsonArray("characteristic");
for (int i = 0; i < array.size(); i++) {
@@ -12484,40 +13249,42 @@ public class JsonParser extends JsonParserBase {
res.setMethod(parseCodeableConcept(getJObject(json, "method")));
if (json.has("device"))
res.setDevice(parseReference(getJObject(json, "device")));
- if (json.has("booleanSet")) {
- JsonArray array = json.getAsJsonArray("booleanSet");
- for (int i = 0; i < array.size(); i++) {
- if (array.get(i).isJsonNull()) {
- res.getBooleanSet().add(new StringType());
- } else {;
- res.getBooleanSet().add(parseString(array.get(i).getAsString()));
- }
- }
- };
- if (json.has("_booleanSet")) {
- JsonArray array = json.getAsJsonArray("_booleanSet");
- for (int i = 0; i < array.size(); i++) {
- if (i == res.getBooleanSet().size())
- res.getBooleanSet().add(parseString(null));
- if (array.get(i) instanceof JsonObject)
- parseElementProperties(array.get(i).getAsJsonObject(), res.getBooleanSet().get(i));
- }
- };
if (json.has("exclude"))
res.setExcludeElement(parseBoolean(json.get("exclude").getAsBoolean()));
if (json.has("_exclude"))
parseElementProperties(getJObject(json, "_exclude"), res.getExcludeElement());
- DataType participantEffective = parseType("participantEffective", json);
- if (participantEffective != null)
- res.setParticipantEffective(participantEffective);
if (json.has("timeFromStart"))
- res.setTimeFromStart(parseDuration(getJObject(json, "timeFromStart")));
+ res.setTimeFromStart(parseEvidenceVariableCharacteristicTimeFromStartComponent(getJObject(json, "timeFromStart")));
if (json.has("groupMeasure"))
res.setGroupMeasureElement(parseEnumeration(json.get("groupMeasure").getAsString(), EvidenceVariable.GroupMeasure.NULL, new EvidenceVariable.GroupMeasureEnumFactory()));
if (json.has("_groupMeasure"))
parseElementProperties(getJObject(json, "_groupMeasure"), res.getGroupMeasureElement());
}
+ protected EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent parseEvidenceVariableCharacteristicTimeFromStartComponent(JsonObject json) throws IOException, FHIRFormatError {
+ EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent res = new EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent();
+ parseEvidenceVariableCharacteristicTimeFromStartComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseEvidenceVariableCharacteristicTimeFromStartComponentProperties(JsonObject json, EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent 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("quantity"))
+ res.setQuantity(parseQuantity(getJObject(json, "quantity")));
+ if (json.has("range"))
+ res.setRange(parseRange(getJObject(json, "range")));
+ 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()));
+ }
+ };
+ }
+
protected ExampleScenario parseExampleScenario(JsonObject json) throws IOException, FHIRFormatError {
ExampleScenario res = new ExampleScenario();
parseExampleScenarioProperties(json, res);
@@ -15177,12 +15944,14 @@ public class JsonParser extends JsonParserBase {
res.getTargetDisease().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
}
};
- DataType doseNumber = parseType("doseNumber", json);
- if (doseNumber != null)
- res.setDoseNumber(doseNumber);
- DataType seriesDoses = parseType("seriesDoses", json);
- if (seriesDoses != null)
- res.setSeriesDoses(seriesDoses);
+ if (json.has("doseNumber"))
+ res.setDoseNumberElement(parseString(json.get("doseNumber").getAsString()));
+ if (json.has("_doseNumber"))
+ parseElementProperties(getJObject(json, "_doseNumber"), res.getDoseNumberElement());
+ if (json.has("seriesDoses"))
+ res.setSeriesDosesElement(parseString(json.get("seriesDoses").getAsString()));
+ if (json.has("_seriesDoses"))
+ parseElementProperties(getJObject(json, "_seriesDoses"), res.getSeriesDosesElement());
}
protected ImmunizationEvaluation parseImmunizationEvaluation(JsonObject json) throws IOException, FHIRFormatError {
@@ -15231,12 +16000,14 @@ public class JsonParser extends JsonParserBase {
res.setSeriesElement(parseString(json.get("series").getAsString()));
if (json.has("_series"))
parseElementProperties(getJObject(json, "_series"), res.getSeriesElement());
- DataType doseNumber = parseType("doseNumber", json);
- if (doseNumber != null)
- res.setDoseNumber(doseNumber);
- DataType seriesDoses = parseType("seriesDoses", json);
- if (seriesDoses != null)
- res.setSeriesDoses(seriesDoses);
+ if (json.has("doseNumber"))
+ res.setDoseNumberElement(parseString(json.get("doseNumber").getAsString()));
+ if (json.has("_doseNumber"))
+ parseElementProperties(getJObject(json, "_doseNumber"), res.getDoseNumberElement());
+ if (json.has("seriesDoses"))
+ res.setSeriesDosesElement(parseString(json.get("seriesDoses").getAsString()));
+ if (json.has("_seriesDoses"))
+ parseElementProperties(getJObject(json, "_seriesDoses"), res.getSeriesDosesElement());
}
protected ImmunizationRecommendation parseImmunizationRecommendation(JsonObject json) throws IOException, FHIRFormatError {
@@ -15317,12 +16088,14 @@ public class JsonParser extends JsonParserBase {
res.setSeriesElement(parseString(json.get("series").getAsString()));
if (json.has("_series"))
parseElementProperties(getJObject(json, "_series"), res.getSeriesElement());
- DataType doseNumber = parseType("doseNumber", json);
- if (doseNumber != null)
- res.setDoseNumber(doseNumber);
- DataType seriesDoses = parseType("seriesDoses", json);
- if (seriesDoses != null)
- res.setSeriesDoses(seriesDoses);
+ if (json.has("doseNumber"))
+ res.setDoseNumberElement(parseString(json.get("doseNumber").getAsString()));
+ if (json.has("_doseNumber"))
+ parseElementProperties(getJObject(json, "_doseNumber"), res.getDoseNumberElement());
+ if (json.has("seriesDoses"))
+ res.setSeriesDosesElement(parseString(json.get("seriesDoses").getAsString()));
+ if (json.has("_seriesDoses"))
+ parseElementProperties(getJObject(json, "_seriesDoses"), res.getSeriesDosesElement());
if (json.has("supportingImmunization")) {
JsonArray array = json.getAsJsonArray("supportingImmunization");
for (int i = 0; i < array.size(); i++) {
@@ -15803,6 +16576,16 @@ public class JsonParser extends JsonParserBase {
res.setIdentifier(parseIdentifier(getJObject(json, "identifier")));
if (json.has("role"))
res.setRole(parseCodeableConcept(getJObject(json, "role")));
+ if (json.has("function")) {
+ JsonArray array = json.getAsJsonArray("function");
+ for (int i = 0; i < array.size(); i++) {
+ res.getFunction().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("allergenicIndicator"))
res.setAllergenicIndicatorElement(parseBoolean(json.get("allergenicIndicator").getAsBoolean()));
if (json.has("_allergenicIndicator"))
@@ -15858,10 +16641,18 @@ public class JsonParser extends JsonParserBase {
res.setPresentation(parseRatio(getJObject(json, "presentation")));
if (json.has("presentationHighLimit"))
res.setPresentationHighLimit(parseRatio(getJObject(json, "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")));
+ if (json.has("concentrationText"))
+ res.setConcentrationTextElement(parseString(json.get("concentrationText").getAsString()));
+ if (json.has("_concentrationText"))
+ parseElementProperties(getJObject(json, "_concentrationText"), res.getConcentrationTextElement());
if (json.has("measurementPoint"))
res.setMeasurementPointElement(parseString(json.get("measurementPoint").getAsString()));
if (json.has("_measurementPoint"))
@@ -16805,24 +17596,24 @@ public class JsonParser extends JsonParserBase {
res.getIngredient().add(parseReference(array.get(i).getAsJsonObject()));
}
};
- if (json.has("characteristic")) {
- JsonArray array = json.getAsJsonArray("characteristic");
+ if (json.has("property")) {
+ JsonArray array = json.getAsJsonArray("property");
for (int i = 0; i < array.size(); i++) {
- res.getCharacteristic().add(parseManufacturedItemDefinitionCharacteristicComponent(array.get(i).getAsJsonObject()));
+ res.getProperty().add(parseManufacturedItemDefinitionPropertyComponent(array.get(i).getAsJsonObject()));
}
};
}
- protected ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent parseManufacturedItemDefinitionCharacteristicComponent(JsonObject json) throws IOException, FHIRFormatError {
- ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent res = new ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent();
- parseManufacturedItemDefinitionCharacteristicComponentProperties(json, res);
+ protected ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent parseManufacturedItemDefinitionPropertyComponent(JsonObject json) throws IOException, FHIRFormatError {
+ ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent res = new ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent();
+ parseManufacturedItemDefinitionPropertyComponentProperties(json, res);
return res;
}
- protected void parseManufacturedItemDefinitionCharacteristicComponentProperties(JsonObject json, ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent res) throws IOException, FHIRFormatError {
+ protected void parseManufacturedItemDefinitionPropertyComponentProperties(JsonObject json, ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res);
- if (json.has("code"))
- res.setCode(parseCodeableConcept(getJObject(json, "code")));
+ if (json.has("type"))
+ res.setType(parseCodeableConcept(getJObject(json, "type")));
DataType value = parseType("value", json);
if (value != null)
res.setValue(value);
@@ -17381,9 +18172,8 @@ public class JsonParser extends JsonParserBase {
protected void parseMedicationIngredientComponentProperties(JsonObject json, Medication.MedicationIngredientComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res);
- DataType item = parseType("item", json);
- if (item != null)
- res.setItem(item);
+ 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"))
@@ -17491,9 +18281,8 @@ public class JsonParser extends JsonParserBase {
res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
}
};
- DataType medication = parseType("medication", json);
- if (medication != null)
- res.setMedication(medication);
+ if (json.has("medication"))
+ res.setMedication(parseCodeableReference(getJObject(json, "medication")));
if (json.has("subject"))
res.setSubject(parseReference(getJObject(json, "subject")));
if (json.has("encounter"))
@@ -17616,18 +18405,16 @@ public class JsonParser extends JsonParserBase {
res.setStatusElement(parseEnumeration(json.get("status").getAsString(), MedicationDispense.MedicationDispenseStatusCodes.NULL, new MedicationDispense.MedicationDispenseStatusCodesEnumFactory()));
if (json.has("_status"))
parseElementProperties(getJObject(json, "_status"), res.getStatusElement());
- DataType statusReason = parseType("statusReason", json);
- if (statusReason != null)
- res.setStatusReason(statusReason);
+ if (json.has("statusReason"))
+ res.setStatusReason(parseCodeableReference(getJObject(json, "statusReason")));
if (json.has("category")) {
JsonArray array = json.getAsJsonArray("category");
for (int i = 0; i < array.size(); i++) {
res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
}
};
- DataType medication = parseType("medication", json);
- if (medication != null)
- res.setMedication(medication);
+ if (json.has("medication"))
+ res.setMedication(parseCodeableReference(getJObject(json, "medication")));
if (json.has("subject"))
res.setSubject(parseReference(getJObject(json, "subject")));
if (json.has("encounter"))
@@ -17927,9 +18714,8 @@ public class JsonParser extends JsonParserBase {
protected void parseMedicationKnowledgeIngredientComponentProperties(JsonObject json, MedicationKnowledge.MedicationKnowledgeIngredientComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res);
- DataType item = parseType("item", json);
- if (item != null)
- res.setItem(item);
+ 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"))
@@ -17987,9 +18773,8 @@ public class JsonParser extends JsonParserBase {
res.getDosage().add(parseMedicationKnowledgeAdministrationGuidelineDosageComponent(array.get(i).getAsJsonObject()));
}
};
- DataType indication = parseType("indication", json);
- if (indication != null)
- res.setIndication(indication);
+ if (json.has("indication"))
+ res.setIndication(parseCodeableReference(getJObject(json, "indication")));
if (json.has("patientCharacteristic")) {
JsonArray array = json.getAsJsonArray("patientCharacteristic");
for (int i = 0; i < array.size(); i++) {
@@ -18024,28 +18809,11 @@ public class JsonParser extends JsonParserBase {
protected void parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentProperties(JsonObject json, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res);
- DataType characteristic = parseType("characteristic", json);
- if (characteristic != null)
- res.setCharacteristic(characteristic);
- if (json.has("value")) {
- JsonArray array = json.getAsJsonArray("value");
- for (int i = 0; i < array.size(); i++) {
- if (array.get(i).isJsonNull()) {
- res.getValue().add(new StringType());
- } else {;
- res.getValue().add(parseString(array.get(i).getAsString()));
- }
- }
- };
- if (json.has("_value")) {
- JsonArray array = json.getAsJsonArray("_value");
- for (int i = 0; i < array.size(); i++) {
- if (i == res.getValue().size())
- res.getValue().add(parseString(null));
- if (array.get(i) instanceof JsonObject)
- parseElementProperties(array.get(i).getAsJsonObject(), res.getValue().get(i));
- }
- };
+ if (json.has("type"))
+ res.setType(parseCodeableConcept(getJObject(json, "type")));
+ DataType value = parseType("value", json);
+ if (value != null)
+ res.setValue(value);
}
protected MedicationKnowledge.MedicationKnowledgeMedicineClassificationComponent parseMedicationKnowledgeMedicineClassificationComponent(JsonObject json) throws IOException, FHIRFormatError {
@@ -18220,9 +18988,8 @@ public class JsonParser extends JsonParserBase {
parseElementProperties(getJObject(json, "_reported"), res.getReportedElement());
if (json.has("informationSource"))
res.setInformationSource(parseReference(getJObject(json, "informationSource")));
- DataType medication = parseType("medication", json);
- if (medication != null)
- res.setMedication(medication);
+ if (json.has("medication"))
+ res.setMedication(parseCodeableReference(getJObject(json, "medication")));
if (json.has("subject"))
res.setSubject(parseReference(getJObject(json, "subject")));
if (json.has("encounter"))
@@ -18438,9 +19205,8 @@ public class JsonParser extends JsonParserBase {
res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
}
};
- DataType medication = parseType("medication", json);
- if (medication != null)
- res.setMedication(medication);
+ if (json.has("medication"))
+ res.setMedication(parseCodeableReference(getJObject(json, "medication")));
if (json.has("subject"))
res.setSubject(parseReference(getJObject(json, "subject")));
if (json.has("encounter"))
@@ -18505,13 +19271,17 @@ public class JsonParser extends JsonParserBase {
if (json.has("type"))
res.setType(parseCodeableConcept(getJObject(json, "type")));
if (json.has("domain"))
- res.setDomain(parseCoding(getJObject(json, "domain")));
+ res.setDomain(parseCodeableConcept(getJObject(json, "domain")));
if (json.has("version"))
res.setVersionElement(parseString(json.get("version").getAsString()));
if (json.has("_version"))
parseElementProperties(getJObject(json, "_version"), res.getVersionElement());
if (json.has("status"))
- res.setStatus(parseCoding(getJObject(json, "status")));
+ res.setStatus(parseCodeableConcept(getJObject(json, "status")));
+ if (json.has("statusDate"))
+ res.setStatusDateElement(parseDateTime(json.get("statusDate").getAsString()));
+ if (json.has("_statusDate"))
+ parseElementProperties(getJObject(json, "_statusDate"), res.getStatusDateElement());
if (json.has("description"))
res.setDescriptionElement(parseMarkdown(json.get("description").getAsString()));
if (json.has("_description"))
@@ -18540,6 +19310,12 @@ public class JsonParser extends JsonParserBase {
res.getProductClassification().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
}
};
+ if (json.has("characteristic")) {
+ JsonArray array = json.getAsJsonArray("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");
for (int i = 0; i < array.size(); i++) {
@@ -18635,7 +19411,7 @@ public class JsonParser extends JsonParserBase {
if (json.has("_productName"))
parseElementProperties(getJObject(json, "_productName"), res.getProductNameElement());
if (json.has("type"))
- res.setType(parseCoding(getJObject(json, "type")));
+ res.setType(parseCodeableConcept(getJObject(json, "type")));
if (json.has("namePart")) {
JsonArray array = json.getAsJsonArray("namePart");
for (int i = 0; i < array.size(); i++) {
@@ -18663,7 +19439,7 @@ public class JsonParser extends JsonParserBase {
if (json.has("_part"))
parseElementProperties(getJObject(json, "_part"), res.getPartElement());
if (json.has("type"))
- res.setType(parseCoding(getJObject(json, "type")));
+ res.setType(parseCodeableConcept(getJObject(json, "type")));
}
protected MedicinalProductDefinition.MedicinalProductDefinitionNameCountryLanguageComponent parseMedicinalProductDefinitionNameCountryLanguageComponent(JsonObject json) throws IOException, FHIRFormatError {
@@ -18694,7 +19470,7 @@ public class JsonParser extends JsonParserBase {
if (product != null)
res.setProduct(product);
if (json.has("type"))
- res.setType(parseCoding(getJObject(json, "type")));
+ res.setType(parseCodeableConcept(getJObject(json, "type")));
}
protected MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent parseMedicinalProductDefinitionManufacturingBusinessOperationComponent(JsonObject json) throws IOException, FHIRFormatError {
@@ -18705,9 +19481,8 @@ public class JsonParser extends JsonParserBase {
protected void parseMedicinalProductDefinitionManufacturingBusinessOperationComponentProperties(JsonObject json, MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res);
- DataType type = parseType("type", json);
- if (type != null)
- res.setType(type);
+ if (json.has("type"))
+ res.setType(parseCodeableReference(getJObject(json, "type")));
if (json.has("effectiveDate"))
res.setEffectiveDate(parsePeriod(getJObject(json, "effectiveDate")));
if (json.has("manufacturer")) {
@@ -19604,6 +20379,44 @@ public class JsonParser extends JsonParserBase {
res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject()));
}
};
+ if (json.has("instantiatesCanonical")) {
+ JsonArray array = json.getAsJsonArray("instantiatesCanonical");
+ for (int i = 0; i < array.size(); i++) {
+ if (array.get(i).isJsonNull()) {
+ res.getInstantiatesCanonical().add(new CanonicalType());
+ } else {;
+ res.getInstantiatesCanonical().add(parseCanonical(array.get(i).getAsString()));
+ }
+ }
+ };
+ if (json.has("_instantiatesCanonical")) {
+ JsonArray array = json.getAsJsonArray("_instantiatesCanonical");
+ for (int i = 0; i < array.size(); i++) {
+ if (i == res.getInstantiatesCanonical().size())
+ res.getInstantiatesCanonical().add(parseCanonical(null));
+ if (array.get(i) instanceof JsonObject)
+ parseElementProperties(array.get(i).getAsJsonObject(), res.getInstantiatesCanonical().get(i));
+ }
+ };
+ if (json.has("instantiatesUri")) {
+ JsonArray array = json.getAsJsonArray("instantiatesUri");
+ for (int i = 0; i < array.size(); i++) {
+ if (array.get(i).isJsonNull()) {
+ res.getInstantiatesUri().add(new UriType());
+ } else {;
+ res.getInstantiatesUri().add(parseUri(array.get(i).getAsString()));
+ }
+ }
+ };
+ if (json.has("_instantiatesUri")) {
+ JsonArray array = json.getAsJsonArray("_instantiatesUri");
+ for (int i = 0; i < array.size(); i++) {
+ if (i == res.getInstantiatesUri().size())
+ res.getInstantiatesUri().add(parseUri(null));
+ if (array.get(i) instanceof JsonObject)
+ parseElementProperties(array.get(i).getAsJsonObject(), res.getInstantiatesUri().get(i));
+ }
+ };
if (json.has("basedOn")) {
JsonArray array = json.getAsJsonArray("basedOn");
for (int i = 0; i < array.size(); i++) {
@@ -19617,7 +20430,7 @@ public class JsonParser extends JsonParserBase {
}
};
if (json.has("status"))
- res.setStatusElement(parseEnumeration(json.get("status").getAsString(), NutritionIntake.NutritionIntakeStatusCodes.NULL, new NutritionIntake.NutritionIntakeStatusCodesEnumFactory()));
+ res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Enumerations.EventStatus.NULL, new Enumerations.EventStatusEnumFactory()));
if (json.has("_status"))
parseElementProperties(getJObject(json, "_status"), res.getStatusElement());
if (json.has("statusReason")) {
@@ -19626,12 +20439,22 @@ public class JsonParser extends JsonParserBase {
res.getStatusReason().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
}
};
- if (json.has("category")) {
- JsonArray array = json.getAsJsonArray("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")));
+ if (json.has("subject"))
+ res.setSubject(parseReference(getJObject(json, "subject")));
+ if (json.has("encounter"))
+ res.setEncounter(parseReference(getJObject(json, "encounter")));
+ DataType occurrence = parseType("occurrence", json);
+ if (occurrence != null)
+ res.setOccurrence(occurrence);
+ if (json.has("recorded"))
+ res.setRecordedElement(parseDateTime(json.get("recorded").getAsString()));
+ if (json.has("_recorded"))
+ parseElementProperties(getJObject(json, "_recorded"), res.getRecordedElement());
+ DataType reported = parseType("reported", json);
+ if (reported != null)
+ res.setReported(reported);
if (json.has("consumedItem")) {
JsonArray array = json.getAsJsonArray("consumedItem");
for (int i = 0; i < array.size(); i++) {
@@ -19644,29 +20467,24 @@ public class JsonParser extends JsonParserBase {
res.getIngredientLabel().add(parseNutritionIntakeIngredientLabelComponent(array.get(i).getAsJsonObject()));
}
};
- if (json.has("subject"))
- res.setSubject(parseReference(getJObject(json, "subject")));
- if (json.has("encounter"))
- res.setEncounter(parseReference(getJObject(json, "encounter")));
- DataType effective = parseType("effective", json);
- if (effective != null)
- res.setEffective(effective);
- if (json.has("dateAsserted"))
- res.setDateAssertedElement(parseDateTime(json.get("dateAsserted").getAsString()));
- if (json.has("_dateAsserted"))
- parseElementProperties(getJObject(json, "_dateAsserted"), res.getDateAssertedElement());
- if (json.has("informationSource"))
- res.setInformationSource(parseReference(getJObject(json, "informationSource")));
+ if (json.has("performer")) {
+ JsonArray array = json.getAsJsonArray("performer");
+ for (int i = 0; i < array.size(); i++) {
+ res.getPerformer().add(parseNutritionIntakePerformerComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("location"))
+ res.setLocation(parseReference(getJObject(json, "location")));
if (json.has("derivedFrom")) {
JsonArray array = json.getAsJsonArray("derivedFrom");
for (int i = 0; i < array.size(); i++) {
res.getDerivedFrom().add(parseReference(array.get(i).getAsJsonObject()));
}
};
- if (json.has("reasonCode")) {
- JsonArray array = json.getAsJsonArray("reasonCode");
+ if (json.has("reason")) {
+ JsonArray array = json.getAsJsonArray("reason");
for (int i = 0; i < array.size(); i++) {
- res.getReasonCode().add(parseCodeableReference(array.get(i).getAsJsonObject()));
+ res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject()));
}
};
if (json.has("note")) {
@@ -19688,7 +20506,7 @@ public class JsonParser extends JsonParserBase {
if (json.has("type"))
res.setType(parseCodeableConcept(getJObject(json, "type")));
if (json.has("nutritionProduct"))
- res.setNutritionProduct(parseCodeableConcept(getJObject(json, "nutritionProduct")));
+ res.setNutritionProduct(parseCodeableReference(getJObject(json, "nutritionProduct")));
if (json.has("schedule"))
res.setSchedule(parseTiming(getJObject(json, "schedule")));
if (json.has("amount"))
@@ -19712,11 +20530,25 @@ public class JsonParser extends JsonParserBase {
protected void parseNutritionIntakeIngredientLabelComponentProperties(JsonObject json, NutritionIntake.NutritionIntakeIngredientLabelComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res);
if (json.has("nutrient"))
- res.setNutrient(parseCodeableConcept(getJObject(json, "nutrient")));
+ res.setNutrient(parseCodeableReference(getJObject(json, "nutrient")));
if (json.has("amount"))
res.setAmount(parseQuantity(getJObject(json, "amount")));
}
+ protected NutritionIntake.NutritionIntakePerformerComponent parseNutritionIntakePerformerComponent(JsonObject json) throws IOException, FHIRFormatError {
+ NutritionIntake.NutritionIntakePerformerComponent res = new NutritionIntake.NutritionIntakePerformerComponent();
+ parseNutritionIntakePerformerComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseNutritionIntakePerformerComponentProperties(JsonObject json, NutritionIntake.NutritionIntakePerformerComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("function"))
+ res.setFunction(parseCodeableConcept(getJObject(json, "function")));
+ if (json.has("actor"))
+ res.setActor(parseReference(getJObject(json, "actor")));
+ }
+
protected NutritionOrder parseNutritionOrder(JsonObject json) throws IOException, FHIRFormatError {
NutritionOrder res = new NutritionOrder();
parseNutritionOrderProperties(json, res);
@@ -19997,6 +20829,147 @@ public class JsonParser extends JsonParserBase {
res.setRate(rate);
}
+ protected NutritionProduct parseNutritionProduct(JsonObject json) throws IOException, FHIRFormatError {
+ NutritionProduct res = new NutritionProduct();
+ parseNutritionProductProperties(json, res);
+ return res;
+ }
+
+ protected void parseNutritionProductProperties(JsonObject json, NutritionProduct res) throws IOException, FHIRFormatError {
+ parseDomainResourceProperties(json, res);
+ if (json.has("status"))
+ res.setStatusElement(parseEnumeration(json.get("status").getAsString(), NutritionProduct.NutritionProductStatus.NULL, new NutritionProduct.NutritionProductStatusEnumFactory()));
+ if (json.has("_status"))
+ parseElementProperties(getJObject(json, "_status"), res.getStatusElement());
+ if (json.has("category")) {
+ JsonArray array = json.getAsJsonArray("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")));
+ if (json.has("manufacturer")) {
+ JsonArray array = json.getAsJsonArray("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");
+ 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");
+ 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");
+ 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");
+ for (int i = 0; i < array.size(); i++) {
+ res.getProductCharacteristic().add(parseNutritionProductProductCharacteristicComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("instance"))
+ res.setInstance(parseNutritionProductInstanceComponent(getJObject(json, "instance")));
+ 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()));
+ }
+ };
+ }
+
+ protected NutritionProduct.NutritionProductNutrientComponent parseNutritionProductNutrientComponent(JsonObject json) throws IOException, FHIRFormatError {
+ NutritionProduct.NutritionProductNutrientComponent res = new NutritionProduct.NutritionProductNutrientComponent();
+ parseNutritionProductNutrientComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseNutritionProductNutrientComponentProperties(JsonObject json, NutritionProduct.NutritionProductNutrientComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("item"))
+ res.setItem(parseCodeableReference(getJObject(json, "item")));
+ if (json.has("amount")) {
+ JsonArray array = json.getAsJsonArray("amount");
+ for (int i = 0; i < array.size(); i++) {
+ res.getAmount().add(parseRatio(array.get(i).getAsJsonObject()));
+ }
+ };
+ }
+
+ protected NutritionProduct.NutritionProductIngredientComponent parseNutritionProductIngredientComponent(JsonObject json) throws IOException, FHIRFormatError {
+ NutritionProduct.NutritionProductIngredientComponent res = new NutritionProduct.NutritionProductIngredientComponent();
+ parseNutritionProductIngredientComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseNutritionProductIngredientComponentProperties(JsonObject json, NutritionProduct.NutritionProductIngredientComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("item"))
+ res.setItem(parseCodeableReference(getJObject(json, "item")));
+ if (json.has("amount")) {
+ JsonArray array = json.getAsJsonArray("amount");
+ for (int i = 0; i < array.size(); i++) {
+ res.getAmount().add(parseRatio(array.get(i).getAsJsonObject()));
+ }
+ };
+ }
+
+ protected NutritionProduct.NutritionProductProductCharacteristicComponent parseNutritionProductProductCharacteristicComponent(JsonObject json) throws IOException, FHIRFormatError {
+ NutritionProduct.NutritionProductProductCharacteristicComponent res = new NutritionProduct.NutritionProductProductCharacteristicComponent();
+ parseNutritionProductProductCharacteristicComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseNutritionProductProductCharacteristicComponentProperties(JsonObject json, NutritionProduct.NutritionProductProductCharacteristicComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("type"))
+ res.setType(parseCodeableConcept(getJObject(json, "type")));
+ DataType value = parseType("value", json);
+ if (value != null)
+ res.setValue(value);
+ }
+
+ protected NutritionProduct.NutritionProductInstanceComponent parseNutritionProductInstanceComponent(JsonObject json) throws IOException, FHIRFormatError {
+ NutritionProduct.NutritionProductInstanceComponent res = new NutritionProduct.NutritionProductInstanceComponent();
+ parseNutritionProductInstanceComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseNutritionProductInstanceComponentProperties(JsonObject json, NutritionProduct.NutritionProductInstanceComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("quantity"))
+ res.setQuantity(parseQuantity(getJObject(json, "quantity")));
+ 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("lotNumber"))
+ res.setLotNumberElement(parseString(json.get("lotNumber").getAsString()));
+ if (json.has("_lotNumber"))
+ parseElementProperties(getJObject(json, "_lotNumber"), res.getLotNumberElement());
+ if (json.has("expiry"))
+ res.setExpiryElement(parseDateTime(json.get("expiry").getAsString()));
+ if (json.has("_expiry"))
+ parseElementProperties(getJObject(json, "_expiry"), res.getExpiryElement());
+ if (json.has("useBy"))
+ res.setUseByElement(parseDateTime(json.get("useBy").getAsString()));
+ if (json.has("_useBy"))
+ parseElementProperties(getJObject(json, "_useBy"), res.getUseByElement());
+ }
+
protected Observation parseObservation(JsonObject json) throws IOException, FHIRFormatError {
Observation res = new Observation();
parseObservationProperties(json, res);
@@ -20991,14 +21964,24 @@ public class JsonParser extends JsonParserBase {
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("subject")) {
JsonArray array = json.getAsJsonArray("subject");
for (int i = 0; i < array.size(); i++) {
res.getSubject().add(parseReference(array.get(i).getAsJsonObject()));
}
};
+ if (json.has("status"))
+ res.setStatus(parseCodeableConcept(getJObject(json, "status")));
+ if (json.has("statusDate"))
+ res.setStatusDateElement(parseDateTime(json.get("statusDate").getAsString()));
+ if (json.has("_statusDate"))
+ parseElementProperties(getJObject(json, "_statusDate"), res.getStatusDateElement());
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("legalStatusOfSupply"))
@@ -21009,6 +21992,12 @@ public class JsonParser extends JsonParserBase {
res.getMarketingStatus().add(parseMarketingStatus(array.get(i).getAsJsonObject()));
}
};
+ if (json.has("characteristic")) {
+ JsonArray array = json.getAsJsonArray("characteristic");
+ for (int i = 0; i < array.size(); i++) {
+ res.getCharacteristic().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
+ }
+ };
if (json.has("copackagedIndicator"))
res.setCopackagedIndicatorElement(parseBoolean(json.get("copackagedIndicator").getAsBoolean()));
if (json.has("_copackagedIndicator"))
@@ -21066,7 +22055,9 @@ public class JsonParser extends JsonParserBase {
if (json.has("type"))
res.setType(parseCodeableConcept(getJObject(json, "type")));
if (json.has("quantity"))
- res.setQuantity(parseQuantity(getJObject(json, "quantity")));
+ res.setQuantityElement(parseInteger(json.get("quantity").getAsLong()));
+ if (json.has("_quantity"))
+ parseElementProperties(getJObject(json, "_quantity"), res.getQuantityElement());
if (json.has("material")) {
JsonArray array = json.getAsJsonArray("material");
for (int i = 0; i < array.size(); i++) {
@@ -21091,10 +22082,10 @@ public class JsonParser extends JsonParserBase {
res.getManufacturer().add(parseReference(array.get(i).getAsJsonObject()));
}
};
- if (json.has("characteristic")) {
- JsonArray array = json.getAsJsonArray("characteristic");
+ if (json.has("property")) {
+ JsonArray array = json.getAsJsonArray("property");
for (int i = 0; i < array.size(); i++) {
- res.getCharacteristic().add(parsePackagedProductDefinitionPackageCharacteristicComponent(array.get(i).getAsJsonObject()));
+ res.getProperty().add(parsePackagedProductDefinitionPackagePropertyComponent(array.get(i).getAsJsonObject()));
}
};
if (json.has("containedItem")) {
@@ -21111,16 +22102,16 @@ public class JsonParser extends JsonParserBase {
};
}
- protected PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent parsePackagedProductDefinitionPackageCharacteristicComponent(JsonObject json) throws IOException, FHIRFormatError {
- PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent res = new PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent();
- parsePackagedProductDefinitionPackageCharacteristicComponentProperties(json, res);
+ protected PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent parsePackagedProductDefinitionPackagePropertyComponent(JsonObject json) throws IOException, FHIRFormatError {
+ PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent res = new PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent();
+ parsePackagedProductDefinitionPackagePropertyComponentProperties(json, res);
return res;
}
- protected void parsePackagedProductDefinitionPackageCharacteristicComponentProperties(JsonObject json, PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent res) throws IOException, FHIRFormatError {
+ protected void parsePackagedProductDefinitionPackagePropertyComponentProperties(JsonObject json, PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res);
- if (json.has("code"))
- res.setCode(parseCodeableConcept(getJObject(json, "code")));
+ if (json.has("type"))
+ res.setType(parseCodeableConcept(getJObject(json, "type")));
DataType value = parseType("value", json);
if (value != null)
res.setValue(value);
@@ -21494,6 +22485,121 @@ public class JsonParser extends JsonParserBase {
parseElementProperties(getJObject(json, "_text"), res.getTextElement());
}
+ protected Permission parsePermission(JsonObject json) throws IOException, FHIRFormatError {
+ Permission res = new Permission();
+ parsePermissionProperties(json, res);
+ return res;
+ }
+
+ protected void parsePermissionProperties(JsonObject json, Permission res) throws IOException, FHIRFormatError {
+ parseDomainResourceProperties(json, res);
+ if (json.has("status"))
+ res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Permission.PermissionStatus.NULL, new Permission.PermissionStatusEnumFactory()));
+ if (json.has("_status"))
+ parseElementProperties(getJObject(json, "_status"), res.getStatusElement());
+ if (json.has("intent"))
+ res.setIntent(parseCodeableConcept(getJObject(json, "intent")));
+ if (json.has("asserter"))
+ res.setAsserter(parseReference(getJObject(json, "asserter")));
+ if (json.has("assertionDate")) {
+ JsonArray array = json.getAsJsonArray("assertionDate");
+ for (int i = 0; i < array.size(); i++) {
+ if (array.get(i).isJsonNull()) {
+ res.getAssertionDate().add(new DateTimeType());
+ } else {;
+ res.getAssertionDate().add(parseDateTime(array.get(i).getAsString()));
+ }
+ }
+ };
+ if (json.has("_assertionDate")) {
+ JsonArray array = json.getAsJsonArray("_assertionDate");
+ for (int i = 0; i < array.size(); i++) {
+ if (i == res.getAssertionDate().size())
+ res.getAssertionDate().add(parseDateTime(null));
+ if (array.get(i) instanceof JsonObject)
+ parseElementProperties(array.get(i).getAsJsonObject(), res.getAssertionDate().get(i));
+ }
+ };
+ if (json.has("validity"))
+ res.setValidity(parsePeriod(getJObject(json, "validity")));
+ if (json.has("purpose")) {
+ JsonArray array = json.getAsJsonArray("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");
+ 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");
+ for (int i = 0; i < array.size(); i++) {
+ res.getProcessingActivity().add(parsePermissionProcessingActivityComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ if (json.has("justification"))
+ res.setJustification(parsePermissionJustificationComponent(getJObject(json, "justification")));
+ if (json.has("usageLimitations")) {
+ JsonArray array = json.getAsJsonArray("usageLimitations");
+ for (int i = 0; i < array.size(); i++) {
+ res.getUsageLimitations().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
+ }
+ };
+ }
+
+ protected Permission.PermissionProcessingActivityComponent parsePermissionProcessingActivityComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Permission.PermissionProcessingActivityComponent res = new Permission.PermissionProcessingActivityComponent();
+ parsePermissionProcessingActivityComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parsePermissionProcessingActivityComponentProperties(JsonObject json, Permission.PermissionProcessingActivityComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("partyReference")) {
+ JsonArray array = json.getAsJsonArray("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");
+ 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");
+ for (int i = 0; i < array.size(); i++) {
+ res.getPurpose().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
+ }
+ };
+ }
+
+ protected Permission.PermissionJustificationComponent parsePermissionJustificationComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Permission.PermissionJustificationComponent res = new Permission.PermissionJustificationComponent();
+ parsePermissionJustificationComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parsePermissionJustificationComponentProperties(JsonObject json, Permission.PermissionJustificationComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("evidence")) {
+ JsonArray array = json.getAsJsonArray("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");
+ for (int i = 0; i < array.size(); i++) {
+ res.getGrounds().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
+ }
+ };
+ }
+
protected Person parsePerson(JsonObject json) throws IOException, FHIRFormatError {
Person res = new Person();
parsePersonProperties(json, res);
@@ -22943,6 +24049,11 @@ 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("intendedUse"))
+ res.setIntendedUse(parseCodeableConcept(getJObject(json, "intendedUse")));
if (json.has("basis")) {
JsonArray array = json.getAsJsonArray("basis");
for (int i = 0; i < array.size(); i++) {
@@ -25198,7 +26309,7 @@ public class JsonParser extends JsonParserBase {
if (json.has("_name"))
parseElementProperties(getJObject(json, "_name"), res.getNameElement());
if (json.has("status"))
- res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Subscription.SubscriptionStatus.NULL, new Subscription.SubscriptionStatusEnumFactory()));
+ 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"))
@@ -25229,46 +26340,8 @@ public class JsonParser extends JsonParserBase {
res.getError().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
}
};
- if (json.has("eventCount"))
- res.setEventCountElement(parseUnsignedInt(json.get("eventCount").getAsString()));
- if (json.has("_eventCount"))
- parseElementProperties(getJObject(json, "_eventCount"), res.getEventCountElement());
- if (json.has("channel"))
- res.setChannel(parseSubscriptionChannelComponent(getJObject(json, "channel")));
- }
-
- protected Subscription.SubscriptionFilterByComponent parseSubscriptionFilterByComponent(JsonObject json) throws IOException, FHIRFormatError {
- Subscription.SubscriptionFilterByComponent res = new Subscription.SubscriptionFilterByComponent();
- parseSubscriptionFilterByComponentProperties(json, res);
- return res;
- }
-
- protected void parseSubscriptionFilterByComponentProperties(JsonObject json, Subscription.SubscriptionFilterByComponent 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("matchType"))
- res.setMatchTypeElement(parseEnumeration(json.get("matchType").getAsString(), Subscription.SubscriptionFilterByMatchType.NULL, new Subscription.SubscriptionFilterByMatchTypeEnumFactory()));
- if (json.has("_matchType"))
- parseElementProperties(getJObject(json, "_matchType"), res.getMatchTypeElement());
- if (json.has("value"))
- res.setValueElement(parseString(json.get("value").getAsString()));
- if (json.has("_value"))
- parseElementProperties(getJObject(json, "_value"), res.getValueElement());
- }
-
- protected Subscription.SubscriptionChannelComponent parseSubscriptionChannelComponent(JsonObject json) throws IOException, FHIRFormatError {
- Subscription.SubscriptionChannelComponent res = new Subscription.SubscriptionChannelComponent();
- parseSubscriptionChannelComponentProperties(json, res);
- return res;
- }
-
- protected void parseSubscriptionChannelComponentProperties(JsonObject json, Subscription.SubscriptionChannelComponent res) throws IOException, FHIRFormatError {
- parseBackboneElementProperties(json, res);
- if (json.has("type"))
- res.setType(parseCodeableConcept(getJObject(json, "type")));
+ if (json.has("channelType"))
+ res.setChannelType(parseCoding(getJObject(json, "channelType")));
if (json.has("endpoint"))
res.setEndpointElement(parseUrl(json.get("endpoint").getAsString()));
if (json.has("_endpoint"))
@@ -25296,18 +26369,10 @@ public class JsonParser extends JsonParserBase {
res.setHeartbeatPeriodElement(parseUnsignedInt(json.get("heartbeatPeriod").getAsString()));
if (json.has("_heartbeatPeriod"))
parseElementProperties(getJObject(json, "_heartbeatPeriod"), res.getHeartbeatPeriodElement());
- if (json.has("payload"))
- res.setPayload(parseSubscriptionChannelPayloadComponent(getJObject(json, "payload")));
- }
-
- protected Subscription.SubscriptionChannelPayloadComponent parseSubscriptionChannelPayloadComponent(JsonObject json) throws IOException, FHIRFormatError {
- Subscription.SubscriptionChannelPayloadComponent res = new Subscription.SubscriptionChannelPayloadComponent();
- parseSubscriptionChannelPayloadComponentProperties(json, res);
- return res;
- }
-
- protected void parseSubscriptionChannelPayloadComponentProperties(JsonObject json, Subscription.SubscriptionChannelPayloadComponent res) throws IOException, FHIRFormatError {
- parseBackboneElementProperties(json, res);
+ if (json.has("timeout"))
+ res.setTimeoutElement(parseUnsignedInt(json.get("timeout").getAsString()));
+ if (json.has("_timeout"))
+ parseElementProperties(getJObject(json, "_timeout"), res.getTimeoutElement());
if (json.has("contentType"))
res.setContentTypeElement(parseCode(json.get("contentType").getAsString()));
if (json.has("_contentType"))
@@ -25318,6 +26383,318 @@ public class JsonParser extends JsonParserBase {
parseElementProperties(getJObject(json, "_content"), res.getContentElement());
}
+ protected Subscription.SubscriptionFilterByComponent parseSubscriptionFilterByComponent(JsonObject json) throws IOException, FHIRFormatError {
+ Subscription.SubscriptionFilterByComponent res = new Subscription.SubscriptionFilterByComponent();
+ parseSubscriptionFilterByComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseSubscriptionFilterByComponentProperties(JsonObject json, Subscription.SubscriptionFilterByComponent 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"))
+ res.setSearchModifierElement(parseEnumeration(json.get("searchModifier").getAsString(), Enumerations.SubscriptionSearchModifier.NULL, new Enumerations.SubscriptionSearchModifierEnumFactory()));
+ if (json.has("_searchModifier"))
+ parseElementProperties(getJObject(json, "_searchModifier"), res.getSearchModifierElement());
+ if (json.has("value"))
+ res.setValueElement(parseString(json.get("value").getAsString()));
+ if (json.has("_value"))
+ parseElementProperties(getJObject(json, "_value"), res.getValueElement());
+ }
+
+ protected SubscriptionStatus parseSubscriptionStatus(JsonObject json) throws IOException, FHIRFormatError {
+ SubscriptionStatus res = new SubscriptionStatus();
+ parseSubscriptionStatusProperties(json, res);
+ return res;
+ }
+
+ protected void parseSubscriptionStatusProperties(JsonObject json, SubscriptionStatus res) throws IOException, FHIRFormatError {
+ parseDomainResourceProperties(json, res);
+ if (json.has("notificationType"))
+ res.setNotificationTypeElement(parseEnumeration(json.get("notificationType").getAsString(), SubscriptionStatus.SubscriptionNotificationType.NULL, new SubscriptionStatus.SubscriptionNotificationTypeEnumFactory()));
+ if (json.has("_notificationType"))
+ parseElementProperties(getJObject(json, "_notificationType"), res.getNotificationTypeElement());
+ if (json.has("eventsSinceSubscriptionStart"))
+ res.setEventsSinceSubscriptionStartElement(parseInteger64(json.get("eventsSinceSubscriptionStart").getAsLong()));
+ if (json.has("_eventsSinceSubscriptionStart"))
+ parseElementProperties(getJObject(json, "_eventsSinceSubscriptionStart"), res.getEventsSinceSubscriptionStartElement());
+ if (json.has("eventsInNotification"))
+ res.setEventsInNotificationElement(parseInteger(json.get("eventsInNotification").getAsLong()));
+ if (json.has("_eventsInNotification"))
+ 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.setTopic(parseReference(getJObject(json, "topic")));
+ }
+
+ protected SubscriptionTopic parseSubscriptionTopic(JsonObject json) throws IOException, FHIRFormatError {
+ SubscriptionTopic res = new SubscriptionTopic();
+ parseSubscriptionTopicProperties(json, res);
+ return res;
+ }
+
+ protected void parseSubscriptionTopicProperties(JsonObject json, SubscriptionTopic 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");
+ 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("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"))
+ 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.setPublisher(parseReference(getJObject(json, "publisher")));
+ 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("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");
+ 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");
+ 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("resourceTrigger"))
+ res.setResourceTrigger(parseSubscriptionTopicResourceTriggerComponent(getJObject(json, "resourceTrigger")));
+ if (json.has("canFilterBy")) {
+ JsonArray array = json.getAsJsonArray("canFilterBy");
+ for (int i = 0; i < array.size(); i++) {
+ res.getCanFilterBy().add(parseSubscriptionTopicCanFilterByComponent(array.get(i).getAsJsonObject()));
+ }
+ };
+ }
+
+ protected SubscriptionTopic.SubscriptionTopicResourceTriggerComponent parseSubscriptionTopicResourceTriggerComponent(JsonObject json) throws IOException, FHIRFormatError {
+ SubscriptionTopic.SubscriptionTopicResourceTriggerComponent res = new SubscriptionTopic.SubscriptionTopicResourceTriggerComponent();
+ parseSubscriptionTopicResourceTriggerComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseSubscriptionTopicResourceTriggerComponentProperties(JsonObject json, SubscriptionTopic.SubscriptionTopicResourceTriggerComponent 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("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("methodCriteria")) {
+ JsonArray array = json.getAsJsonArray("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));
+ } else {;
+ res.getMethodCriteria().add(parseEnumeration(array.get(i).getAsString(), SubscriptionTopic.InteractionTrigger.NULL, new SubscriptionTopic.InteractionTriggerEnumFactory()));
+ }
+ }
+ };
+ if (json.has("_methodCriteria")) {
+ JsonArray array = json.getAsJsonArray("_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()));
+ if (array.get(i) instanceof JsonObject)
+ parseElementProperties(array.get(i).getAsJsonObject(), res.getMethodCriteria().get(i));
+ }
+ };
+ if (json.has("queryCriteria"))
+ res.setQueryCriteria(parseSubscriptionTopicResourceTriggerQueryCriteriaComponent(getJObject(json, "queryCriteria")));
+ if (json.has("fhirPathCriteria")) {
+ JsonArray array = json.getAsJsonArray("fhirPathCriteria");
+ for (int i = 0; i < array.size(); i++) {
+ if (array.get(i).isJsonNull()) {
+ res.getFhirPathCriteria().add(new StringType());
+ } else {;
+ res.getFhirPathCriteria().add(parseString(array.get(i).getAsString()));
+ }
+ }
+ };
+ if (json.has("_fhirPathCriteria")) {
+ JsonArray array = json.getAsJsonArray("_fhirPathCriteria");
+ for (int i = 0; i < array.size(); i++) {
+ if (i == res.getFhirPathCriteria().size())
+ res.getFhirPathCriteria().add(parseString(null));
+ if (array.get(i) instanceof JsonObject)
+ parseElementProperties(array.get(i).getAsJsonObject(), res.getFhirPathCriteria().get(i));
+ }
+ };
+ }
+
+ protected SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent parseSubscriptionTopicResourceTriggerQueryCriteriaComponent(JsonObject json) throws IOException, FHIRFormatError {
+ SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent res = new SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent();
+ parseSubscriptionTopicResourceTriggerQueryCriteriaComponentProperties(json, res);
+ return res;
+ }
+
+ protected void parseSubscriptionTopicResourceTriggerQueryCriteriaComponentProperties(JsonObject json, SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent res) throws IOException, FHIRFormatError {
+ parseBackboneElementProperties(json, res);
+ if (json.has("previous"))
+ res.setPreviousElement(parseString(json.get("previous").getAsString()));
+ if (json.has("_previous"))
+ parseElementProperties(getJObject(json, "_previous"), res.getPreviousElement());
+ if (json.has("current"))
+ res.setCurrentElement(parseString(json.get("current").getAsString()));
+ if (json.has("_current"))
+ parseElementProperties(getJObject(json, "_current"), res.getCurrentElement());
+ 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);
+ return res;
+ }
+
+ protected void parseSubscriptionTopicCanFilterByComponentProperties(JsonObject json, SubscriptionTopic.SubscriptionTopicCanFilterByComponent 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");
+ for (int i = 0; i < array.size(); i++) {
+ if (array.get(i).isJsonNull()) {
+ res.getSearchModifier().add(new Enumeration(new Enumerations.SubscriptionSearchModifierEnumFactory(), Enumerations.SubscriptionSearchModifier.NULL));
+ } else {;
+ res.getSearchModifier().add(parseEnumeration(array.get(i).getAsString(), Enumerations.SubscriptionSearchModifier.NULL, new Enumerations.SubscriptionSearchModifierEnumFactory()));
+ }
+ }
+ };
+ if (json.has("_searchModifier")) {
+ JsonArray array = json.getAsJsonArray("_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()));
+ if (array.get(i) instanceof JsonObject)
+ parseElementProperties(array.get(i).getAsJsonObject(), res.getSearchModifier().get(i));
+ }
+ };
+ if (json.has("documentation"))
+ res.setDocumentationElement(parseMarkdown(json.get("documentation").getAsString()));
+ if (json.has("_documentation"))
+ parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement());
+ }
+
protected Substance parseSubstance(JsonObject json) throws IOException, FHIRFormatError {
Substance res = new Substance();
parseSubstanceProperties(json, res);
@@ -25584,10 +26961,10 @@ public class JsonParser extends JsonParserBase {
};
if (json.has("molecularWeight"))
res.setMolecularWeight(parseSubstanceDefinitionStructureIsotopeMolecularWeightComponent(getJObject(json, "molecularWeight")));
- if (json.has("sourceCoding")) {
- JsonArray array = json.getAsJsonArray("sourceCoding");
+ if (json.has("technique")) {
+ JsonArray array = json.getAsJsonArray("technique");
for (int i = 0; i < array.size(); i++) {
- res.getSourceCoding().add(parseCoding(array.get(i).getAsJsonObject()));
+ res.getTechnique().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
}
};
if (json.has("sourceDocument")) {
@@ -25654,6 +27031,8 @@ public class JsonParser extends JsonParserBase {
res.setRepresentationElement(parseString(json.get("representation").getAsString()));
if (json.has("_representation"))
parseElementProperties(getJObject(json, "_representation"), res.getRepresentationElement());
+ if (json.has("format"))
+ res.setFormat(parseCodeableConcept(getJObject(json, "format")));
if (json.has("attachment"))
res.setAttachment(parseAttachment(getJObject(json, "attachment")));
}
@@ -25922,6 +27301,8 @@ public class JsonParser extends JsonParserBase {
protected void parseSubstancePolymerProperties(JsonObject json, SubstancePolymer res) throws IOException, FHIRFormatError {
parseDomainResourceProperties(json, res);
+ if (json.has("identifier"))
+ res.setIdentifier(parseIdentifier(getJObject(json, "identifier")));
if (json.has("class"))
res.setClass_(parseCodeableConcept(getJObject(json, "class")));
if (json.has("geometry"))
@@ -25932,25 +27313,10 @@ public class JsonParser extends JsonParserBase {
res.getCopolymerConnectivity().add(parseCodeableConcept(array.get(i).getAsJsonObject()));
}
};
- if (json.has("modification")) {
- JsonArray array = json.getAsJsonArray("modification");
- for (int i = 0; i < array.size(); i++) {
- if (array.get(i).isJsonNull()) {
- res.getModification().add(new StringType());
- } else {;
- res.getModification().add(parseString(array.get(i).getAsString()));
- }
- }
- };
- if (json.has("_modification")) {
- JsonArray array = json.getAsJsonArray("_modification");
- for (int i = 0; i < array.size(); i++) {
- if (i == res.getModification().size())
- res.getModification().add(parseString(null));
- if (array.get(i) instanceof JsonObject)
- parseElementProperties(array.get(i).getAsJsonObject(), res.getModification().get(i));
- }
- };
+ if (json.has("modification"))
+ res.setModificationElement(parseString(json.get("modification").getAsString()));
+ if (json.has("_modification"))
+ parseElementProperties(getJObject(json, "_modification"), res.getModificationElement());
if (json.has("monomerSet")) {
JsonArray array = json.getAsJsonArray("monomerSet");
for (int i = 0; i < array.size(); i++) {
@@ -25991,10 +27357,10 @@ public class JsonParser extends JsonParserBase {
protected void parseSubstancePolymerMonomerSetStartingMaterialComponentProperties(JsonObject json, SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res);
- if (json.has("material"))
- res.setMaterial(parseCodeableConcept(getJObject(json, "material")));
- if (json.has("type"))
- res.setType(parseCodeableConcept(getJObject(json, "type")));
+ if (json.has("code"))
+ res.setCode(parseCodeableConcept(getJObject(json, "code")));
+ if (json.has("category"))
+ res.setCategory(parseCodeableConcept(getJObject(json, "category")));
if (json.has("isDefining"))
res.setIsDefiningElement(parseBoolean(json.get("isDefining").getAsBoolean()));
if (json.has("_isDefining"))
@@ -26037,12 +27403,12 @@ public class JsonParser extends JsonParserBase {
protected void parseSubstancePolymerRepeatRepeatUnitComponentProperties(JsonObject json, SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res);
- if (json.has("orientationOfPolymerisation"))
- res.setOrientationOfPolymerisation(parseCodeableConcept(getJObject(json, "orientationOfPolymerisation")));
- if (json.has("repeatUnit"))
- res.setRepeatUnitElement(parseString(json.get("repeatUnit").getAsString()));
- if (json.has("_repeatUnit"))
- parseElementProperties(getJObject(json, "_repeatUnit"), res.getRepeatUnitElement());
+ if (json.has("unit"))
+ res.setUnitElement(parseString(json.get("unit").getAsString()));
+ if (json.has("_unit"))
+ parseElementProperties(getJObject(json, "_unit"), res.getUnitElement());
+ if (json.has("orientation"))
+ res.setOrientation(parseCodeableConcept(getJObject(json, "orientation")));
if (json.has("amount"))
res.setAmount(parseSubstanceAmount(getJObject(json, "amount")));
if (json.has("degreeOfPolymerisation")) {
@@ -26087,6 +27453,8 @@ public class JsonParser extends JsonParserBase {
res.setRepresentationElement(parseString(json.get("representation").getAsString()));
if (json.has("_representation"))
parseElementProperties(getJObject(json, "_representation"), res.getRepresentationElement());
+ if (json.has("format"))
+ res.setFormat(parseCodeableConcept(getJObject(json, "format")));
if (json.has("attachment"))
res.setAttachment(parseAttachment(getJObject(json, "attachment")));
}
@@ -26605,9 +27973,8 @@ 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());
- DataType item = parseType("item", json);
- if (item != null)
- res.setItem(item);
+ if (json.has("item"))
+ res.setItem(parseCodeableReference(getJObject(json, "item")));
if (json.has("quantity"))
res.setQuantity(parseQuantity(getJObject(json, "quantity")));
if (json.has("parameter")) {
@@ -28017,251 +29384,6 @@ public class JsonParser extends JsonParserBase {
res.setOperation(parseTestScriptSetupActionOperationComponent(getJObject(json, "operation")));
}
- protected Topic parseTopic(JsonObject json) throws IOException, FHIRFormatError {
- Topic res = new Topic();
- parseTopicProperties(json, res);
- return res;
- }
-
- protected void parseTopicProperties(JsonObject json, Topic 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");
- 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("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"))
- 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.setPublisher(parseReference(getJObject(json, "publisher")));
- 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("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");
- 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");
- 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("resourceTrigger"))
- res.setResourceTrigger(parseTopicResourceTriggerComponent(getJObject(json, "resourceTrigger")));
- if (json.has("canFilterBy")) {
- JsonArray array = json.getAsJsonArray("canFilterBy");
- for (int i = 0; i < array.size(); i++) {
- res.getCanFilterBy().add(parseTopicCanFilterByComponent(array.get(i).getAsJsonObject()));
- }
- };
- }
-
- protected Topic.TopicResourceTriggerComponent parseTopicResourceTriggerComponent(JsonObject json) throws IOException, FHIRFormatError {
- Topic.TopicResourceTriggerComponent res = new Topic.TopicResourceTriggerComponent();
- parseTopicResourceTriggerComponentProperties(json, res);
- return res;
- }
-
- protected void parseTopicResourceTriggerComponentProperties(JsonObject json, Topic.TopicResourceTriggerComponent 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("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("methodCriteria")) {
- JsonArray array = json.getAsJsonArray("methodCriteria");
- for (int i = 0; i < array.size(); i++) {
- if (array.get(i).isJsonNull()) {
- res.getMethodCriteria().add(new Enumeration(new Topic.InteractionTriggerEnumFactory(), Topic.InteractionTrigger.NULL));
- } else {;
- res.getMethodCriteria().add(parseEnumeration(array.get(i).getAsString(), Topic.InteractionTrigger.NULL, new Topic.InteractionTriggerEnumFactory()));
- }
- }
- };
- if (json.has("_methodCriteria")) {
- JsonArray array = json.getAsJsonArray("_methodCriteria");
- for (int i = 0; i < array.size(); i++) {
- if (i == res.getMethodCriteria().size())
- res.getMethodCriteria().add(parseEnumeration(null, Topic.InteractionTrigger.NULL, new Topic.InteractionTriggerEnumFactory()));
- if (array.get(i) instanceof JsonObject)
- parseElementProperties(array.get(i).getAsJsonObject(), res.getMethodCriteria().get(i));
- }
- };
- if (json.has("queryCriteria"))
- res.setQueryCriteria(parseTopicResourceTriggerQueryCriteriaComponent(getJObject(json, "queryCriteria")));
- if (json.has("fhirPathCriteria"))
- res.setFhirPathCriteriaElement(parseString(json.get("fhirPathCriteria").getAsString()));
- if (json.has("_fhirPathCriteria"))
- parseElementProperties(getJObject(json, "_fhirPathCriteria"), res.getFhirPathCriteriaElement());
- }
-
- protected Topic.TopicResourceTriggerQueryCriteriaComponent parseTopicResourceTriggerQueryCriteriaComponent(JsonObject json) throws IOException, FHIRFormatError {
- Topic.TopicResourceTriggerQueryCriteriaComponent res = new Topic.TopicResourceTriggerQueryCriteriaComponent();
- parseTopicResourceTriggerQueryCriteriaComponentProperties(json, res);
- return res;
- }
-
- protected void parseTopicResourceTriggerQueryCriteriaComponentProperties(JsonObject json, Topic.TopicResourceTriggerQueryCriteriaComponent res) throws IOException, FHIRFormatError {
- parseBackboneElementProperties(json, res);
- if (json.has("previous"))
- res.setPreviousElement(parseString(json.get("previous").getAsString()));
- if (json.has("_previous"))
- parseElementProperties(getJObject(json, "_previous"), res.getPreviousElement());
- if (json.has("current"))
- res.setCurrentElement(parseString(json.get("current").getAsString()));
- if (json.has("_current"))
- parseElementProperties(getJObject(json, "_current"), res.getCurrentElement());
- if (json.has("requireBoth"))
- res.setRequireBothElement(parseBoolean(json.get("requireBoth").getAsBoolean()));
- if (json.has("_requireBoth"))
- parseElementProperties(getJObject(json, "_requireBoth"), res.getRequireBothElement());
- }
-
- protected Topic.TopicCanFilterByComponent parseTopicCanFilterByComponent(JsonObject json) throws IOException, FHIRFormatError {
- Topic.TopicCanFilterByComponent res = new Topic.TopicCanFilterByComponent();
- parseTopicCanFilterByComponentProperties(json, res);
- return res;
- }
-
- protected void parseTopicCanFilterByComponentProperties(JsonObject json, Topic.TopicCanFilterByComponent 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("matchType")) {
- JsonArray array = json.getAsJsonArray("matchType");
- for (int i = 0; i < array.size(); i++) {
- if (array.get(i).isJsonNull()) {
- res.getMatchType().add(new Enumeration(new Topic.TopicFilterByMatchTypeEnumFactory(), Topic.TopicFilterByMatchType.NULL));
- } else {;
- res.getMatchType().add(parseEnumeration(array.get(i).getAsString(), Topic.TopicFilterByMatchType.NULL, new Topic.TopicFilterByMatchTypeEnumFactory()));
- }
- }
- };
- if (json.has("_matchType")) {
- JsonArray array = json.getAsJsonArray("_matchType");
- for (int i = 0; i < array.size(); i++) {
- if (i == res.getMatchType().size())
- res.getMatchType().add(parseEnumeration(null, Topic.TopicFilterByMatchType.NULL, new Topic.TopicFilterByMatchTypeEnumFactory()));
- if (array.get(i) instanceof JsonObject)
- parseElementProperties(array.get(i).getAsJsonObject(), res.getMatchType().get(i));
- }
- };
- if (json.has("documentation"))
- res.setDocumentationElement(parseMarkdown(json.get("documentation").getAsString()));
- if (json.has("_documentation"))
- parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement());
- }
-
protected ValueSet parseValueSet(JsonObject json) throws IOException, FHIRFormatError {
ValueSet res = new ValueSet();
parseValueSetProperties(json, res);
@@ -29001,6 +30123,8 @@ public class JsonParser extends JsonParserBase {
return parseChargeItem(json);
} else if (t.equals("ChargeItemDefinition")) {
return parseChargeItemDefinition(json);
+ } else if (t.equals("Citation")) {
+ return parseCitation(json);
} else if (t.equals("Claim")) {
return parseClaim(json);
} else if (t.equals("ClaimResponse")) {
@@ -29067,6 +30191,8 @@ public class JsonParser extends JsonParserBase {
return parseEventDefinition(json);
} else if (t.equals("Evidence")) {
return parseEvidence(json);
+ } else if (t.equals("EvidenceFocus")) {
+ return parseEvidenceFocus(json);
} else if (t.equals("EvidenceVariable")) {
return parseEvidenceVariable(json);
} else if (t.equals("ExampleScenario")) {
@@ -29143,6 +30269,8 @@ public class JsonParser extends JsonParserBase {
return parseNutritionIntake(json);
} else if (t.equals("NutritionOrder")) {
return parseNutritionOrder(json);
+ } else if (t.equals("NutritionProduct")) {
+ return parseNutritionProduct(json);
} else if (t.equals("Observation")) {
return parseObservation(json);
} else if (t.equals("ObservationDefinition")) {
@@ -29165,6 +30293,8 @@ public class JsonParser extends JsonParserBase {
return parsePaymentNotice(json);
} else if (t.equals("PaymentReconciliation")) {
return parsePaymentReconciliation(json);
+ } else if (t.equals("Permission")) {
+ return parsePermission(json);
} else if (t.equals("Person")) {
return parsePerson(json);
} else if (t.equals("PlanDefinition")) {
@@ -29211,6 +30341,10 @@ public class JsonParser extends JsonParserBase {
return parseStructureMap(json);
} else if (t.equals("Subscription")) {
return parseSubscription(json);
+ } else if (t.equals("SubscriptionStatus")) {
+ return parseSubscriptionStatus(json);
+ } else if (t.equals("SubscriptionTopic")) {
+ return parseSubscriptionTopic(json);
} else if (t.equals("Substance")) {
return parseSubstance(json);
} else if (t.equals("SubstanceDefinition")) {
@@ -29237,8 +30371,6 @@ public class JsonParser extends JsonParserBase {
return parseTestReport(json);
} else if (t.equals("TestScript")) {
return parseTestScript(json);
- } else if (t.equals("Topic")) {
- return parseTopic(json);
} else if (t.equals("ValueSet")) {
return parseValueSet(json);
} else if (t.equals("VerificationResult")) {
@@ -29255,121 +30387,121 @@ public class JsonParser extends JsonParserBase {
if (json.has(prefix+"Date") || json.has("_"+prefix+"Date")) {
DataType t = json.has(prefix+"Date") ? parseDate(json.get(prefix+"Date").getAsString()) : new DateType();
if (json.has("_"+prefix+"Date"))
- parseElementProperties(getJObject(json, "_"+prefix+"Date"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Date"), t);
return t;
}
else if (json.has(prefix+"DateTime") || json.has("_"+prefix+"DateTime")) {
DataType t = json.has(prefix+"DateTime") ? parseDateTime(json.get(prefix+"DateTime").getAsString()) : new DateTimeType();
if (json.has("_"+prefix+"DateTime"))
- parseElementProperties(getJObject(json, "_"+prefix+"DateTime"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"DateTime"), t);
return t;
}
else if (json.has(prefix+"Code") || json.has("_"+prefix+"Code")) {
DataType t = json.has(prefix+"Code") ? parseCode(json.get(prefix+"Code").getAsString()) : new CodeType();
if (json.has("_"+prefix+"Code"))
- parseElementProperties(getJObject(json, "_"+prefix+"Code"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Code"), t);
return t;
}
else if (json.has(prefix+"String") || json.has("_"+prefix+"String")) {
DataType t = json.has(prefix+"String") ? parseString(json.get(prefix+"String").getAsString()) : new StringType();
if (json.has("_"+prefix+"String"))
- parseElementProperties(getJObject(json, "_"+prefix+"String"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"String"), t);
return t;
}
else if (json.has(prefix+"Integer") || json.has("_"+prefix+"Integer")) {
DataType t = json.has(prefix+"Integer") ? parseInteger(json.get(prefix+"Integer").getAsLong()) : new IntegerType();
if (json.has("_"+prefix+"Integer"))
- parseElementProperties(getJObject(json, "_"+prefix+"Integer"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Integer"), t);
return t;
}
else if (json.has(prefix+"Integer64") || json.has("_"+prefix+"Integer64")) {
DataType t = json.has(prefix+"Integer64") ? parseInteger64(json.get(prefix+"Integer64").getAsLong()) : new Integer64Type();
if (json.has("_"+prefix+"Integer64"))
- parseElementProperties(getJObject(json, "_"+prefix+"Integer64"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Integer64"), t);
return t;
}
else if (json.has(prefix+"Oid") || json.has("_"+prefix+"Oid")) {
DataType t = json.has(prefix+"Oid") ? parseOid(json.get(prefix+"Oid").getAsString()) : new OidType();
if (json.has("_"+prefix+"Oid"))
- parseElementProperties(getJObject(json, "_"+prefix+"Oid"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Oid"), t);
return t;
}
else if (json.has(prefix+"Canonical") || json.has("_"+prefix+"Canonical")) {
DataType t = json.has(prefix+"Canonical") ? parseCanonical(json.get(prefix+"Canonical").getAsString()) : new CanonicalType();
if (json.has("_"+prefix+"Canonical"))
- parseElementProperties(getJObject(json, "_"+prefix+"Canonical"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Canonical"), t);
return t;
}
else if (json.has(prefix+"Uri") || json.has("_"+prefix+"Uri")) {
DataType t = json.has(prefix+"Uri") ? parseUri(json.get(prefix+"Uri").getAsString()) : new UriType();
if (json.has("_"+prefix+"Uri"))
- parseElementProperties(getJObject(json, "_"+prefix+"Uri"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Uri"), t);
return t;
}
else if (json.has(prefix+"Uuid") || json.has("_"+prefix+"Uuid")) {
DataType t = json.has(prefix+"Uuid") ? parseUuid(json.get(prefix+"Uuid").getAsString()) : new UuidType();
if (json.has("_"+prefix+"Uuid"))
- parseElementProperties(getJObject(json, "_"+prefix+"Uuid"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Uuid"), t);
return t;
}
else if (json.has(prefix+"Url") || json.has("_"+prefix+"Url")) {
DataType t = json.has(prefix+"Url") ? parseUrl(json.get(prefix+"Url").getAsString()) : new UrlType();
if (json.has("_"+prefix+"Url"))
- parseElementProperties(getJObject(json, "_"+prefix+"Url"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Url"), t);
return t;
}
else if (json.has(prefix+"Instant") || json.has("_"+prefix+"Instant")) {
DataType t = json.has(prefix+"Instant") ? parseInstant(json.get(prefix+"Instant").getAsString()) : new InstantType();
if (json.has("_"+prefix+"Instant"))
- parseElementProperties(getJObject(json, "_"+prefix+"Instant"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Instant"), t);
return t;
}
else if (json.has(prefix+"Boolean") || json.has("_"+prefix+"Boolean")) {
DataType t = json.has(prefix+"Boolean") ? parseBoolean(json.get(prefix+"Boolean").getAsBoolean()) : new BooleanType();
if (json.has("_"+prefix+"Boolean"))
- parseElementProperties(getJObject(json, "_"+prefix+"Boolean"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Boolean"), t);
return t;
}
else if (json.has(prefix+"Base64Binary") || json.has("_"+prefix+"Base64Binary")) {
DataType t = json.has(prefix+"Base64Binary") ? parseBase64Binary(json.get(prefix+"Base64Binary").getAsString()) : new Base64BinaryType();
if (json.has("_"+prefix+"Base64Binary"))
- parseElementProperties(getJObject(json, "_"+prefix+"Base64Binary"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Base64Binary"), t);
return t;
}
else if (json.has(prefix+"UnsignedInt") || json.has("_"+prefix+"UnsignedInt")) {
DataType t = json.has(prefix+"UnsignedInt") ? parseUnsignedInt(json.get(prefix+"UnsignedInt").getAsString()) : new UnsignedIntType();
if (json.has("_"+prefix+"UnsignedInt"))
- parseElementProperties(getJObject(json, "_"+prefix+"UnsignedInt"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"UnsignedInt"), t);
return t;
}
else if (json.has(prefix+"Markdown") || json.has("_"+prefix+"Markdown")) {
DataType t = json.has(prefix+"Markdown") ? parseMarkdown(json.get(prefix+"Markdown").getAsString()) : new MarkdownType();
if (json.has("_"+prefix+"Markdown"))
- parseElementProperties(getJObject(json, "_"+prefix+"Markdown"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Markdown"), t);
return t;
}
else if (json.has(prefix+"Time") || json.has("_"+prefix+"Time")) {
DataType t = json.has(prefix+"Time") ? parseTime(json.get(prefix+"Time").getAsString()) : new TimeType();
if (json.has("_"+prefix+"Time"))
- parseElementProperties(getJObject(json, "_"+prefix+"Time"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Time"), t);
return t;
}
else if (json.has(prefix+"Id") || json.has("_"+prefix+"Id")) {
DataType t = json.has(prefix+"Id") ? parseId(json.get(prefix+"Id").getAsString()) : new IdType();
if (json.has("_"+prefix+"Id"))
- parseElementProperties(getJObject(json, "_"+prefix+"Id"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Id"), t);
return t;
}
else if (json.has(prefix+"PositiveInt") || json.has("_"+prefix+"PositiveInt")) {
DataType t = json.has(prefix+"PositiveInt") ? parsePositiveInt(json.get(prefix+"PositiveInt").getAsString()) : new PositiveIntType();
if (json.has("_"+prefix+"PositiveInt"))
- parseElementProperties(getJObject(json, "_"+prefix+"PositiveInt"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"PositiveInt"), t);
return t;
}
else if (json.has(prefix+"Decimal") || json.has("_"+prefix+"Decimal")) {
DataType t = json.has(prefix+"Decimal") ? parseDecimal(json.get(prefix+"Decimal").getAsBigDecimal()) : new DecimalType();
if (json.has("_"+prefix+"Decimal"))
- parseElementProperties(getJObject(json, "_"+prefix+"Decimal"), t);
+ parseElementProperties(json.getAsJsonObject("_"+prefix+"Decimal"), t);
return t;
} else if (json.has(prefix+"Address")) {
return parseAddress(getJObject(json, prefix+"Address"));
@@ -29745,6 +30877,9 @@ public class JsonParser extends JsonParserBase {
if (json.has(prefix+"ChargeItemDefinition")) {
return true;
};
+ if (json.has(prefix+"Citation")) {
+ return true;
+ };
if (json.has(prefix+"Claim")) {
return true;
};
@@ -29844,6 +30979,9 @@ public class JsonParser extends JsonParserBase {
if (json.has(prefix+"Evidence")) {
return true;
};
+ if (json.has(prefix+"EvidenceFocus")) {
+ return true;
+ };
if (json.has(prefix+"EvidenceVariable")) {
return true;
};
@@ -29958,6 +31096,9 @@ public class JsonParser extends JsonParserBase {
if (json.has(prefix+"NutritionOrder")) {
return true;
};
+ if (json.has(prefix+"NutritionProduct")) {
+ return true;
+ };
if (json.has(prefix+"Observation")) {
return true;
};
@@ -29991,6 +31132,9 @@ public class JsonParser extends JsonParserBase {
if (json.has(prefix+"PaymentReconciliation")) {
return true;
};
+ if (json.has(prefix+"Permission")) {
+ return true;
+ };
if (json.has(prefix+"Person")) {
return true;
};
@@ -30060,6 +31204,12 @@ public class JsonParser extends JsonParserBase {
if (json.has(prefix+"Subscription")) {
return true;
};
+ if (json.has(prefix+"SubscriptionStatus")) {
+ return true;
+ };
+ if (json.has(prefix+"SubscriptionTopic")) {
+ return true;
+ };
if (json.has(prefix+"Substance")) {
return true;
};
@@ -30099,9 +31249,6 @@ public class JsonParser extends JsonParserBase {
if (json.has(prefix+"TestScript")) {
return true;
};
- if (json.has(prefix+"Topic")) {
- return true;
- };
if (json.has(prefix+"ValueSet")) {
return true;
};
@@ -33108,10 +34255,10 @@ public class JsonParser extends JsonParserBase {
composeReference(null, e);
closeArray();
};
- if (element.hasCharacteristic()) {
- openArray("characteristic");
- for (AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent e : element.getCharacteristic())
- composeAdministrableProductDefinitionCharacteristicComponent(null, e);
+ if (element.hasProperty()) {
+ openArray("property");
+ for (AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent e : element.getProperty())
+ composeAdministrableProductDefinitionPropertyComponent(null, e);
closeArray();
};
if (element.hasRouteOfAdministration()) {
@@ -33122,18 +34269,18 @@ public class JsonParser extends JsonParserBase {
};
}
- protected void composeAdministrableProductDefinitionCharacteristicComponent(String name, AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent element) throws IOException {
+ protected void composeAdministrableProductDefinitionPropertyComponent(String name, AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent element) throws IOException {
if (element != null) {
open(name);
- composeAdministrableProductDefinitionCharacteristicComponentProperties(element);
+ composeAdministrableProductDefinitionPropertyComponentProperties(element);
close();
}
}
- protected void composeAdministrableProductDefinitionCharacteristicComponentProperties(AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent element) throws IOException {
+ protected void composeAdministrableProductDefinitionPropertyComponentProperties(AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent element) throws IOException {
composeBackboneElementProperties(element);
- if (element.hasCode()) {
- composeCodeableConcept("code", element.getCode());
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
}
if (element.hasValue()) {
composeType("value", element.getValue());
@@ -33796,13 +34943,8 @@ public class JsonParser extends JsonParserBase {
composeInstantCore("recorded", element.getRecordedElement(), false);
composeInstantExtras("recorded", element.getRecordedElement(), false);
}
- if (element.hasOutcomeElement()) {
- composeEnumerationCore("outcome", element.getOutcomeElement(), new AuditEvent.AuditEventOutcomeEnumFactory(), false);
- composeEnumerationExtras("outcome", element.getOutcomeElement(), new AuditEvent.AuditEventOutcomeEnumFactory(), false);
- }
- if (element.hasOutcomeDescElement()) {
- composeStringCore("outcomeDesc", element.getOutcomeDescElement(), false);
- composeStringExtras("outcomeDesc", element.getOutcomeDescElement(), false);
+ if (element.hasOutcome()) {
+ composeCodeableConcept("outcome", element.getOutcome());
}
if (element.hasPurposeOfEvent()) {
openArray("purposeOfEvent");
@@ -35677,7 +36819,7 @@ public class JsonParser extends JsonParserBase {
composeType("scheduled", element.getScheduled());
}
if (element.hasLocation()) {
- composeReference("location", element.getLocation());
+ composeCodeableReference("location", element.getLocation());
}
if (element.hasReported()) {
composeType("reported", element.getReported());
@@ -36261,6 +37403,715 @@ public class JsonParser extends JsonParserBase {
}
}
+ protected void composeCitation(String name, Citation element) throws IOException {
+ if (element != null) {
+ prop("resourceType", name);
+ composeCitationProperties(element);
+ }
+ }
+
+ protected void composeCitationProperties(Citation element) throws IOException {
+ composeMetadataResourceProperties(element);
+ if (element.hasUrlElement()) {
+ composeUriCore("url", element.getUrlElement(), false);
+ composeUriExtras("url", element.getUrlElement(), false);
+ }
+ if (element.hasVersionElement()) {
+ composeStringCore("version", element.getVersionElement(), false);
+ composeStringExtras("version", element.getVersionElement(), false);
+ }
+ if (element.hasStatusElement()) {
+ composeEnumerationCore("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false);
+ composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false);
+ }
+ if (element.hasUseContext()) {
+ openArray("useContext");
+ for (UsageContext e : element.getUseContext())
+ composeUsageContext(null, e);
+ closeArray();
+ };
+ if (element.hasIdentifier()) {
+ openArray("identifier");
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier(null, e);
+ closeArray();
+ };
+ if (element.hasRelatedIdentifier()) {
+ openArray("relatedIdentifier");
+ for (Identifier e : element.getRelatedIdentifier())
+ composeIdentifier(null, e);
+ closeArray();
+ };
+ if (element.hasDateCitedElement()) {
+ composeDateTimeCore("dateCited", element.getDateCitedElement(), false);
+ composeDateTimeExtras("dateCited", element.getDateCitedElement(), false);
+ }
+ if (element.hasVariantCitation()) {
+ composeCitationVariantCitationComponent("variantCitation", element.getVariantCitation());
+ }
+ if (element.hasPublishingModel()) {
+ composeCodeableConcept("publishingModel", element.getPublishingModel());
+ }
+ if (element.hasJournal()) {
+ composeCitationJournalComponent("journal", element.getJournal());
+ }
+ 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.hasAuthorList()) {
+ composeCitationAuthorListComponent("authorList", element.getAuthorList());
+ }
+ if (element.hasAuthorString()) {
+ openArray("authorString");
+ for (Citation.CitationAuthorStringComponent e : element.getAuthorString())
+ composeCitationAuthorStringComponent(null, e);
+ closeArray();
+ };
+ if (element.hasContributorList()) {
+ composeCitationContributorListComponent("contributorList", element.getContributorList());
+ }
+ 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())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ if (element.hasRelatedArtifact()) {
+ openArray("relatedArtifact");
+ for (RelatedArtifact e : element.getRelatedArtifact())
+ composeRelatedArtifact(null, e);
+ closeArray();
+ };
+ if (element.hasNote()) {
+ openArray("note");
+ for (Annotation e : element.getNote())
+ composeAnnotation(null, e);
+ closeArray();
+ };
+ if (element.hasMedlinePubMed()) {
+ composeCitationMedlinePubMedComponent("medlinePubMed", element.getMedlinePubMed());
+ }
+ }
+
+ protected void composeCitationVariantCitationComponent(String name, Citation.CitationVariantCitationComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationVariantCitationComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationVariantCitationComponentProperties(Citation.CitationVariantCitationComponent 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);
+ }
+ if (element.hasBaseCitation()) {
+ composeReference("baseCitation", element.getBaseCitation());
+ }
+ }
+
+ protected void composeCitationJournalComponent(String name, Citation.CitationJournalComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationJournalComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationJournalComponentProperties(Citation.CitationJournalComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ 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);
+ }
+ }
+
+ protected void composeCitationJournalJournalIssueComponent(String name, Citation.CitationJournalJournalIssueComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationJournalJournalIssueComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationJournalJournalIssueComponentProperties(Citation.CitationJournalJournalIssueComponent 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.hasPublicationDateElement()) {
+ composeStringCore("publicationDate", element.getPublicationDateElement(), false);
+ composeStringExtras("publicationDate", element.getPublicationDateElement(), 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 {
+ composeBackboneElementProperties(element);
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
+ }
+ if (element.hasUrlElement()) {
+ composeUriCore("url", element.getUrlElement(), false);
+ composeUriExtras("url", element.getUrlElement(), false);
+ }
+ }
+
+ protected void composeCitationAlternativeAbstractComponent(String name, Citation.CitationAlternativeAbstractComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationAlternativeAbstractComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationAlternativeAbstractComponentProperties(Citation.CitationAlternativeAbstractComponent 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);
+ }
+ }
+
+ protected void composeCitationAuthorListComponent(String name, Citation.CitationAuthorListComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationAuthorListComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationAuthorListComponentProperties(Citation.CitationAuthorListComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasCompleteElement()) {
+ composeBooleanCore("complete", element.getCompleteElement(), false);
+ composeBooleanExtras("complete", element.getCompleteElement(), false);
+ }
+ if (element.hasAuthor()) {
+ openArray("author");
+ for (Citation.CitationAuthorListAuthorComponent e : element.getAuthor())
+ composeCitationAuthorListAuthorComponent(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composeCitationAuthorListAuthorComponent(String name, Citation.CitationAuthorListAuthorComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationAuthorListAuthorComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationAuthorListAuthorComponentProperties(Citation.CitationAuthorListAuthorComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasLastNameElement()) {
+ composeStringCore("lastName", element.getLastNameElement(), false);
+ composeStringExtras("lastName", element.getLastNameElement(), false);
+ }
+ if (element.hasForeNameElement()) {
+ composeStringCore("foreName", element.getForeNameElement(), false);
+ composeStringExtras("foreName", element.getForeNameElement(), false);
+ }
+ if (element.hasSuffixElement()) {
+ composeStringCore("suffix", element.getSuffixElement(), false);
+ composeStringExtras("suffix", element.getSuffixElement(), false);
+ }
+ if (element.hasInitialsElement()) {
+ composeStringCore("initials", element.getInitialsElement(), false);
+ composeStringExtras("initials", element.getInitialsElement(), false);
+ }
+ if (element.hasCollectiveNameElement()) {
+ composeStringCore("collectiveName", element.getCollectiveNameElement(), false);
+ composeStringExtras("collectiveName", element.getCollectiveNameElement(), false);
+ }
+ if (element.hasIdentifier()) {
+ openArray("identifier");
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier(null, e);
+ closeArray();
+ };
+ if (element.hasAffiliationInfo()) {
+ openArray("affiliationInfo");
+ for (Citation.CitationAuthorListAuthorAffiliationInfoComponent e : element.getAffiliationInfo())
+ composeCitationAuthorListAuthorAffiliationInfoComponent(null, e);
+ closeArray();
+ };
+ if (element.hasAddress()) {
+ openArray("address");
+ for (StringType e : element.getAddress())
+ composeStringCore(null, e, true);
+ closeArray();
+ if (anyHasExtras(element.getAddress())) {
+ openArray("_address");
+ for (StringType e : element.getAddress())
+ composeStringExtras(null, e, true);
+ closeArray();
+ }
+ };
+ if (element.hasTelecom()) {
+ openArray("telecom");
+ for (ContactPoint e : element.getTelecom())
+ composeContactPoint(null, e);
+ closeArray();
+ };
+ if (element.hasCorrespondingAuthorElement()) {
+ composeBooleanCore("correspondingAuthor", element.getCorrespondingAuthorElement(), false);
+ composeBooleanExtras("correspondingAuthor", element.getCorrespondingAuthorElement(), false);
+ }
+ if (element.hasListOrderElement()) {
+ composePositiveIntCore("listOrder", element.getListOrderElement(), false);
+ composePositiveIntExtras("listOrder", element.getListOrderElement(), false);
+ }
+ }
+
+ protected void composeCitationAuthorListAuthorAffiliationInfoComponent(String name, Citation.CitationAuthorListAuthorAffiliationInfoComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationAuthorListAuthorAffiliationInfoComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationAuthorListAuthorAffiliationInfoComponentProperties(Citation.CitationAuthorListAuthorAffiliationInfoComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasAffiliationElement()) {
+ composeStringCore("affiliation", element.getAffiliationElement(), false);
+ composeStringExtras("affiliation", element.getAffiliationElement(), false);
+ }
+ if (element.hasRoleElement()) {
+ composeStringCore("role", element.getRoleElement(), false);
+ composeStringExtras("role", element.getRoleElement(), false);
+ }
+ if (element.hasIdentifier()) {
+ openArray("identifier");
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composeCitationAuthorStringComponent(String name, Citation.CitationAuthorStringComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationAuthorStringComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationAuthorStringComponentProperties(Citation.CitationAuthorStringComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasSource()) {
+ composeCodeableConcept("source", element.getSource());
+ }
+ if (element.hasValueElement()) {
+ composeStringCore("value", element.getValueElement(), false);
+ composeStringExtras("value", element.getValueElement(), false);
+ }
+ }
+
+ protected void composeCitationContributorListComponent(String name, Citation.CitationContributorListComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationContributorListComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationContributorListComponentProperties(Citation.CitationContributorListComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasCompleteElement()) {
+ composeBooleanCore("complete", element.getCompleteElement(), false);
+ composeBooleanExtras("complete", element.getCompleteElement(), false);
+ }
+ if (element.hasContributor()) {
+ openArray("contributor");
+ for (Citation.CitationContributorListContributorComponent e : element.getContributor())
+ composeCitationContributorListContributorComponent(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composeCitationContributorListContributorComponent(String name, Citation.CitationContributorListContributorComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationContributorListContributorComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationContributorListContributorComponentProperties(Citation.CitationContributorListContributorComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasLastNameElement()) {
+ composeStringCore("lastName", element.getLastNameElement(), false);
+ composeStringExtras("lastName", element.getLastNameElement(), false);
+ }
+ if (element.hasForeNameElement()) {
+ composeStringCore("foreName", element.getForeNameElement(), false);
+ composeStringExtras("foreName", element.getForeNameElement(), false);
+ }
+ if (element.hasSuffixElement()) {
+ composeStringCore("suffix", element.getSuffixElement(), false);
+ composeStringExtras("suffix", element.getSuffixElement(), false);
+ }
+ if (element.hasInitialsElement()) {
+ composeStringCore("initials", element.getInitialsElement(), false);
+ composeStringExtras("initials", element.getInitialsElement(), false);
+ }
+ if (element.hasCollectiveNameElement()) {
+ composeStringCore("collectiveName", element.getCollectiveNameElement(), false);
+ composeStringExtras("collectiveName", element.getCollectiveNameElement(), false);
+ }
+ if (element.hasIdentifier()) {
+ openArray("identifier");
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier(null, e);
+ closeArray();
+ };
+ if (element.hasContribution()) {
+ openArray("contribution");
+ for (CodeableConcept e : element.getContribution())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ if (element.hasAffiliationInfo()) {
+ openArray("affiliationInfo");
+ for (Citation.CitationContributorListContributorAffiliationInfoComponent e : element.getAffiliationInfo())
+ composeCitationContributorListContributorAffiliationInfoComponent(null, e);
+ closeArray();
+ };
+ if (element.hasListOrderElement()) {
+ composePositiveIntCore("listOrder", element.getListOrderElement(), false);
+ composePositiveIntExtras("listOrder", element.getListOrderElement(), false);
+ }
+ }
+
+ protected void composeCitationContributorListContributorAffiliationInfoComponent(String name, Citation.CitationContributorListContributorAffiliationInfoComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeCitationContributorListContributorAffiliationInfoComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeCitationContributorListContributorAffiliationInfoComponentProperties(Citation.CitationContributorListContributorAffiliationInfoComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasAffiliationElement()) {
+ composeStringCore("affiliation", element.getAffiliationElement(), false);
+ composeStringExtras("affiliation", element.getAffiliationElement(), false);
+ }
+ if (element.hasRoleElement()) {
+ composeStringCore("role", element.getRoleElement(), false);
+ composeStringExtras("role", element.getRoleElement(), false);
+ }
+ if (element.hasIdentifier()) {
+ openArray("identifier");
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier(null, e);
+ closeArray();
+ };
+ }
+
+ 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());
+ }
+ }
+
+ 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.hasPublicationDateElement()) {
+ composeStringCore("publicationDate", element.getPublicationDateElement(), false);
+ composeStringExtras("publicationDate", element.getPublicationDateElement(), 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 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);
@@ -37626,6 +39477,9 @@ public class JsonParser extends JsonParserBase {
composeEnumerationCore("type", element.getTypeElement(), new ClinicalUseIssue.ClinicalUseIssueTypeEnumFactory(), false);
composeEnumerationExtras("type", element.getTypeElement(), new ClinicalUseIssue.ClinicalUseIssueTypeEnumFactory(), false);
}
+ if (element.hasCategory()) {
+ composeCodeableConcept("category", element.getCategory());
+ }
if (element.hasSubject()) {
openArray("subject");
for (Reference e : element.getSubject())
@@ -39326,8 +41180,8 @@ public class JsonParser extends JsonParserBase {
composeCodeableConcept(null, e);
closeArray();
};
- if (element.hasPatient()) {
- composeReference("patient", element.getPatient());
+ if (element.hasSubject()) {
+ composeReference("subject", element.getSubject());
}
if (element.hasDateTimeElement()) {
composeDateTimeCore("dateTime", element.getDateTimeElement(), false);
@@ -41064,6 +42918,10 @@ public class JsonParser extends JsonParserBase {
composeIdentifier(null, e);
closeArray();
};
+ if (element.hasDisplayNameElement()) {
+ composeStringCore("displayName", element.getDisplayNameElement(), false);
+ composeStringExtras("displayName", element.getDisplayNameElement(), false);
+ }
if (element.hasDefinition()) {
composeReference("definition", element.getDefinition());
}
@@ -41122,8 +42980,11 @@ public class JsonParser extends JsonParserBase {
composeStringExtras("partNumber", element.getPartNumberElement(), 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 (Device.DeviceSpecializationComponent e : element.getSpecialization())
@@ -41145,6 +43006,12 @@ public class JsonParser extends JsonParserBase {
if (element.hasPatient()) {
composeReference("patient", element.getPatient());
}
+ if (element.hasOperationalStatus()) {
+ composeDeviceOperationalStatusComponent("operationalStatus", element.getOperationalStatus());
+ }
+ if (element.hasAssociationStatus()) {
+ composeDeviceAssociationStatusComponent("associationStatus", element.getAssociationStatus());
+ }
if (element.hasOwner()) {
composeReference("owner", element.getOwner());
}
@@ -41302,6 +43169,48 @@ public class JsonParser extends JsonParserBase {
};
}
+ protected void composeDeviceOperationalStatusComponent(String name, Device.DeviceOperationalStatusComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeDeviceOperationalStatusComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeDeviceOperationalStatusComponentProperties(Device.DeviceOperationalStatusComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasValue()) {
+ composeCodeableConcept("value", element.getValue());
+ }
+ if (element.hasReason()) {
+ openArray("reason");
+ for (CodeableConcept e : element.getReason())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composeDeviceAssociationStatusComponent(String name, Device.DeviceAssociationStatusComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeDeviceAssociationStatusComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeDeviceAssociationStatusComponentProperties(Device.DeviceAssociationStatusComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasValue()) {
+ composeCodeableConcept("value", element.getValue());
+ }
+ if (element.hasReason()) {
+ openArray("reason");
+ for (CodeableConcept e : element.getReason())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ }
+
protected void composeDeviceDefinition(String name, DeviceDefinition element) throws IOException {
if (element != null) {
prop("resourceType", name);
@@ -41399,10 +43308,6 @@ public class JsonParser extends JsonParserBase {
composeContactPoint(null, e);
closeArray();
};
- if (element.hasUrlElement()) {
- composeUriCore("url", element.getUrlElement(), false);
- composeUriExtras("url", element.getUrlElement(), false);
- }
if (element.hasOnlineInformationElement()) {
composeUriCore("onlineInformation", element.getOnlineInformationElement(), false);
composeUriExtras("onlineInformation", element.getOnlineInformationElement(), false);
@@ -41703,7 +43608,7 @@ public class JsonParser extends JsonParserBase {
composeEnumerationExtras("priority", element.getPriorityElement(), new Enumerations.RequestPriorityEnumFactory(), false);
}
if (element.hasCode()) {
- composeType("code", element.getCode());
+ composeCodeableReference("code", element.getCode());
}
if (element.hasParameter()) {
openArray("parameter");
@@ -41808,6 +43713,12 @@ public class JsonParser extends JsonParserBase {
composeEnumerationCore("status", element.getStatusElement(), new DeviceUseStatement.DeviceUseStatementStatusEnumFactory(), false);
composeEnumerationExtras("status", element.getStatusElement(), new DeviceUseStatement.DeviceUseStatementStatusEnumFactory(), false);
}
+ if (element.hasCategory()) {
+ openArray("category");
+ for (CodeableConcept e : element.getCategory())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
if (element.hasSubject()) {
composeReference("subject", element.getSubject());
}
@@ -41817,18 +43728,30 @@ public class JsonParser extends JsonParserBase {
composeReference(null, e);
closeArray();
};
+ if (element.hasContext()) {
+ composeReference("context", element.getContext());
+ }
if (element.hasTiming()) {
composeType("timing", element.getTiming());
}
- if (element.hasRecordedOnElement()) {
- composeDateTimeCore("recordedOn", element.getRecordedOnElement(), false);
- composeDateTimeExtras("recordedOn", element.getRecordedOnElement(), false);
+ if (element.hasDateAssertedElement()) {
+ composeDateTimeCore("dateAsserted", element.getDateAssertedElement(), false);
+ composeDateTimeExtras("dateAsserted", element.getDateAssertedElement(), false);
}
- if (element.hasSource()) {
- composeReference("source", element.getSource());
+ if (element.hasUsageStatus()) {
+ composeCodeableConcept("usageStatus", element.getUsageStatus());
+ }
+ if (element.hasUsageReason()) {
+ openArray("usageReason");
+ for (CodeableConcept e : element.getUsageReason())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ if (element.hasInformationSource()) {
+ composeReference("informationSource", element.getInformationSource());
}
if (element.hasDevice()) {
- composeReference("device", element.getDevice());
+ composeCodeableReference("device", element.getDevice());
}
if (element.hasReason()) {
openArray("reason");
@@ -41837,7 +43760,7 @@ public class JsonParser extends JsonParserBase {
closeArray();
};
if (element.hasBodySite()) {
- composeCodeableConcept("bodySite", element.getBodySite());
+ composeCodeableReference("bodySite", element.getBodySite());
}
if (element.hasNote()) {
openArray("note");
@@ -42971,9 +44894,6 @@ public class JsonParser extends JsonParserBase {
composeAnnotation(null, e);
closeArray();
};
- if (element.hasReferentGroup()) {
- composeEvidenceReferentGroupComponent("referentGroup", element.getReferentGroup());
- }
if (element.hasVariableDefinition()) {
openArray("variableDefinition");
for (Evidence.EvidenceVariableDefinitionComponent e : element.getVariableDefinition())
@@ -43006,37 +44926,6 @@ public class JsonParser extends JsonParserBase {
};
}
- protected void composeEvidenceReferentGroupComponent(String name, Evidence.EvidenceReferentGroupComponent element) throws IOException {
- if (element != null) {
- open(name);
- composeEvidenceReferentGroupComponentProperties(element);
- close();
- }
- }
-
- protected void composeEvidenceReferentGroupComponentProperties(Evidence.EvidenceReferentGroupComponent element) throws IOException {
- composeBackboneElementProperties(element);
- if (element.hasDescriptionElement()) {
- composeMarkdownCore("description", element.getDescriptionElement(), false);
- composeMarkdownExtras("description", element.getDescriptionElement(), false);
- }
- if (element.hasNote()) {
- openArray("note");
- for (Annotation e : element.getNote())
- composeAnnotation(null, e);
- closeArray();
- };
- if (element.hasEvidenceSource()) {
- composeReference("evidenceSource", element.getEvidenceSource());
- }
- if (element.hasIntendedGroup()) {
- composeReference("intendedGroup", element.getIntendedGroup());
- }
- if (element.hasDirectnessMatch()) {
- composeCodeableConcept("directnessMatch", element.getDirectnessMatch());
- }
- }
-
protected void composeEvidenceVariableDefinitionComponent(String name, Evidence.EvidenceVariableDefinitionComponent element) throws IOException {
if (element != null) {
open(name);
@@ -43060,11 +44949,11 @@ public class JsonParser extends JsonParserBase {
if (element.hasVariableRole()) {
composeCodeableConcept("variableRole", element.getVariableRole());
}
- if (element.hasActualDefinition()) {
- composeReference("actualDefinition", element.getActualDefinition());
+ if (element.hasObserved()) {
+ composeReference("observed", element.getObserved());
}
- if (element.hasIntendedDefinition()) {
- composeReference("intendedDefinition", element.getIntendedDefinition());
+ if (element.hasIntended()) {
+ composeReference("intended", element.getIntended());
}
if (element.hasDirectnessMatch()) {
composeCodeableConcept("directnessMatch", element.getDirectnessMatch());
@@ -43133,6 +45022,99 @@ public class JsonParser extends JsonParserBase {
};
}
+ protected void composeEvidenceFocus(String name, EvidenceFocus element) throws IOException {
+ if (element != null) {
+ prop("resourceType", name);
+ composeEvidenceFocusProperties(element);
+ }
+ }
+
+ protected void composeEvidenceFocusProperties(EvidenceFocus element) throws IOException {
+ composeMetadataResourceProperties(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.hasStatusElement()) {
+ composeEnumerationCore("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false);
+ composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false);
+ }
+ if (element.hasUseContext()) {
+ openArray("useContext");
+ for (UsageContext e : element.getUseContext())
+ composeUsageContext(null, e);
+ closeArray();
+ };
+ if (element.hasDateElement()) {
+ composeDateTimeCore("date", element.getDateElement(), false);
+ composeDateTimeExtras("date", element.getDateElement(), false);
+ }
+ if (element.hasNote()) {
+ openArray("note");
+ for (Annotation e : element.getNote())
+ composeAnnotation(null, e);
+ closeArray();
+ };
+ if (element.hasCopyrightElement()) {
+ composeMarkdownCore("copyright", element.getCopyrightElement(), false);
+ composeMarkdownExtras("copyright", element.getCopyrightElement(), false);
+ }
+ if (element.hasCiteAs()) {
+ composeReference("citeAs", element.getCiteAs());
+ }
+ if (element.hasCharacteristic()) {
+ openArray("characteristic");
+ for (EvidenceFocus.EvidenceFocusCharacteristicComponent e : element.getCharacteristic())
+ composeEvidenceFocusCharacteristicComponent(null, e);
+ closeArray();
+ };
+ if (element.hasRelatedArtifact()) {
+ openArray("relatedArtifact");
+ for (RelatedArtifact e : element.getRelatedArtifact())
+ composeRelatedArtifact(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composeEvidenceFocusCharacteristicComponent(String name, EvidenceFocus.EvidenceFocusCharacteristicComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeEvidenceFocusCharacteristicComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeEvidenceFocusCharacteristicComponentProperties(EvidenceFocus.EvidenceFocusCharacteristicComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasCode()) {
+ composeCodeableConcept("code", element.getCode());
+ }
+ if (element.hasValue()) {
+ composeType("value", element.getValue());
+ }
+ if (element.hasExcludeElement()) {
+ composeBooleanCore("exclude", element.getExcludeElement(), false);
+ composeBooleanExtras("exclude", element.getExcludeElement(), false);
+ }
+ if (element.hasPeriod()) {
+ composePeriod("period", element.getPeriod());
+ }
+ }
+
protected void composeEvidenceVariable(String name, EvidenceVariable element) throws IOException {
if (element != null) {
prop("resourceType", name);
@@ -43271,6 +45253,10 @@ public class JsonParser extends JsonParserBase {
composeBooleanCore("actual", element.getActualElement(), false);
composeBooleanExtras("actual", element.getActualElement(), false);
}
+ if (element.hasCharacteristicCombinationElement()) {
+ composeEnumerationCore("characteristicCombination", element.getCharacteristicCombinationElement(), new EvidenceVariable.CharacteristicCombinationEnumFactory(), false);
+ composeEnumerationExtras("characteristicCombination", element.getCharacteristicCombinationElement(), new EvidenceVariable.CharacteristicCombinationEnumFactory(), false);
+ }
if (element.hasCharacteristic()) {
openArray("characteristic");
for (EvidenceVariable.EvidenceVariableCharacteristicComponent e : element.getCharacteristic())
@@ -43302,27 +45288,12 @@ public class JsonParser extends JsonParserBase {
if (element.hasDevice()) {
composeReference("device", element.getDevice());
}
- if (element.hasBooleanSet()) {
- openArray("booleanSet");
- for (StringType e : element.getBooleanSet())
- composeStringCore(null, e, true);
- closeArray();
- if (anyHasExtras(element.getBooleanSet())) {
- openArray("_booleanSet");
- for (StringType e : element.getBooleanSet())
- composeStringExtras(null, e, true);
- closeArray();
- }
- };
if (element.hasExcludeElement()) {
composeBooleanCore("exclude", element.getExcludeElement(), false);
composeBooleanExtras("exclude", element.getExcludeElement(), false);
}
- if (element.hasParticipantEffective()) {
- composeType("participantEffective", element.getParticipantEffective());
- }
if (element.hasTimeFromStart()) {
- composeDuration("timeFromStart", element.getTimeFromStart());
+ composeEvidenceVariableCharacteristicTimeFromStartComponent("timeFromStart", element.getTimeFromStart());
}
if (element.hasGroupMeasureElement()) {
composeEnumerationCore("groupMeasure", element.getGroupMeasureElement(), new EvidenceVariable.GroupMeasureEnumFactory(), false);
@@ -43330,6 +45301,34 @@ public class JsonParser extends JsonParserBase {
}
}
+ protected void composeEvidenceVariableCharacteristicTimeFromStartComponent(String name, EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeEvidenceVariableCharacteristicTimeFromStartComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeEvidenceVariableCharacteristicTimeFromStartComponentProperties(EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasDescriptionElement()) {
+ composeStringCore("description", element.getDescriptionElement(), false);
+ composeStringExtras("description", element.getDescriptionElement(), false);
+ }
+ if (element.hasQuantity()) {
+ composeQuantity("quantity", element.getQuantity());
+ }
+ if (element.hasRange()) {
+ composeRange("range", element.getRange());
+ }
+ if (element.hasNote()) {
+ openArray("note");
+ for (Annotation e : element.getNote())
+ composeAnnotation(null, e);
+ closeArray();
+ };
+ }
+
protected void composeExampleScenario(String name, ExampleScenario element) throws IOException {
if (element != null) {
prop("resourceType", name);
@@ -46108,11 +48107,13 @@ public class JsonParser extends JsonParserBase {
composeCodeableConcept(null, e);
closeArray();
};
- if (element.hasDoseNumber()) {
- composeType("doseNumber", element.getDoseNumber());
+ if (element.hasDoseNumberElement()) {
+ composeStringCore("doseNumber", element.getDoseNumberElement(), false);
+ composeStringExtras("doseNumber", element.getDoseNumberElement(), false);
}
- if (element.hasSeriesDoses()) {
- composeType("seriesDoses", element.getSeriesDoses());
+ if (element.hasSeriesDosesElement()) {
+ composeStringCore("seriesDoses", element.getSeriesDosesElement(), false);
+ composeStringExtras("seriesDoses", element.getSeriesDosesElement(), false);
}
}
@@ -46168,11 +48169,13 @@ public class JsonParser extends JsonParserBase {
composeStringCore("series", element.getSeriesElement(), false);
composeStringExtras("series", element.getSeriesElement(), false);
}
- if (element.hasDoseNumber()) {
- composeType("doseNumber", element.getDoseNumber());
+ if (element.hasDoseNumberElement()) {
+ composeStringCore("doseNumber", element.getDoseNumberElement(), false);
+ composeStringExtras("doseNumber", element.getDoseNumberElement(), false);
}
- if (element.hasSeriesDoses()) {
- composeType("seriesDoses", element.getSeriesDoses());
+ if (element.hasSeriesDosesElement()) {
+ composeStringCore("seriesDoses", element.getSeriesDosesElement(), false);
+ composeStringExtras("seriesDoses", element.getSeriesDosesElement(), false);
}
}
@@ -46260,11 +48263,13 @@ public class JsonParser extends JsonParserBase {
composeStringCore("series", element.getSeriesElement(), false);
composeStringExtras("series", element.getSeriesElement(), false);
}
- if (element.hasDoseNumber()) {
- composeType("doseNumber", element.getDoseNumber());
+ if (element.hasDoseNumberElement()) {
+ composeStringCore("doseNumber", element.getDoseNumberElement(), false);
+ composeStringExtras("doseNumber", element.getDoseNumberElement(), false);
}
- if (element.hasSeriesDoses()) {
- composeType("seriesDoses", element.getSeriesDoses());
+ if (element.hasSeriesDosesElement()) {
+ composeStringCore("seriesDoses", element.getSeriesDosesElement(), false);
+ composeStringExtras("seriesDoses", element.getSeriesDosesElement(), false);
}
if (element.hasSupportingImmunization()) {
openArray("supportingImmunization");
@@ -46745,6 +48750,16 @@ public class JsonParser extends JsonParserBase {
if (element.hasRole()) {
composeCodeableConcept("role", element.getRole());
}
+ if (element.hasFunction()) {
+ openArray("function");
+ for (CodeableConcept e : element.getFunction())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ if (element.hasDescriptionElement()) {
+ composeMarkdownCore("description", element.getDescriptionElement(), false);
+ composeMarkdownExtras("description", element.getDescriptionElement(), false);
+ }
if (element.hasAllergenicIndicatorElement()) {
composeBooleanCore("allergenicIndicator", element.getAllergenicIndicatorElement(), false);
composeBooleanExtras("allergenicIndicator", element.getAllergenicIndicatorElement(), false);
@@ -46809,12 +48824,20 @@ public class JsonParser extends JsonParserBase {
if (element.hasPresentationHighLimit()) {
composeRatio("presentationHighLimit", element.getPresentationHighLimit());
}
+ if (element.hasPresentationTextElement()) {
+ composeStringCore("presentationText", element.getPresentationTextElement(), false);
+ composeStringExtras("presentationText", element.getPresentationTextElement(), false);
+ }
if (element.hasConcentration()) {
composeRatio("concentration", element.getConcentration());
}
if (element.hasConcentrationHighLimit()) {
composeRatio("concentrationHighLimit", element.getConcentrationHighLimit());
}
+ if (element.hasConcentrationTextElement()) {
+ composeStringCore("concentrationText", element.getConcentrationTextElement(), false);
+ composeStringExtras("concentrationText", element.getConcentrationTextElement(), false);
+ }
if (element.hasMeasurementPointElement()) {
composeStringCore("measurementPoint", element.getMeasurementPointElement(), false);
composeStringExtras("measurementPoint", element.getMeasurementPointElement(), false);
@@ -47831,26 +49854,26 @@ public class JsonParser extends JsonParserBase {
composeReference(null, e);
closeArray();
};
- if (element.hasCharacteristic()) {
- openArray("characteristic");
- for (ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent e : element.getCharacteristic())
- composeManufacturedItemDefinitionCharacteristicComponent(null, e);
+ if (element.hasProperty()) {
+ openArray("property");
+ for (ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent e : element.getProperty())
+ composeManufacturedItemDefinitionPropertyComponent(null, e);
closeArray();
};
}
- protected void composeManufacturedItemDefinitionCharacteristicComponent(String name, ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent element) throws IOException {
+ protected void composeManufacturedItemDefinitionPropertyComponent(String name, ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent element) throws IOException {
if (element != null) {
open(name);
- composeManufacturedItemDefinitionCharacteristicComponentProperties(element);
+ composeManufacturedItemDefinitionPropertyComponentProperties(element);
close();
}
}
- protected void composeManufacturedItemDefinitionCharacteristicComponentProperties(ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent element) throws IOException {
+ protected void composeManufacturedItemDefinitionPropertyComponentProperties(ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent element) throws IOException {
composeBackboneElementProperties(element);
- if (element.hasCode()) {
- composeCodeableConcept("code", element.getCode());
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
}
if (element.hasValue()) {
composeType("value", element.getValue());
@@ -48456,7 +50479,7 @@ public class JsonParser extends JsonParserBase {
protected void composeMedicationIngredientComponentProperties(Medication.MedicationIngredientComponent element) throws IOException {
composeBackboneElementProperties(element);
if (element.hasItem()) {
- composeType("item", element.getItem());
+ composeCodeableReference("item", element.getItem());
}
if (element.hasIsActiveElement()) {
composeBooleanCore("isActive", element.getIsActiveElement(), false);
@@ -48555,7 +50578,7 @@ public class JsonParser extends JsonParserBase {
closeArray();
};
if (element.hasMedication()) {
- composeType("medication", element.getMedication());
+ composeCodeableReference("medication", element.getMedication());
}
if (element.hasSubject()) {
composeReference("subject", element.getSubject());
@@ -48695,7 +50718,7 @@ public class JsonParser extends JsonParserBase {
composeEnumerationExtras("status", element.getStatusElement(), new MedicationDispense.MedicationDispenseStatusCodesEnumFactory(), false);
}
if (element.hasStatusReason()) {
- composeType("statusReason", element.getStatusReason());
+ composeCodeableReference("statusReason", element.getStatusReason());
}
if (element.hasCategory()) {
openArray("category");
@@ -48704,7 +50727,7 @@ public class JsonParser extends JsonParserBase {
closeArray();
};
if (element.hasMedication()) {
- composeType("medication", element.getMedication());
+ composeCodeableReference("medication", element.getMedication());
}
if (element.hasSubject()) {
composeReference("subject", element.getSubject());
@@ -49030,7 +51053,7 @@ public class JsonParser extends JsonParserBase {
protected void composeMedicationKnowledgeIngredientComponentProperties(MedicationKnowledge.MedicationKnowledgeIngredientComponent element) throws IOException {
composeBackboneElementProperties(element);
if (element.hasItem()) {
- composeType("item", element.getItem());
+ composeCodeableReference("item", element.getItem());
}
if (element.hasIsActiveElement()) {
composeBooleanCore("isActive", element.getIsActiveElement(), false);
@@ -49099,7 +51122,7 @@ public class JsonParser extends JsonParserBase {
closeArray();
};
if (element.hasIndication()) {
- composeType("indication", element.getIndication());
+ composeCodeableReference("indication", element.getIndication());
}
if (element.hasPatientCharacteristic()) {
openArray("patientCharacteristic");
@@ -49140,21 +51163,12 @@ public class JsonParser extends JsonParserBase {
protected void composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentProperties(MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent element) throws IOException {
composeBackboneElementProperties(element);
- if (element.hasCharacteristic()) {
- composeType("characteristic", element.getCharacteristic());
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
}
if (element.hasValue()) {
- openArray("value");
- for (StringType e : element.getValue())
- composeStringCore(null, e, true);
- closeArray();
- if (anyHasExtras(element.getValue())) {
- openArray("_value");
- for (StringType e : element.getValue())
- composeStringExtras(null, e, true);
- closeArray();
- }
- };
+ composeType("value", element.getValue());
+ }
}
protected void composeMedicationKnowledgeMedicineClassificationComponent(String name, MedicationKnowledge.MedicationKnowledgeMedicineClassificationComponent element) throws IOException {
@@ -49359,7 +51373,7 @@ public class JsonParser extends JsonParserBase {
composeReference("informationSource", element.getInformationSource());
}
if (element.hasMedication()) {
- composeType("medication", element.getMedication());
+ composeCodeableReference("medication", element.getMedication());
}
if (element.hasSubject()) {
composeReference("subject", element.getSubject());
@@ -49590,7 +51604,7 @@ public class JsonParser extends JsonParserBase {
closeArray();
};
if (element.hasMedication()) {
- composeType("medication", element.getMedication());
+ composeCodeableReference("medication", element.getMedication());
}
if (element.hasSubject()) {
composeReference("subject", element.getSubject());
@@ -49661,14 +51675,18 @@ public class JsonParser extends JsonParserBase {
composeCodeableConcept("type", element.getType());
}
if (element.hasDomain()) {
- composeCoding("domain", element.getDomain());
+ composeCodeableConcept("domain", element.getDomain());
}
if (element.hasVersionElement()) {
composeStringCore("version", element.getVersionElement(), false);
composeStringExtras("version", element.getVersionElement(), false);
}
if (element.hasStatus()) {
- composeCoding("status", element.getStatus());
+ composeCodeableConcept("status", element.getStatus());
+ }
+ if (element.hasStatusDateElement()) {
+ composeDateTimeCore("statusDate", element.getStatusDateElement(), false);
+ composeDateTimeExtras("statusDate", element.getStatusDateElement(), false);
}
if (element.hasDescriptionElement()) {
composeMarkdownCore("description", element.getDescriptionElement(), false);
@@ -49702,6 +51720,12 @@ public class JsonParser extends JsonParserBase {
composeCodeableConcept(null, e);
closeArray();
};
+ if (element.hasCharacteristic()) {
+ openArray("characteristic");
+ for (CodeableConcept e : element.getCharacteristic())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
if (element.hasMarketingStatus()) {
openArray("marketingStatus");
for (MarketingStatus e : element.getMarketingStatus())
@@ -49803,7 +51827,7 @@ public class JsonParser extends JsonParserBase {
composeStringExtras("productName", element.getProductNameElement(), false);
}
if (element.hasType()) {
- composeCoding("type", element.getType());
+ composeCodeableConcept("type", element.getType());
}
if (element.hasNamePart()) {
openArray("namePart");
@@ -49834,7 +51858,7 @@ public class JsonParser extends JsonParserBase {
composeStringExtras("part", element.getPartElement(), false);
}
if (element.hasType()) {
- composeCoding("type", element.getType());
+ composeCodeableConcept("type", element.getType());
}
}
@@ -49873,7 +51897,7 @@ public class JsonParser extends JsonParserBase {
composeType("product", element.getProduct());
}
if (element.hasType()) {
- composeCoding("type", element.getType());
+ composeCodeableConcept("type", element.getType());
}
}
@@ -49888,7 +51912,7 @@ public class JsonParser extends JsonParserBase {
protected void composeMedicinalProductDefinitionManufacturingBusinessOperationComponentProperties(MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent element) throws IOException {
composeBackboneElementProperties(element);
if (element.hasType()) {
- composeType("type", element.getType());
+ composeCodeableReference("type", element.getType());
}
if (element.hasEffectiveDate()) {
composePeriod("effectiveDate", element.getEffectiveDate());
@@ -50782,6 +52806,30 @@ public class JsonParser extends JsonParserBase {
composeIdentifier(null, e);
closeArray();
};
+ if (element.hasInstantiatesCanonical()) {
+ openArray("instantiatesCanonical");
+ for (CanonicalType e : element.getInstantiatesCanonical())
+ composeCanonicalCore(null, e, true);
+ closeArray();
+ if (anyHasExtras(element.getInstantiatesCanonical())) {
+ openArray("_instantiatesCanonical");
+ for (CanonicalType e : element.getInstantiatesCanonical())
+ composeCanonicalExtras(null, e, true);
+ closeArray();
+ }
+ };
+ if (element.hasInstantiatesUri()) {
+ openArray("instantiatesUri");
+ for (UriType e : element.getInstantiatesUri())
+ composeUriCore(null, e, true);
+ closeArray();
+ if (anyHasExtras(element.getInstantiatesUri())) {
+ openArray("_instantiatesUri");
+ for (UriType e : element.getInstantiatesUri())
+ composeUriExtras(null, e, true);
+ closeArray();
+ }
+ };
if (element.hasBasedOn()) {
openArray("basedOn");
for (Reference e : element.getBasedOn())
@@ -50795,8 +52843,8 @@ public class JsonParser extends JsonParserBase {
closeArray();
};
if (element.hasStatusElement()) {
- composeEnumerationCore("status", element.getStatusElement(), new NutritionIntake.NutritionIntakeStatusCodesEnumFactory(), false);
- composeEnumerationExtras("status", element.getStatusElement(), new NutritionIntake.NutritionIntakeStatusCodesEnumFactory(), false);
+ composeEnumerationCore("status", element.getStatusElement(), new Enumerations.EventStatusEnumFactory(), false);
+ composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.EventStatusEnumFactory(), false);
}
if (element.hasStatusReason()) {
openArray("statusReason");
@@ -50804,12 +52852,25 @@ public class JsonParser extends JsonParserBase {
composeCodeableConcept(null, e);
closeArray();
};
- if (element.hasCategory()) {
- openArray("category");
- for (CodeableConcept e : element.getCategory())
- composeCodeableConcept(null, e);
- closeArray();
- };
+ if (element.hasCode()) {
+ composeCodeableConcept("code", element.getCode());
+ }
+ if (element.hasSubject()) {
+ composeReference("subject", element.getSubject());
+ }
+ if (element.hasEncounter()) {
+ composeReference("encounter", element.getEncounter());
+ }
+ if (element.hasOccurrence()) {
+ composeType("occurrence", element.getOccurrence());
+ }
+ if (element.hasRecordedElement()) {
+ composeDateTimeCore("recorded", element.getRecordedElement(), false);
+ composeDateTimeExtras("recorded", element.getRecordedElement(), false);
+ }
+ if (element.hasReported()) {
+ composeType("reported", element.getReported());
+ }
if (element.hasConsumedItem()) {
openArray("consumedItem");
for (NutritionIntake.NutritionIntakeConsumedItemComponent e : element.getConsumedItem())
@@ -50822,21 +52883,14 @@ public class JsonParser extends JsonParserBase {
composeNutritionIntakeIngredientLabelComponent(null, e);
closeArray();
};
- if (element.hasSubject()) {
- composeReference("subject", element.getSubject());
- }
- if (element.hasEncounter()) {
- composeReference("encounter", element.getEncounter());
- }
- if (element.hasEffective()) {
- composeType("effective", element.getEffective());
- }
- if (element.hasDateAssertedElement()) {
- composeDateTimeCore("dateAsserted", element.getDateAssertedElement(), false);
- composeDateTimeExtras("dateAsserted", element.getDateAssertedElement(), false);
- }
- if (element.hasInformationSource()) {
- composeReference("informationSource", element.getInformationSource());
+ if (element.hasPerformer()) {
+ openArray("performer");
+ for (NutritionIntake.NutritionIntakePerformerComponent e : element.getPerformer())
+ composeNutritionIntakePerformerComponent(null, e);
+ closeArray();
+ };
+ if (element.hasLocation()) {
+ composeReference("location", element.getLocation());
}
if (element.hasDerivedFrom()) {
openArray("derivedFrom");
@@ -50844,9 +52898,9 @@ public class JsonParser extends JsonParserBase {
composeReference(null, e);
closeArray();
};
- if (element.hasReasonCode()) {
- openArray("reasonCode");
- for (CodeableReference e : element.getReasonCode())
+ if (element.hasReason()) {
+ openArray("reason");
+ for (CodeableReference e : element.getReason())
composeCodeableReference(null, e);
closeArray();
};
@@ -50872,7 +52926,7 @@ public class JsonParser extends JsonParserBase {
composeCodeableConcept("type", element.getType());
}
if (element.hasNutritionProduct()) {
- composeCodeableConcept("nutritionProduct", element.getNutritionProduct());
+ composeCodeableReference("nutritionProduct", element.getNutritionProduct());
}
if (element.hasSchedule()) {
composeTiming("schedule", element.getSchedule());
@@ -50903,13 +52957,31 @@ public class JsonParser extends JsonParserBase {
protected void composeNutritionIntakeIngredientLabelComponentProperties(NutritionIntake.NutritionIntakeIngredientLabelComponent element) throws IOException {
composeBackboneElementProperties(element);
if (element.hasNutrient()) {
- composeCodeableConcept("nutrient", element.getNutrient());
+ composeCodeableReference("nutrient", element.getNutrient());
}
if (element.hasAmount()) {
composeQuantity("amount", element.getAmount());
}
}
+ protected void composeNutritionIntakePerformerComponent(String name, NutritionIntake.NutritionIntakePerformerComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeNutritionIntakePerformerComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeNutritionIntakePerformerComponentProperties(NutritionIntake.NutritionIntakePerformerComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasFunction()) {
+ composeCodeableConcept("function", element.getFunction());
+ }
+ if (element.hasActor()) {
+ composeReference("actor", element.getActor());
+ }
+ }
+
protected void composeNutritionOrder(String name, NutritionOrder element) throws IOException {
if (element != null) {
prop("resourceType", name);
@@ -51200,6 +53272,162 @@ public class JsonParser extends JsonParserBase {
}
}
+ protected void composeNutritionProduct(String name, NutritionProduct element) throws IOException {
+ if (element != null) {
+ prop("resourceType", name);
+ composeNutritionProductProperties(element);
+ }
+ }
+
+ protected void composeNutritionProductProperties(NutritionProduct element) throws IOException {
+ composeDomainResourceProperties(element);
+ if (element.hasStatusElement()) {
+ composeEnumerationCore("status", element.getStatusElement(), new NutritionProduct.NutritionProductStatusEnumFactory(), false);
+ composeEnumerationExtras("status", element.getStatusElement(), new NutritionProduct.NutritionProductStatusEnumFactory(), false);
+ }
+ if (element.hasCategory()) {
+ openArray("category");
+ for (CodeableConcept e : element.getCategory())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ if (element.hasCode()) {
+ composeCodeableConcept("code", element.getCode());
+ }
+ if (element.hasManufacturer()) {
+ openArray("manufacturer");
+ for (Reference e : element.getManufacturer())
+ composeReference(null, e);
+ closeArray();
+ };
+ if (element.hasNutrient()) {
+ openArray("nutrient");
+ for (NutritionProduct.NutritionProductNutrientComponent e : element.getNutrient())
+ composeNutritionProductNutrientComponent(null, e);
+ closeArray();
+ };
+ if (element.hasIngredient()) {
+ openArray("ingredient");
+ for (NutritionProduct.NutritionProductIngredientComponent e : element.getIngredient())
+ composeNutritionProductIngredientComponent(null, e);
+ closeArray();
+ };
+ if (element.hasKnownAllergen()) {
+ openArray("knownAllergen");
+ for (CodeableReference e : element.getKnownAllergen())
+ composeCodeableReference(null, e);
+ closeArray();
+ };
+ if (element.hasProductCharacteristic()) {
+ openArray("productCharacteristic");
+ for (NutritionProduct.NutritionProductProductCharacteristicComponent e : element.getProductCharacteristic())
+ composeNutritionProductProductCharacteristicComponent(null, e);
+ closeArray();
+ };
+ if (element.hasInstance()) {
+ composeNutritionProductInstanceComponent("instance", element.getInstance());
+ }
+ if (element.hasNote()) {
+ openArray("note");
+ for (Annotation e : element.getNote())
+ composeAnnotation(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composeNutritionProductNutrientComponent(String name, NutritionProduct.NutritionProductNutrientComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeNutritionProductNutrientComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeNutritionProductNutrientComponentProperties(NutritionProduct.NutritionProductNutrientComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasItem()) {
+ composeCodeableReference("item", element.getItem());
+ }
+ if (element.hasAmount()) {
+ openArray("amount");
+ for (Ratio e : element.getAmount())
+ composeRatio(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composeNutritionProductIngredientComponent(String name, NutritionProduct.NutritionProductIngredientComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeNutritionProductIngredientComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeNutritionProductIngredientComponentProperties(NutritionProduct.NutritionProductIngredientComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasItem()) {
+ composeCodeableReference("item", element.getItem());
+ }
+ if (element.hasAmount()) {
+ openArray("amount");
+ for (Ratio e : element.getAmount())
+ composeRatio(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composeNutritionProductProductCharacteristicComponent(String name, NutritionProduct.NutritionProductProductCharacteristicComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeNutritionProductProductCharacteristicComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeNutritionProductProductCharacteristicComponentProperties(NutritionProduct.NutritionProductProductCharacteristicComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
+ }
+ if (element.hasValue()) {
+ composeType("value", element.getValue());
+ }
+ }
+
+ protected void composeNutritionProductInstanceComponent(String name, NutritionProduct.NutritionProductInstanceComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeNutritionProductInstanceComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeNutritionProductInstanceComponentProperties(NutritionProduct.NutritionProductInstanceComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasQuantity()) {
+ composeQuantity("quantity", element.getQuantity());
+ }
+ if (element.hasIdentifier()) {
+ openArray("identifier");
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier(null, e);
+ closeArray();
+ };
+ if (element.hasLotNumberElement()) {
+ composeStringCore("lotNumber", element.getLotNumberElement(), false);
+ composeStringExtras("lotNumber", element.getLotNumberElement(), false);
+ }
+ if (element.hasExpiryElement()) {
+ composeDateTimeCore("expiry", element.getExpiryElement(), false);
+ composeDateTimeExtras("expiry", element.getExpiryElement(), false);
+ }
+ if (element.hasUseByElement()) {
+ composeDateTimeCore("useBy", element.getUseByElement(), false);
+ composeDateTimeExtras("useBy", element.getUseByElement(), false);
+ }
+ }
+
protected void composeObservation(String name, Observation element) throws IOException {
if (element != null) {
prop("resourceType", name);
@@ -52198,15 +54426,26 @@ public class JsonParser extends JsonParserBase {
composeIdentifier(null, e);
closeArray();
};
+ if (element.hasNameElement()) {
+ composeStringCore("name", element.getNameElement(), false);
+ composeStringExtras("name", element.getNameElement(), false);
+ }
if (element.hasSubject()) {
openArray("subject");
for (Reference e : element.getSubject())
composeReference(null, e);
closeArray();
};
+ if (element.hasStatus()) {
+ composeCodeableConcept("status", element.getStatus());
+ }
+ if (element.hasStatusDateElement()) {
+ composeDateTimeCore("statusDate", element.getStatusDateElement(), false);
+ composeDateTimeExtras("statusDate", element.getStatusDateElement(), false);
+ }
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.hasLegalStatusOfSupply()) {
composeCodeableConcept("legalStatusOfSupply", element.getLegalStatusOfSupply());
@@ -52217,6 +54456,12 @@ public class JsonParser extends JsonParserBase {
composeMarketingStatus(null, e);
closeArray();
};
+ if (element.hasCharacteristic()) {
+ openArray("characteristic");
+ for (CodeableConcept e : element.getCharacteristic())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
if (element.hasCopackagedIndicatorElement()) {
composeBooleanCore("copackagedIndicator", element.getCopackagedIndicatorElement(), false);
composeBooleanExtras("copackagedIndicator", element.getCopackagedIndicatorElement(), false);
@@ -52281,8 +54526,9 @@ public class JsonParser extends JsonParserBase {
if (element.hasType()) {
composeCodeableConcept("type", element.getType());
}
- if (element.hasQuantity()) {
- composeQuantity("quantity", element.getQuantity());
+ if (element.hasQuantityElement()) {
+ composeIntegerCore("quantity", element.getQuantityElement(), false);
+ composeIntegerExtras("quantity", element.getQuantityElement(), false);
}
if (element.hasMaterial()) {
openArray("material");
@@ -52308,10 +54554,10 @@ public class JsonParser extends JsonParserBase {
composeReference(null, e);
closeArray();
};
- if (element.hasCharacteristic()) {
- openArray("characteristic");
- for (PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent e : element.getCharacteristic())
- composePackagedProductDefinitionPackageCharacteristicComponent(null, e);
+ if (element.hasProperty()) {
+ openArray("property");
+ for (PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent e : element.getProperty())
+ composePackagedProductDefinitionPackagePropertyComponent(null, e);
closeArray();
};
if (element.hasContainedItem()) {
@@ -52328,18 +54574,18 @@ public class JsonParser extends JsonParserBase {
};
}
- protected void composePackagedProductDefinitionPackageCharacteristicComponent(String name, PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent element) throws IOException {
+ protected void composePackagedProductDefinitionPackagePropertyComponent(String name, PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent element) throws IOException {
if (element != null) {
open(name);
- composePackagedProductDefinitionPackageCharacteristicComponentProperties(element);
+ composePackagedProductDefinitionPackagePropertyComponentProperties(element);
close();
}
}
- protected void composePackagedProductDefinitionPackageCharacteristicComponentProperties(PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent element) throws IOException {
+ protected void composePackagedProductDefinitionPackagePropertyComponentProperties(PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent element) throws IOException {
composeBackboneElementProperties(element);
- if (element.hasCode()) {
- composeCodeableConcept("code", element.getCode());
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
}
if (element.hasValue()) {
composeType("value", element.getValue());
@@ -52767,6 +55013,123 @@ public class JsonParser extends JsonParserBase {
}
}
+ protected void composePermission(String name, Permission element) throws IOException {
+ if (element != null) {
+ prop("resourceType", name);
+ composePermissionProperties(element);
+ }
+ }
+
+ protected void composePermissionProperties(Permission element) throws IOException {
+ composeDomainResourceProperties(element);
+ if (element.hasStatusElement()) {
+ composeEnumerationCore("status", element.getStatusElement(), new Permission.PermissionStatusEnumFactory(), false);
+ composeEnumerationExtras("status", element.getStatusElement(), new Permission.PermissionStatusEnumFactory(), false);
+ }
+ if (element.hasIntent()) {
+ composeCodeableConcept("intent", element.getIntent());
+ }
+ if (element.hasAsserter()) {
+ composeReference("asserter", element.getAsserter());
+ }
+ if (element.hasAssertionDate()) {
+ openArray("assertionDate");
+ for (DateTimeType e : element.getAssertionDate())
+ composeDateTimeCore(null, e, true);
+ closeArray();
+ if (anyHasExtras(element.getAssertionDate())) {
+ openArray("_assertionDate");
+ for (DateTimeType e : element.getAssertionDate())
+ composeDateTimeExtras(null, e, true);
+ closeArray();
+ }
+ };
+ if (element.hasValidity()) {
+ composePeriod("validity", element.getValidity());
+ }
+ if (element.hasPurpose()) {
+ openArray("purpose");
+ for (CodeableConcept e : element.getPurpose())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ if (element.hasDataScope()) {
+ openArray("dataScope");
+ for (Expression e : element.getDataScope())
+ composeExpression(null, e);
+ closeArray();
+ };
+ if (element.hasProcessingActivity()) {
+ openArray("processingActivity");
+ for (Permission.PermissionProcessingActivityComponent e : element.getProcessingActivity())
+ composePermissionProcessingActivityComponent(null, e);
+ closeArray();
+ };
+ if (element.hasJustification()) {
+ composePermissionJustificationComponent("justification", element.getJustification());
+ }
+ if (element.hasUsageLimitations()) {
+ openArray("usageLimitations");
+ for (CodeableConcept e : element.getUsageLimitations())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composePermissionProcessingActivityComponent(String name, Permission.PermissionProcessingActivityComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composePermissionProcessingActivityComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composePermissionProcessingActivityComponentProperties(Permission.PermissionProcessingActivityComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasPartyReference()) {
+ openArray("partyReference");
+ for (Reference e : element.getPartyReference())
+ composeReference(null, e);
+ closeArray();
+ };
+ if (element.hasPartyCodeableConcept()) {
+ openArray("partyCodeableConcept");
+ for (CodeableConcept e : element.getPartyCodeableConcept())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ if (element.hasPurpose()) {
+ openArray("purpose");
+ for (CodeableConcept e : element.getPurpose())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composePermissionJustificationComponent(String name, Permission.PermissionJustificationComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composePermissionJustificationComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composePermissionJustificationComponentProperties(Permission.PermissionJustificationComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasEvidence()) {
+ openArray("evidence");
+ for (Reference e : element.getEvidence())
+ composeReference(null, e);
+ closeArray();
+ };
+ if (element.hasGrounds()) {
+ openArray("grounds");
+ for (CodeableConcept e : element.getGrounds())
+ composeCodeableConcept(null, e);
+ closeArray();
+ };
+ }
+
protected void composePerson(String name, Person element) throws IOException {
if (element != null) {
prop("resourceType", name);
@@ -54261,6 +56624,12 @@ public class JsonParser extends JsonParserBase {
if (element.hasValidityPeriod()) {
composePeriod("validityPeriod", element.getValidityPeriod());
}
+ if (element.hasIndication()) {
+ composeType("indication", element.getIndication());
+ }
+ if (element.hasIntendedUse()) {
+ composeCodeableConcept("intendedUse", element.getIntendedUse());
+ }
if (element.hasBasis()) {
openArray("basis");
for (CodeableConcept e : element.getBasis())
@@ -56567,8 +58936,8 @@ public class JsonParser extends JsonParserBase {
composeStringExtras("name", element.getNameElement(), false);
}
if (element.hasStatusElement()) {
- composeEnumerationCore("status", element.getStatusElement(), new Subscription.SubscriptionStatusEnumFactory(), false);
- composeEnumerationExtras("status", element.getStatusElement(), new Subscription.SubscriptionStatusEnumFactory(), false);
+ composeEnumerationCore("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory(), false);
+ composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory(), false);
}
if (element.hasTopic()) {
composeReference("topic", element.getTopic());
@@ -56599,51 +58968,8 @@ public class JsonParser extends JsonParserBase {
composeCodeableConcept(null, e);
closeArray();
};
- if (element.hasEventCountElement()) {
- composeUnsignedIntCore("eventCount", element.getEventCountElement(), false);
- composeUnsignedIntExtras("eventCount", element.getEventCountElement(), false);
- }
- if (element.hasChannel()) {
- composeSubscriptionChannelComponent("channel", element.getChannel());
- }
- }
-
- protected void composeSubscriptionFilterByComponent(String name, Subscription.SubscriptionFilterByComponent element) throws IOException {
- if (element != null) {
- open(name);
- composeSubscriptionFilterByComponentProperties(element);
- close();
- }
- }
-
- protected void composeSubscriptionFilterByComponentProperties(Subscription.SubscriptionFilterByComponent element) throws IOException {
- composeBackboneElementProperties(element);
- if (element.hasNameElement()) {
- composeStringCore("name", element.getNameElement(), false);
- composeStringExtras("name", element.getNameElement(), false);
- }
- if (element.hasMatchTypeElement()) {
- composeEnumerationCore("matchType", element.getMatchTypeElement(), new Subscription.SubscriptionFilterByMatchTypeEnumFactory(), false);
- composeEnumerationExtras("matchType", element.getMatchTypeElement(), new Subscription.SubscriptionFilterByMatchTypeEnumFactory(), false);
- }
- if (element.hasValueElement()) {
- composeStringCore("value", element.getValueElement(), false);
- composeStringExtras("value", element.getValueElement(), false);
- }
- }
-
- protected void composeSubscriptionChannelComponent(String name, Subscription.SubscriptionChannelComponent element) throws IOException {
- if (element != null) {
- open(name);
- composeSubscriptionChannelComponentProperties(element);
- close();
- }
- }
-
- protected void composeSubscriptionChannelComponentProperties(Subscription.SubscriptionChannelComponent element) throws IOException {
- composeBackboneElementProperties(element);
- if (element.hasType()) {
- composeCodeableConcept("type", element.getType());
+ if (element.hasChannelType()) {
+ composeCoding("channelType", element.getChannelType());
}
if (element.hasEndpointElement()) {
composeUrlCore("endpoint", element.getEndpointElement(), false);
@@ -56665,21 +58991,10 @@ public class JsonParser extends JsonParserBase {
composeUnsignedIntCore("heartbeatPeriod", element.getHeartbeatPeriodElement(), false);
composeUnsignedIntExtras("heartbeatPeriod", element.getHeartbeatPeriodElement(), false);
}
- if (element.hasPayload()) {
- composeSubscriptionChannelPayloadComponent("payload", element.getPayload());
+ if (element.hasTimeoutElement()) {
+ composeUnsignedIntCore("timeout", element.getTimeoutElement(), false);
+ composeUnsignedIntExtras("timeout", element.getTimeoutElement(), false);
}
- }
-
- protected void composeSubscriptionChannelPayloadComponent(String name, Subscription.SubscriptionChannelPayloadComponent element) throws IOException {
- if (element != null) {
- open(name);
- composeSubscriptionChannelPayloadComponentProperties(element);
- close();
- }
- }
-
- protected void composeSubscriptionChannelPayloadComponentProperties(Subscription.SubscriptionChannelPayloadComponent element) throws IOException {
- composeBackboneElementProperties(element);
if (element.hasContentTypeElement()) {
composeCodeCore("contentType", element.getContentTypeElement(), false);
composeCodeExtras("contentType", element.getContentTypeElement(), false);
@@ -56690,6 +59005,292 @@ public class JsonParser extends JsonParserBase {
}
}
+ protected void composeSubscriptionFilterByComponent(String name, Subscription.SubscriptionFilterByComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeSubscriptionFilterByComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeSubscriptionFilterByComponentProperties(Subscription.SubscriptionFilterByComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasSearchParamNameElement()) {
+ composeStringCore("searchParamName", element.getSearchParamNameElement(), false);
+ composeStringExtras("searchParamName", element.getSearchParamNameElement(), false);
+ }
+ if (element.hasSearchModifierElement()) {
+ composeEnumerationCore("searchModifier", element.getSearchModifierElement(), new Enumerations.SubscriptionSearchModifierEnumFactory(), false);
+ composeEnumerationExtras("searchModifier", element.getSearchModifierElement(), new Enumerations.SubscriptionSearchModifierEnumFactory(), false);
+ }
+ if (element.hasValueElement()) {
+ composeStringCore("value", element.getValueElement(), false);
+ composeStringExtras("value", element.getValueElement(), false);
+ }
+ }
+
+ protected void composeSubscriptionStatus(String name, SubscriptionStatus element) throws IOException {
+ if (element != null) {
+ prop("resourceType", name);
+ composeSubscriptionStatusProperties(element);
+ }
+ }
+
+ protected void composeSubscriptionStatusProperties(SubscriptionStatus element) throws IOException {
+ composeDomainResourceProperties(element);
+ if (element.hasNotificationTypeElement()) {
+ composeEnumerationCore("notificationType", element.getNotificationTypeElement(), new SubscriptionStatus.SubscriptionNotificationTypeEnumFactory(), false);
+ composeEnumerationExtras("notificationType", element.getNotificationTypeElement(), new SubscriptionStatus.SubscriptionNotificationTypeEnumFactory(), false);
+ }
+ if (element.hasEventsSinceSubscriptionStartElement()) {
+ composeInteger64Core("eventsSinceSubscriptionStart", element.getEventsSinceSubscriptionStartElement(), false);
+ composeInteger64Extras("eventsSinceSubscriptionStart", element.getEventsSinceSubscriptionStartElement(), false);
+ }
+ if (element.hasEventsInNotificationElement()) {
+ composeIntegerCore("eventsInNotification", element.getEventsInNotificationElement(), false);
+ composeIntegerExtras("eventsInNotification", element.getEventsInNotificationElement(), false);
+ }
+ 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.hasTopic()) {
+ composeReference("topic", element.getTopic());
+ }
+ }
+
+ protected void composeSubscriptionTopic(String name, SubscriptionTopic element) throws IOException {
+ if (element != null) {
+ prop("resourceType", name);
+ composeSubscriptionTopicProperties(element);
+ }
+ }
+
+ protected void composeSubscriptionTopicProperties(SubscriptionTopic 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.hasTitleElement()) {
+ composeStringCore("title", element.getTitleElement(), false);
+ composeStringExtras("title", element.getTitleElement(), false);
+ }
+ if (element.hasDerivedFromCanonical()) {
+ openArray("derivedFromCanonical");
+ for (CanonicalType e : element.getDerivedFromCanonical())
+ composeCanonicalCore(null, e, true);
+ closeArray();
+ if (anyHasExtras(element.getDerivedFromCanonical())) {
+ openArray("_derivedFromCanonical");
+ for (CanonicalType e : element.getDerivedFromCanonical())
+ composeCanonicalExtras(null, e, true);
+ closeArray();
+ }
+ };
+ if (element.hasDerivedFromUri()) {
+ openArray("derivedFromUri");
+ for (UriType e : element.getDerivedFromUri())
+ composeUriCore(null, e, true);
+ 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);
+ }
+ 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.hasPublisher()) {
+ composeReference("publisher", element.getPublisher());
+ }
+ 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.hasResourceTrigger()) {
+ composeSubscriptionTopicResourceTriggerComponent("resourceTrigger", element.getResourceTrigger());
+ }
+ if (element.hasCanFilterBy()) {
+ openArray("canFilterBy");
+ for (SubscriptionTopic.SubscriptionTopicCanFilterByComponent e : element.getCanFilterBy())
+ composeSubscriptionTopicCanFilterByComponent(null, e);
+ closeArray();
+ };
+ }
+
+ protected void composeSubscriptionTopicResourceTriggerComponent(String name, SubscriptionTopic.SubscriptionTopicResourceTriggerComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeSubscriptionTopicResourceTriggerComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeSubscriptionTopicResourceTriggerComponentProperties(SubscriptionTopic.SubscriptionTopicResourceTriggerComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasDescriptionElement()) {
+ composeStringCore("description", element.getDescriptionElement(), false);
+ composeStringExtras("description", element.getDescriptionElement(), false);
+ }
+ if (element.hasResourceType()) {
+ openArray("resourceType");
+ for (CodeType e : element.getResourceType())
+ composeCodeCore(null, e, true);
+ closeArray();
+ if (anyHasExtras(element.getResourceType())) {
+ openArray("_resourceType");
+ for (CodeType e : element.getResourceType())
+ composeCodeExtras(null, e, true);
+ closeArray();
+ }
+ };
+ if (element.hasMethodCriteria()) {
+ openArray("methodCriteria");
+ for (Enumeration e : element.getMethodCriteria())
+ composeEnumerationCore(null, e, new SubscriptionTopic.InteractionTriggerEnumFactory(), true);
+ closeArray();
+ if (anyHasExtras(element.getMethodCriteria())) {
+ openArray("_methodCriteria");
+ for (Enumeration e : element.getMethodCriteria())
+ composeEnumerationExtras(null, e, new SubscriptionTopic.InteractionTriggerEnumFactory(), true);
+ closeArray();
+ }
+ };
+ if (element.hasQueryCriteria()) {
+ composeSubscriptionTopicResourceTriggerQueryCriteriaComponent("queryCriteria", element.getQueryCriteria());
+ }
+ if (element.hasFhirPathCriteria()) {
+ openArray("fhirPathCriteria");
+ for (StringType e : element.getFhirPathCriteria())
+ composeStringCore(null, e, true);
+ closeArray();
+ if (anyHasExtras(element.getFhirPathCriteria())) {
+ openArray("_fhirPathCriteria");
+ for (StringType e : element.getFhirPathCriteria())
+ composeStringExtras(null, e, true);
+ closeArray();
+ }
+ };
+ }
+
+ protected void composeSubscriptionTopicResourceTriggerQueryCriteriaComponent(String name, SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeSubscriptionTopicResourceTriggerQueryCriteriaComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeSubscriptionTopicResourceTriggerQueryCriteriaComponentProperties(SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasPreviousElement()) {
+ composeStringCore("previous", element.getPreviousElement(), false);
+ composeStringExtras("previous", element.getPreviousElement(), false);
+ }
+ if (element.hasCurrentElement()) {
+ composeStringCore("current", element.getCurrentElement(), false);
+ composeStringExtras("current", element.getCurrentElement(), false);
+ }
+ if (element.hasRequireBothElement()) {
+ composeBooleanCore("requireBoth", element.getRequireBothElement(), false);
+ composeBooleanExtras("requireBoth", element.getRequireBothElement(), false);
+ }
+ }
+
+ protected void composeSubscriptionTopicCanFilterByComponent(String name, SubscriptionTopic.SubscriptionTopicCanFilterByComponent element) throws IOException {
+ if (element != null) {
+ open(name);
+ composeSubscriptionTopicCanFilterByComponentProperties(element);
+ close();
+ }
+ }
+
+ protected void composeSubscriptionTopicCanFilterByComponentProperties(SubscriptionTopic.SubscriptionTopicCanFilterByComponent element) throws IOException {
+ composeBackboneElementProperties(element);
+ if (element.hasSearchParamNameElement()) {
+ composeStringCore("searchParamName", element.getSearchParamNameElement(), false);
+ composeStringExtras("searchParamName", element.getSearchParamNameElement(), false);
+ }
+ if (element.hasSearchModifier()) {
+ openArray("searchModifier");
+ for (Enumeration e : element.getSearchModifier())
+ composeEnumerationCore(null, e, new Enumerations.SubscriptionSearchModifierEnumFactory(), true);
+ closeArray();
+ if (anyHasExtras(element.getSearchModifier())) {
+ openArray("_searchModifier");
+ for (Enumeration e : element.getSearchModifier())
+ composeEnumerationExtras(null, e, new Enumerations.SubscriptionSearchModifierEnumFactory(), true);
+ closeArray();
+ }
+ };
+ if (element.hasDocumentationElement()) {
+ composeMarkdownCore("documentation", element.getDocumentationElement(), false);
+ composeMarkdownExtras("documentation", element.getDocumentationElement(), false);
+ }
+ }
+
protected void composeSubstance(String name, Substance element) throws IOException {
if (element != null) {
prop("resourceType", name);
@@ -56993,10 +59594,10 @@ public class JsonParser extends JsonParserBase {
if (element.hasMolecularWeight()) {
composeSubstanceDefinitionStructureIsotopeMolecularWeightComponent("molecularWeight", element.getMolecularWeight());
}
- if (element.hasSourceCoding()) {
- openArray("sourceCoding");
- for (Coding e : element.getSourceCoding())
- composeCoding(null, e);
+ if (element.hasTechnique()) {
+ openArray("technique");
+ for (CodeableConcept e : element.getTechnique())
+ composeCodeableConcept(null, e);
closeArray();
};
if (element.hasSourceDocument()) {
@@ -57078,6 +59679,9 @@ public class JsonParser extends JsonParserBase {
composeStringCore("representation", element.getRepresentationElement(), false);
composeStringExtras("representation", element.getRepresentationElement(), false);
}
+ if (element.hasFormat()) {
+ composeCodeableConcept("format", element.getFormat());
+ }
if (element.hasAttachment()) {
composeAttachment("attachment", element.getAttachment());
}
@@ -57379,6 +59983,9 @@ public class JsonParser extends JsonParserBase {
protected void composeSubstancePolymerProperties(SubstancePolymer element) throws IOException {
composeDomainResourceProperties(element);
+ if (element.hasIdentifier()) {
+ composeIdentifier("identifier", element.getIdentifier());
+ }
if (element.hasClass_()) {
composeCodeableConcept("class", element.getClass_());
}
@@ -57391,18 +59998,10 @@ public class JsonParser extends JsonParserBase {
composeCodeableConcept(null, e);
closeArray();
};
- if (element.hasModification()) {
- openArray("modification");
- for (StringType e : element.getModification())
- composeStringCore(null, e, true);
- closeArray();
- if (anyHasExtras(element.getModification())) {
- openArray("_modification");
- for (StringType e : element.getModification())
- composeStringExtras(null, e, true);
- closeArray();
- }
- };
+ if (element.hasModificationElement()) {
+ composeStringCore("modification", element.getModificationElement(), false);
+ composeStringExtras("modification", element.getModificationElement(), false);
+ }
if (element.hasMonomerSet()) {
openArray("monomerSet");
for (SubstancePolymer.SubstancePolymerMonomerSetComponent e : element.getMonomerSet())
@@ -57448,11 +60047,11 @@ public class JsonParser extends JsonParserBase {
protected void composeSubstancePolymerMonomerSetStartingMaterialComponentProperties(SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent element) throws IOException {
composeBackboneElementProperties(element);
- if (element.hasMaterial()) {
- composeCodeableConcept("material", element.getMaterial());
+ if (element.hasCode()) {
+ composeCodeableConcept("code", element.getCode());
}
- if (element.hasType()) {
- composeCodeableConcept("type", element.getType());
+ if (element.hasCategory()) {
+ composeCodeableConcept("category", element.getCategory());
}
if (element.hasIsDefiningElement()) {
composeBooleanCore("isDefining", element.getIsDefiningElement(), false);
@@ -57502,12 +60101,12 @@ public class JsonParser extends JsonParserBase {
protected void composeSubstancePolymerRepeatRepeatUnitComponentProperties(SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent element) throws IOException {
composeBackboneElementProperties(element);
- if (element.hasOrientationOfPolymerisation()) {
- composeCodeableConcept("orientationOfPolymerisation", element.getOrientationOfPolymerisation());
+ if (element.hasUnitElement()) {
+ composeStringCore("unit", element.getUnitElement(), false);
+ composeStringExtras("unit", element.getUnitElement(), false);
}
- if (element.hasRepeatUnitElement()) {
- composeStringCore("repeatUnit", element.getRepeatUnitElement(), false);
- composeStringExtras("repeatUnit", element.getRepeatUnitElement(), false);
+ if (element.hasOrientation()) {
+ composeCodeableConcept("orientation", element.getOrientation());
}
if (element.hasAmount()) {
composeSubstanceAmount("amount", element.getAmount());
@@ -57561,6 +60160,9 @@ public class JsonParser extends JsonParserBase {
composeStringCore("representation", element.getRepresentationElement(), false);
composeStringExtras("representation", element.getRepresentationElement(), false);
}
+ if (element.hasFormat()) {
+ composeCodeableConcept("format", element.getFormat());
+ }
if (element.hasAttachment()) {
composeAttachment("attachment", element.getAttachment());
}
@@ -58133,7 +60735,7 @@ public class JsonParser extends JsonParserBase {
composeEnumerationExtras("priority", element.getPriorityElement(), new Enumerations.RequestPriorityEnumFactory(), false);
}
if (element.hasItem()) {
- composeType("item", element.getItem());
+ composeCodeableReference("item", element.getItem());
}
if (element.hasQuantity()) {
composeQuantity("quantity", element.getQuantity());
@@ -59641,227 +62243,6 @@ public class JsonParser extends JsonParserBase {
}
}
- protected void composeTopic(String name, Topic element) throws IOException {
- if (element != null) {
- prop("resourceType", name);
- composeTopicProperties(element);
- }
- }
-
- protected void composeTopicProperties(Topic 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.hasTitleElement()) {
- composeStringCore("title", element.getTitleElement(), false);
- composeStringExtras("title", element.getTitleElement(), false);
- }
- if (element.hasDerivedFromCanonical()) {
- openArray("derivedFromCanonical");
- for (CanonicalType e : element.getDerivedFromCanonical())
- composeCanonicalCore(null, e, true);
- closeArray();
- if (anyHasExtras(element.getDerivedFromCanonical())) {
- openArray("_derivedFromCanonical");
- for (CanonicalType e : element.getDerivedFromCanonical())
- composeCanonicalExtras(null, e, true);
- closeArray();
- }
- };
- if (element.hasDerivedFromUri()) {
- openArray("derivedFromUri");
- for (UriType e : element.getDerivedFromUri())
- composeUriCore(null, e, true);
- 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);
- }
- 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.hasPublisher()) {
- composeReference("publisher", element.getPublisher());
- }
- 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.hasResourceTrigger()) {
- composeTopicResourceTriggerComponent("resourceTrigger", element.getResourceTrigger());
- }
- if (element.hasCanFilterBy()) {
- openArray("canFilterBy");
- for (Topic.TopicCanFilterByComponent e : element.getCanFilterBy())
- composeTopicCanFilterByComponent(null, e);
- closeArray();
- };
- }
-
- protected void composeTopicResourceTriggerComponent(String name, Topic.TopicResourceTriggerComponent element) throws IOException {
- if (element != null) {
- open(name);
- composeTopicResourceTriggerComponentProperties(element);
- close();
- }
- }
-
- protected void composeTopicResourceTriggerComponentProperties(Topic.TopicResourceTriggerComponent element) throws IOException {
- composeBackboneElementProperties(element);
- if (element.hasDescriptionElement()) {
- composeStringCore("description", element.getDescriptionElement(), false);
- composeStringExtras("description", element.getDescriptionElement(), false);
- }
- if (element.hasResourceType()) {
- openArray("resourceType");
- for (CodeType e : element.getResourceType())
- composeCodeCore(null, e, true);
- closeArray();
- if (anyHasExtras(element.getResourceType())) {
- openArray("_resourceType");
- for (CodeType e : element.getResourceType())
- composeCodeExtras(null, e, true);
- closeArray();
- }
- };
- if (element.hasMethodCriteria()) {
- openArray("methodCriteria");
- for (Enumeration e : element.getMethodCriteria())
- composeEnumerationCore(null, e, new Topic.InteractionTriggerEnumFactory(), true);
- closeArray();
- if (anyHasExtras(element.getMethodCriteria())) {
- openArray("_methodCriteria");
- for (Enumeration e : element.getMethodCriteria())
- composeEnumerationExtras(null, e, new Topic.InteractionTriggerEnumFactory(), true);
- closeArray();
- }
- };
- if (element.hasQueryCriteria()) {
- composeTopicResourceTriggerQueryCriteriaComponent("queryCriteria", element.getQueryCriteria());
- }
- if (element.hasFhirPathCriteriaElement()) {
- composeStringCore("fhirPathCriteria", element.getFhirPathCriteriaElement(), false);
- composeStringExtras("fhirPathCriteria", element.getFhirPathCriteriaElement(), false);
- }
- }
-
- protected void composeTopicResourceTriggerQueryCriteriaComponent(String name, Topic.TopicResourceTriggerQueryCriteriaComponent element) throws IOException {
- if (element != null) {
- open(name);
- composeTopicResourceTriggerQueryCriteriaComponentProperties(element);
- close();
- }
- }
-
- protected void composeTopicResourceTriggerQueryCriteriaComponentProperties(Topic.TopicResourceTriggerQueryCriteriaComponent element) throws IOException {
- composeBackboneElementProperties(element);
- if (element.hasPreviousElement()) {
- composeStringCore("previous", element.getPreviousElement(), false);
- composeStringExtras("previous", element.getPreviousElement(), false);
- }
- if (element.hasCurrentElement()) {
- composeStringCore("current", element.getCurrentElement(), false);
- composeStringExtras("current", element.getCurrentElement(), false);
- }
- if (element.hasRequireBothElement()) {
- composeBooleanCore("requireBoth", element.getRequireBothElement(), false);
- composeBooleanExtras("requireBoth", element.getRequireBothElement(), false);
- }
- }
-
- protected void composeTopicCanFilterByComponent(String name, Topic.TopicCanFilterByComponent element) throws IOException {
- if (element != null) {
- open(name);
- composeTopicCanFilterByComponentProperties(element);
- close();
- }
- }
-
- protected void composeTopicCanFilterByComponentProperties(Topic.TopicCanFilterByComponent element) throws IOException {
- composeBackboneElementProperties(element);
- if (element.hasNameElement()) {
- composeStringCore("name", element.getNameElement(), false);
- composeStringExtras("name", element.getNameElement(), false);
- }
- if (element.hasMatchType()) {
- openArray("matchType");
- for (Enumeration e : element.getMatchType())
- composeEnumerationCore(null, e, new Topic.TopicFilterByMatchTypeEnumFactory(), true);
- closeArray();
- if (anyHasExtras(element.getMatchType())) {
- openArray("_matchType");
- for (Enumeration e : element.getMatchType())
- composeEnumerationExtras(null, e, new Topic.TopicFilterByMatchTypeEnumFactory(), true);
- closeArray();
- }
- };
- if (element.hasDocumentationElement()) {
- composeMarkdownCore("documentation", element.getDocumentationElement(), false);
- composeMarkdownExtras("documentation", element.getDocumentationElement(), false);
- }
- }
-
protected void composeValueSet(String name, ValueSet element) throws IOException {
if (element != null) {
prop("resourceType", name);
@@ -60632,6 +63013,8 @@ public class JsonParser extends JsonParserBase {
composeChargeItem("ChargeItem", (ChargeItem)resource);
} else if (resource instanceof ChargeItemDefinition) {
composeChargeItemDefinition("ChargeItemDefinition", (ChargeItemDefinition)resource);
+ } else if (resource instanceof Citation) {
+ composeCitation("Citation", (Citation)resource);
} else if (resource instanceof Claim) {
composeClaim("Claim", (Claim)resource);
} else if (resource instanceof ClaimResponse) {
@@ -60698,6 +63081,8 @@ public class JsonParser extends JsonParserBase {
composeEventDefinition("EventDefinition", (EventDefinition)resource);
} else if (resource instanceof Evidence) {
composeEvidence("Evidence", (Evidence)resource);
+ } else if (resource instanceof EvidenceFocus) {
+ composeEvidenceFocus("EvidenceFocus", (EvidenceFocus)resource);
} else if (resource instanceof EvidenceVariable) {
composeEvidenceVariable("EvidenceVariable", (EvidenceVariable)resource);
} else if (resource instanceof ExampleScenario) {
@@ -60774,6 +63159,8 @@ public class JsonParser extends JsonParserBase {
composeNutritionIntake("NutritionIntake", (NutritionIntake)resource);
} else if (resource instanceof NutritionOrder) {
composeNutritionOrder("NutritionOrder", (NutritionOrder)resource);
+ } else if (resource instanceof NutritionProduct) {
+ composeNutritionProduct("NutritionProduct", (NutritionProduct)resource);
} else if (resource instanceof Observation) {
composeObservation("Observation", (Observation)resource);
} else if (resource instanceof ObservationDefinition) {
@@ -60796,6 +63183,8 @@ public class JsonParser extends JsonParserBase {
composePaymentNotice("PaymentNotice", (PaymentNotice)resource);
} else if (resource instanceof PaymentReconciliation) {
composePaymentReconciliation("PaymentReconciliation", (PaymentReconciliation)resource);
+ } else if (resource instanceof Permission) {
+ composePermission("Permission", (Permission)resource);
} else if (resource instanceof Person) {
composePerson("Person", (Person)resource);
} else if (resource instanceof PlanDefinition) {
@@ -60842,6 +63231,10 @@ public class JsonParser extends JsonParserBase {
composeStructureMap("StructureMap", (StructureMap)resource);
} else if (resource instanceof Subscription) {
composeSubscription("Subscription", (Subscription)resource);
+ } else if (resource instanceof SubscriptionStatus) {
+ composeSubscriptionStatus("SubscriptionStatus", (SubscriptionStatus)resource);
+ } else if (resource instanceof SubscriptionTopic) {
+ composeSubscriptionTopic("SubscriptionTopic", (SubscriptionTopic)resource);
} else if (resource instanceof Substance) {
composeSubstance("Substance", (Substance)resource);
} else if (resource instanceof SubstanceDefinition) {
@@ -60868,8 +63261,6 @@ public class JsonParser extends JsonParserBase {
composeTestReport("TestReport", (TestReport)resource);
} else if (resource instanceof TestScript) {
composeTestScript("TestScript", (TestScript)resource);
- } else if (resource instanceof Topic) {
- composeTopic("Topic", (Topic)resource);
} else if (resource instanceof ValueSet) {
composeValueSet("ValueSet", (ValueSet)resource);
} else if (resource instanceof VerificationResult) {
@@ -60924,6 +63315,8 @@ public class JsonParser extends JsonParserBase {
composeChargeItem(name, (ChargeItem)resource);
} else if (resource instanceof ChargeItemDefinition) {
composeChargeItemDefinition(name, (ChargeItemDefinition)resource);
+ } else if (resource instanceof Citation) {
+ composeCitation(name, (Citation)resource);
} else if (resource instanceof Claim) {
composeClaim(name, (Claim)resource);
} else if (resource instanceof ClaimResponse) {
@@ -60990,6 +63383,8 @@ public class JsonParser extends JsonParserBase {
composeEventDefinition(name, (EventDefinition)resource);
} else if (resource instanceof Evidence) {
composeEvidence(name, (Evidence)resource);
+ } else if (resource instanceof EvidenceFocus) {
+ composeEvidenceFocus(name, (EvidenceFocus)resource);
} else if (resource instanceof EvidenceVariable) {
composeEvidenceVariable(name, (EvidenceVariable)resource);
} else if (resource instanceof ExampleScenario) {
@@ -61066,6 +63461,8 @@ public class JsonParser extends JsonParserBase {
composeNutritionIntake(name, (NutritionIntake)resource);
} else if (resource instanceof NutritionOrder) {
composeNutritionOrder(name, (NutritionOrder)resource);
+ } else if (resource instanceof NutritionProduct) {
+ composeNutritionProduct(name, (NutritionProduct)resource);
} else if (resource instanceof Observation) {
composeObservation(name, (Observation)resource);
} else if (resource instanceof ObservationDefinition) {
@@ -61088,6 +63485,8 @@ public class JsonParser extends JsonParserBase {
composePaymentNotice(name, (PaymentNotice)resource);
} else if (resource instanceof PaymentReconciliation) {
composePaymentReconciliation(name, (PaymentReconciliation)resource);
+ } else if (resource instanceof Permission) {
+ composePermission(name, (Permission)resource);
} else if (resource instanceof Person) {
composePerson(name, (Person)resource);
} else if (resource instanceof PlanDefinition) {
@@ -61134,6 +63533,10 @@ public class JsonParser extends JsonParserBase {
composeStructureMap(name, (StructureMap)resource);
} else if (resource instanceof Subscription) {
composeSubscription(name, (Subscription)resource);
+ } else if (resource instanceof SubscriptionStatus) {
+ composeSubscriptionStatus(name, (SubscriptionStatus)resource);
+ } else if (resource instanceof SubscriptionTopic) {
+ composeSubscriptionTopic(name, (SubscriptionTopic)resource);
} else if (resource instanceof Substance) {
composeSubstance(name, (Substance)resource);
} else if (resource instanceof SubstanceDefinition) {
@@ -61160,8 +63563,6 @@ public class JsonParser extends JsonParserBase {
composeTestReport(name, (TestReport)resource);
} else if (resource instanceof TestScript) {
composeTestScript(name, (TestScript)resource);
- } else if (resource instanceof Topic) {
- composeTopic(name, (Topic)resource);
} else if (resource instanceof ValueSet) {
composeValueSet(name, (ValueSet)resource);
} else if (resource instanceof VerificationResult) {
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 f3b4a76e9..209748328 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
@@ -51,7 +51,7 @@ package org.hl7.fhir.r5.formats;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
@@ -1180,7 +1180,7 @@ public class RdfParser extends RdfParserBase {
else {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
- composeElement(t, "Meta", name, element, index);
+ composeDataType(t, "Meta", name, element, index);
if (element.hasVersionIdElement()) {
composeId(t, "Meta", "versionId", element.getVersionIdElement(), -1);
}
@@ -2298,15 +2298,15 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getDevice().size(); i++) {
composeReference(t, "AdministrableProductDefinition", "device", element.getDevice().get(i), i);
}
- for (int i = 0; i < element.getCharacteristic().size(); i++) {
- composeAdministrableProductDefinitionCharacteristicComponent(t, "AdministrableProductDefinition", "characteristic", element.getCharacteristic().get(i), i);
+ for (int i = 0; i < element.getProperty().size(); i++) {
+ composeAdministrableProductDefinitionPropertyComponent(t, "AdministrableProductDefinition", "property", element.getProperty().get(i), i);
}
for (int i = 0; i < element.getRouteOfAdministration().size(); i++) {
composeAdministrableProductDefinitionRouteOfAdministrationComponent(t, "AdministrableProductDefinition", "routeOfAdministration", element.getRouteOfAdministration().get(i), i);
}
}
- protected void composeAdministrableProductDefinitionCharacteristicComponent(Complex parent, String parentType, String name, AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent element, int index) {
+ protected void composeAdministrableProductDefinitionPropertyComponent(Complex parent, String parentType, String name, AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent element, int index) {
if (element == null)
return;
Complex t;
@@ -2315,15 +2315,15 @@ public class RdfParser extends RdfParserBase {
else {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
- composeBackboneElement(t, "characteristic", name, element, index);
- if (element.hasCode()) {
- composeCodeableConcept(t, "AdministrableProductDefinitionCharacteristicComponent", "code", element.getCode(), -1);
+ composeBackboneElement(t, "property", name, element, index);
+ if (element.hasType()) {
+ composeCodeableConcept(t, "AdministrableProductDefinitionPropertyComponent", "type", element.getType(), -1);
}
if (element.hasValue()) {
- composeType(t, "AdministrableProductDefinitionCharacteristicComponent", "value", element.getValue(), -1);
+ composeType(t, "AdministrableProductDefinitionPropertyComponent", "value", element.getValue(), -1);
}
if (element.hasStatus()) {
- composeCodeableConcept(t, "AdministrableProductDefinitionCharacteristicComponent", "status", element.getStatus(), -1);
+ composeCodeableConcept(t, "AdministrableProductDefinitionPropertyComponent", "status", element.getStatus(), -1);
}
}
@@ -2853,11 +2853,8 @@ public class RdfParser extends RdfParserBase {
if (element.hasRecordedElement()) {
composeInstant(t, "AuditEvent", "recorded", element.getRecordedElement(), -1);
}
- if (element.hasOutcomeElement()) {
- composeEnum(t, "AuditEvent", "outcome", element.getOutcomeElement(), -1);
- }
- if (element.hasOutcomeDescElement()) {
- composeString(t, "AuditEvent", "outcomeDesc", element.getOutcomeDescElement(), -1);
+ if (element.hasOutcome()) {
+ composeCodeableConcept(t, "AuditEvent", "outcome", element.getOutcome(), -1);
}
for (int i = 0; i < element.getPurposeOfEvent().size(); i++) {
composeCodeableConcept(t, "AuditEvent", "purposeOfEvent", element.getPurposeOfEvent().get(i), i);
@@ -4216,7 +4213,7 @@ public class RdfParser extends RdfParserBase {
composeType(t, "CarePlanActivityDetailComponent", "scheduled", element.getScheduled(), -1);
}
if (element.hasLocation()) {
- composeReference(t, "CarePlanActivityDetailComponent", "location", element.getLocation(), -1);
+ composeCodeableReference(t, "CarePlanActivityDetailComponent", "location", element.getLocation(), -1);
}
if (element.hasReported()) {
composeType(t, "CarePlanActivityDetailComponent", "reported", element.getReported(), -1);
@@ -4637,6 +4634,579 @@ public class RdfParser extends RdfParserBase {
}
}
+ protected void composeCitation(Complex parent, String parentType, String name, Citation element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeMetadataResource(t, "Citation", name, element, index);
+ if (element.hasUrlElement()) {
+ composeUri(t, "Citation", "url", element.getUrlElement(), -1);
+ }
+ if (element.hasVersionElement()) {
+ composeString(t, "Citation", "version", element.getVersionElement(), -1);
+ }
+ if (element.hasStatusElement()) {
+ composeEnum(t, "Citation", "status", element.getStatusElement(), -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.getRelatedIdentifier().size(); i++) {
+ composeIdentifier(t, "Citation", "relatedIdentifier", element.getRelatedIdentifier().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.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.hasAuthorList()) {
+ composeCitationAuthorListComponent(t, "Citation", "authorList", element.getAuthorList(), -1);
+ }
+ for (int i = 0; i < element.getAuthorString().size(); i++) {
+ composeCitationAuthorStringComponent(t, "Citation", "authorString", element.getAuthorString().get(i), i);
+ }
+ if (element.hasContributorList()) {
+ composeCitationContributorListComponent(t, "Citation", "contributorList", element.getContributorList(), -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.getRelatedArtifact().size(); i++) {
+ composeRelatedArtifact(t, "Citation", "relatedArtifact", element.getRelatedArtifact().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);
+ }
+ }
+
+ 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);
+ if (element.hasType()) {
+ composeCodeableConcept(t, "CitationVariantCitationComponent", "type", element.getType(), -1);
+ }
+ if (element.hasValueElement()) {
+ composeString(t, "CitationVariantCitationComponent", "value", element.getValueElement(), -1);
+ }
+ if (element.hasBaseCitation()) {
+ composeReference(t, "CitationVariantCitationComponent", "baseCitation", element.getBaseCitation(), -1);
+ }
+ }
+
+ protected void composeCitationJournalComponent(Complex parent, String parentType, String name, Citation.CitationJournalComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ 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);
+ }
+ if (element.hasCountryElement()) {
+ composeString(t, "CitationJournalComponent", "country", element.getCountryElement(), -1);
+ }
+ if (element.hasJournalIssue()) {
+ composeCitationJournalJournalIssueComponent(t, "CitationJournalComponent", "journalIssue", element.getJournalIssue(), -1);
+ }
+ if (element.hasTitleElement()) {
+ composeString(t, "CitationJournalComponent", "title", element.getTitleElement(), -1);
+ }
+ }
+
+ protected void composeCitationJournalJournalIssueComponent(Complex parent, String parentType, String name, Citation.CitationJournalJournalIssueComponent 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, "CitationJournalJournalIssueComponent", "citedMedium", element.getCitedMedium(), -1);
+ }
+ if (element.hasVolumeElement()) {
+ composeString(t, "CitationJournalJournalIssueComponent", "volume", element.getVolumeElement(), -1);
+ }
+ if (element.hasIssueElement()) {
+ composeString(t, "CitationJournalJournalIssueComponent", "issue", element.getIssueElement(), -1);
+ }
+ if (element.hasPublicationDateElement()) {
+ composeString(t, "CitationJournalJournalIssueComponent", "publicationDate", element.getPublicationDateElement(), -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);
+ }
+ if (element.hasTitleElement()) {
+ composeMarkdown(t, "CitationAlternativeTitleComponent", "title", element.getTitleElement(), -1);
+ }
+ }
+
+ protected void composeCitationPaginationComponent(Complex parent, String parentType, String name, Citation.CitationPaginationComponent 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, "CitationPaginationComponent", "pageString", element.getPageStringElement(), -1);
+ }
+ if (element.hasFirstPageElement()) {
+ composeString(t, "CitationPaginationComponent", "firstPage", element.getFirstPageElement(), -1);
+ }
+ if (element.hasLastPageElement()) {
+ composeString(t, "CitationPaginationComponent", "lastPage", element.getLastPageElement(), -1);
+ }
+ }
+
+ protected void composeCitationArticleUrlComponent(Complex parent, String parentType, String name, Citation.CitationArticleUrlComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "articleUrl", name, element, index);
+ if (element.hasType()) {
+ composeCodeableConcept(t, "CitationArticleUrlComponent", "type", element.getType(), -1);
+ }
+ if (element.hasUrlElement()) {
+ composeUri(t, "CitationArticleUrlComponent", "url", element.getUrlElement(), -1);
+ }
+ }
+
+ protected void composeCitationAlternativeAbstractComponent(Complex parent, String parentType, String name, Citation.CitationAlternativeAbstractComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "alternativeAbstract", name, element, index);
+ if (element.hasType()) {
+ composeCodeableConcept(t, "CitationAlternativeAbstractComponent", "type", element.getType(), -1);
+ }
+ if (element.hasLanguage()) {
+ composeCodeableConcept(t, "CitationAlternativeAbstractComponent", "language", element.getLanguage(), -1);
+ }
+ if (element.hasAbstractElement()) {
+ composeMarkdown(t, "CitationAlternativeAbstractComponent", "abstract", element.getAbstractElement(), -1);
+ }
+ if (element.hasAbstractCopyrightElement()) {
+ composeMarkdown(t, "CitationAlternativeAbstractComponent", "abstractCopyright", element.getAbstractCopyrightElement(), -1);
+ }
+ }
+
+ protected void composeCitationAuthorListComponent(Complex parent, String parentType, String name, Citation.CitationAuthorListComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "authorList", name, element, index);
+ if (element.hasCompleteElement()) {
+ composeBoolean(t, "CitationAuthorListComponent", "complete", element.getCompleteElement(), -1);
+ }
+ for (int i = 0; i < element.getAuthor().size(); i++) {
+ composeCitationAuthorListAuthorComponent(t, "CitationAuthorListComponent", "author", element.getAuthor().get(i), i);
+ }
+ }
+
+ protected void composeCitationAuthorListAuthorComponent(Complex parent, String parentType, String name, Citation.CitationAuthorListAuthorComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "author", name, element, index);
+ if (element.hasLastNameElement()) {
+ composeString(t, "CitationAuthorListAuthorComponent", "lastName", element.getLastNameElement(), -1);
+ }
+ if (element.hasForeNameElement()) {
+ composeString(t, "CitationAuthorListAuthorComponent", "foreName", element.getForeNameElement(), -1);
+ }
+ if (element.hasSuffixElement()) {
+ composeString(t, "CitationAuthorListAuthorComponent", "suffix", element.getSuffixElement(), -1);
+ }
+ if (element.hasInitialsElement()) {
+ composeString(t, "CitationAuthorListAuthorComponent", "initials", element.getInitialsElement(), -1);
+ }
+ if (element.hasCollectiveNameElement()) {
+ composeString(t, "CitationAuthorListAuthorComponent", "collectiveName", element.getCollectiveNameElement(), -1);
+ }
+ for (int i = 0; i < element.getIdentifier().size(); i++) {
+ composeIdentifier(t, "CitationAuthorListAuthorComponent", "identifier", element.getIdentifier().get(i), i);
+ }
+ for (int i = 0; i < element.getAffiliationInfo().size(); i++) {
+ composeCitationAuthorListAuthorAffiliationInfoComponent(t, "CitationAuthorListAuthorComponent", "affiliationInfo", element.getAffiliationInfo().get(i), i);
+ }
+ for (int i = 0; i < element.getAddress().size(); i++) {
+ composeString(t, "CitationAuthorListAuthorComponent", "address", element.getAddress().get(i), i);
+ }
+ for (int i = 0; i < element.getTelecom().size(); i++) {
+ composeContactPoint(t, "CitationAuthorListAuthorComponent", "telecom", element.getTelecom().get(i), i);
+ }
+ if (element.hasCorrespondingAuthorElement()) {
+ composeBoolean(t, "CitationAuthorListAuthorComponent", "correspondingAuthor", element.getCorrespondingAuthorElement(), -1);
+ }
+ if (element.hasListOrderElement()) {
+ composePositiveInt(t, "CitationAuthorListAuthorComponent", "listOrder", element.getListOrderElement(), -1);
+ }
+ }
+
+ protected void composeCitationAuthorListAuthorAffiliationInfoComponent(Complex parent, String parentType, String name, Citation.CitationAuthorListAuthorAffiliationInfoComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "affiliationInfo", name, element, index);
+ if (element.hasAffiliationElement()) {
+ composeString(t, "CitationAuthorListAuthorAffiliationInfoComponent", "affiliation", element.getAffiliationElement(), -1);
+ }
+ if (element.hasRoleElement()) {
+ composeString(t, "CitationAuthorListAuthorAffiliationInfoComponent", "role", element.getRoleElement(), -1);
+ }
+ for (int i = 0; i < element.getIdentifier().size(); i++) {
+ composeIdentifier(t, "CitationAuthorListAuthorAffiliationInfoComponent", "identifier", element.getIdentifier().get(i), i);
+ }
+ }
+
+ protected void composeCitationAuthorStringComponent(Complex parent, String parentType, String name, Citation.CitationAuthorStringComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "authorString", name, element, index);
+ if (element.hasSource()) {
+ composeCodeableConcept(t, "CitationAuthorStringComponent", "source", element.getSource(), -1);
+ }
+ if (element.hasValueElement()) {
+ composeString(t, "CitationAuthorStringComponent", "value", element.getValueElement(), -1);
+ }
+ }
+
+ protected void composeCitationContributorListComponent(Complex parent, String parentType, String name, Citation.CitationContributorListComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "contributorList", name, element, index);
+ if (element.hasCompleteElement()) {
+ composeBoolean(t, "CitationContributorListComponent", "complete", element.getCompleteElement(), -1);
+ }
+ for (int i = 0; i < element.getContributor().size(); i++) {
+ composeCitationContributorListContributorComponent(t, "CitationContributorListComponent", "contributor", element.getContributor().get(i), i);
+ }
+ }
+
+ protected void composeCitationContributorListContributorComponent(Complex parent, String parentType, String name, Citation.CitationContributorListContributorComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "contributor", name, element, index);
+ if (element.hasLastNameElement()) {
+ composeString(t, "CitationContributorListContributorComponent", "lastName", element.getLastNameElement(), -1);
+ }
+ if (element.hasForeNameElement()) {
+ composeString(t, "CitationContributorListContributorComponent", "foreName", element.getForeNameElement(), -1);
+ }
+ if (element.hasSuffixElement()) {
+ composeString(t, "CitationContributorListContributorComponent", "suffix", element.getSuffixElement(), -1);
+ }
+ if (element.hasInitialsElement()) {
+ composeString(t, "CitationContributorListContributorComponent", "initials", element.getInitialsElement(), -1);
+ }
+ if (element.hasCollectiveNameElement()) {
+ composeString(t, "CitationContributorListContributorComponent", "collectiveName", element.getCollectiveNameElement(), -1);
+ }
+ for (int i = 0; i < element.getIdentifier().size(); i++) {
+ composeIdentifier(t, "CitationContributorListContributorComponent", "identifier", element.getIdentifier().get(i), i);
+ }
+ for (int i = 0; i < element.getContribution().size(); i++) {
+ composeCodeableConcept(t, "CitationContributorListContributorComponent", "contribution", element.getContribution().get(i), i);
+ }
+ for (int i = 0; i < element.getAffiliationInfo().size(); i++) {
+ composeCitationContributorListContributorAffiliationInfoComponent(t, "CitationContributorListContributorComponent", "affiliationInfo", element.getAffiliationInfo().get(i), i);
+ }
+ if (element.hasListOrderElement()) {
+ composePositiveInt(t, "CitationContributorListContributorComponent", "listOrder", element.getListOrderElement(), -1);
+ }
+ }
+
+ protected void composeCitationContributorListContributorAffiliationInfoComponent(Complex parent, String parentType, String name, Citation.CitationContributorListContributorAffiliationInfoComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "affiliationInfo", name, element, index);
+ if (element.hasAffiliationElement()) {
+ composeString(t, "CitationContributorListContributorAffiliationInfoComponent", "affiliation", element.getAffiliationElement(), -1);
+ }
+ if (element.hasRoleElement()) {
+ composeString(t, "CitationContributorListContributorAffiliationInfoComponent", "role", element.getRoleElement(), -1);
+ }
+ for (int i = 0; i < element.getIdentifier().size(); i++) {
+ composeIdentifier(t, "CitationContributorListContributorAffiliationInfoComponent", "identifier", element.getIdentifier().get(i), i);
+ }
+ }
+
+ 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);
+ }
+ }
+
+ 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.hasPublicationDateElement()) {
+ composeString(t, "CitationAlternativeFormJournalIssueComponent", "publicationDate", element.getPublicationDateElement(), -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 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);
+ }
+ }
+
protected void composeClaim(Complex parent, String parentType, String name, Claim element, int index) {
if (element == null)
return;
@@ -5652,6 +6222,9 @@ public class RdfParser extends RdfParserBase {
if (element.hasTypeElement()) {
composeEnum(t, "ClinicalUseIssue", "type", element.getTypeElement(), -1);
}
+ if (element.hasCategory()) {
+ composeCodeableConcept(t, "ClinicalUseIssue", "category", element.getCategory(), -1);
+ }
for (int i = 0; i < element.getSubject().size(); i++) {
composeReference(t, "ClinicalUseIssue", "subject", element.getSubject().get(i), i);
}
@@ -6954,8 +7527,8 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getCategory().size(); i++) {
composeCodeableConcept(t, "Consent", "category", element.getCategory().get(i), i);
}
- if (element.hasPatient()) {
- composeReference(t, "Consent", "patient", element.getPatient(), -1);
+ if (element.hasSubject()) {
+ composeReference(t, "Consent", "subject", element.getSubject(), -1);
}
if (element.hasDateTimeElement()) {
composeDateTime(t, "Consent", "dateTime", element.getDateTimeElement(), -1);
@@ -8232,6 +8805,9 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getIdentifier().size(); i++) {
composeIdentifier(t, "Device", "identifier", element.getIdentifier().get(i), i);
}
+ if (element.hasDisplayNameElement()) {
+ composeString(t, "Device", "displayName", element.getDisplayNameElement(), -1);
+ }
if (element.hasDefinition()) {
composeReference(t, "Device", "definition", element.getDefinition(), -1);
}
@@ -8271,8 +8847,8 @@ public class RdfParser extends RdfParserBase {
if (element.hasPartNumberElement()) {
composeString(t, "Device", "partNumber", element.getPartNumberElement(), -1);
}
- if (element.hasType()) {
- composeCodeableConcept(t, "Device", "type", element.getType(), -1);
+ for (int i = 0; i < element.getType().size(); i++) {
+ composeCodeableConcept(t, "Device", "type", element.getType().get(i), i);
}
for (int i = 0; i < element.getSpecialization().size(); i++) {
composeDeviceSpecializationComponent(t, "Device", "specialization", element.getSpecialization().get(i), i);
@@ -8286,6 +8862,12 @@ public class RdfParser extends RdfParserBase {
if (element.hasPatient()) {
composeReference(t, "Device", "patient", element.getPatient(), -1);
}
+ if (element.hasOperationalStatus()) {
+ composeDeviceOperationalStatusComponent(t, "Device", "operationalStatus", element.getOperationalStatus(), -1);
+ }
+ if (element.hasAssociationStatus()) {
+ composeDeviceAssociationStatusComponent(t, "Device", "associationStatus", element.getAssociationStatus(), -1);
+ }
if (element.hasOwner()) {
composeReference(t, "Device", "owner", element.getOwner(), -1);
}
@@ -8417,6 +8999,42 @@ public class RdfParser extends RdfParserBase {
}
}
+ protected void composeDeviceOperationalStatusComponent(Complex parent, String parentType, String name, Device.DeviceOperationalStatusComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "operationalStatus", name, element, index);
+ if (element.hasValue()) {
+ composeCodeableConcept(t, "DeviceOperationalStatusComponent", "value", element.getValue(), -1);
+ }
+ for (int i = 0; i < element.getReason().size(); i++) {
+ composeCodeableConcept(t, "DeviceOperationalStatusComponent", "reason", element.getReason().get(i), i);
+ }
+ }
+
+ protected void composeDeviceAssociationStatusComponent(Complex parent, String parentType, String name, Device.DeviceAssociationStatusComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "associationStatus", name, element, index);
+ if (element.hasValue()) {
+ composeCodeableConcept(t, "DeviceAssociationStatusComponent", "value", element.getValue(), -1);
+ }
+ for (int i = 0; i < element.getReason().size(); i++) {
+ composeCodeableConcept(t, "DeviceAssociationStatusComponent", "reason", element.getReason().get(i), i);
+ }
+ }
+
protected void composeDeviceDefinition(Complex parent, String parentType, String name, DeviceDefinition element, int index) {
if (element == null)
return;
@@ -8475,9 +9093,6 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getContact().size(); i++) {
composeContactPoint(t, "DeviceDefinition", "contact", element.getContact().get(i), i);
}
- if (element.hasUrlElement()) {
- composeUri(t, "DeviceDefinition", "url", element.getUrlElement(), -1);
- }
if (element.hasOnlineInformationElement()) {
composeUri(t, "DeviceDefinition", "onlineInformation", element.getOnlineInformationElement(), -1);
}
@@ -8713,7 +9328,7 @@ public class RdfParser extends RdfParserBase {
composeEnum(t, "DeviceRequest", "priority", element.getPriorityElement(), -1);
}
if (element.hasCode()) {
- composeType(t, "DeviceRequest", "code", element.getCode(), -1);
+ composeCodeableReference(t, "DeviceRequest", "code", element.getCode(), -1);
}
for (int i = 0; i < element.getParameter().size(); i++) {
composeDeviceRequestParameterComponent(t, "DeviceRequest", "parameter", element.getParameter().get(i), i);
@@ -8793,29 +9408,41 @@ public class RdfParser extends RdfParserBase {
if (element.hasStatusElement()) {
composeEnum(t, "DeviceUseStatement", "status", element.getStatusElement(), -1);
}
+ for (int i = 0; i < element.getCategory().size(); i++) {
+ composeCodeableConcept(t, "DeviceUseStatement", "category", element.getCategory().get(i), i);
+ }
if (element.hasSubject()) {
composeReference(t, "DeviceUseStatement", "subject", element.getSubject(), -1);
}
for (int i = 0; i < element.getDerivedFrom().size(); i++) {
composeReference(t, "DeviceUseStatement", "derivedFrom", element.getDerivedFrom().get(i), i);
}
+ if (element.hasContext()) {
+ composeReference(t, "DeviceUseStatement", "context", element.getContext(), -1);
+ }
if (element.hasTiming()) {
composeType(t, "DeviceUseStatement", "timing", element.getTiming(), -1);
}
- if (element.hasRecordedOnElement()) {
- composeDateTime(t, "DeviceUseStatement", "recordedOn", element.getRecordedOnElement(), -1);
+ if (element.hasDateAssertedElement()) {
+ composeDateTime(t, "DeviceUseStatement", "dateAsserted", element.getDateAssertedElement(), -1);
}
- if (element.hasSource()) {
- composeReference(t, "DeviceUseStatement", "source", element.getSource(), -1);
+ if (element.hasUsageStatus()) {
+ composeCodeableConcept(t, "DeviceUseStatement", "usageStatus", element.getUsageStatus(), -1);
+ }
+ for (int i = 0; i < element.getUsageReason().size(); i++) {
+ composeCodeableConcept(t, "DeviceUseStatement", "usageReason", element.getUsageReason().get(i), i);
+ }
+ if (element.hasInformationSource()) {
+ composeReference(t, "DeviceUseStatement", "informationSource", element.getInformationSource(), -1);
}
if (element.hasDevice()) {
- composeReference(t, "DeviceUseStatement", "device", element.getDevice(), -1);
+ composeCodeableReference(t, "DeviceUseStatement", "device", element.getDevice(), -1);
}
for (int i = 0; i < element.getReason().size(); i++) {
composeCodeableReference(t, "DeviceUseStatement", "reason", element.getReason().get(i), i);
}
if (element.hasBodySite()) {
- composeCodeableConcept(t, "DeviceUseStatement", "bodySite", element.getBodySite(), -1);
+ composeCodeableReference(t, "DeviceUseStatement", "bodySite", element.getBodySite(), -1);
}
for (int i = 0; i < element.getNote().size(); i++) {
composeAnnotation(t, "DeviceUseStatement", "note", element.getNote().get(i), i);
@@ -9675,9 +10302,6 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getNote().size(); i++) {
composeAnnotation(t, "Evidence", "note", element.getNote().get(i), i);
}
- if (element.hasReferentGroup()) {
- composeEvidenceReferentGroupComponent(t, "Evidence", "referentGroup", element.getReferentGroup(), -1);
- }
for (int i = 0; i < element.getVariableDefinition().size(); i++) {
composeEvidenceVariableDefinitionComponent(t, "Evidence", "variableDefinition", element.getVariableDefinition().get(i), i);
}
@@ -9698,33 +10322,6 @@ public class RdfParser extends RdfParserBase {
}
}
- protected void composeEvidenceReferentGroupComponent(Complex parent, String parentType, String name, Evidence.EvidenceReferentGroupComponent element, int index) {
- if (element == null)
- return;
- Complex t;
- if (Utilities.noString(parentType))
- t = parent;
- else {
- t = parent.predicate("fhir:"+parentType+'.'+name);
- }
- composeBackboneElement(t, "referentGroup", name, element, index);
- if (element.hasDescriptionElement()) {
- composeMarkdown(t, "EvidenceReferentGroupComponent", "description", element.getDescriptionElement(), -1);
- }
- for (int i = 0; i < element.getNote().size(); i++) {
- composeAnnotation(t, "EvidenceReferentGroupComponent", "note", element.getNote().get(i), i);
- }
- if (element.hasEvidenceSource()) {
- composeReference(t, "EvidenceReferentGroupComponent", "evidenceSource", element.getEvidenceSource(), -1);
- }
- if (element.hasIntendedGroup()) {
- composeReference(t, "EvidenceReferentGroupComponent", "intendedGroup", element.getIntendedGroup(), -1);
- }
- if (element.hasDirectnessMatch()) {
- composeCodeableConcept(t, "EvidenceReferentGroupComponent", "directnessMatch", element.getDirectnessMatch(), -1);
- }
- }
-
protected void composeEvidenceVariableDefinitionComponent(Complex parent, String parentType, String name, Evidence.EvidenceVariableDefinitionComponent element, int index) {
if (element == null)
return;
@@ -9744,11 +10341,11 @@ public class RdfParser extends RdfParserBase {
if (element.hasVariableRole()) {
composeCodeableConcept(t, "EvidenceVariableDefinitionComponent", "variableRole", element.getVariableRole(), -1);
}
- if (element.hasActualDefinition()) {
- composeReference(t, "EvidenceVariableDefinitionComponent", "actualDefinition", element.getActualDefinition(), -1);
+ if (element.hasObserved()) {
+ composeReference(t, "EvidenceVariableDefinitionComponent", "observed", element.getObserved(), -1);
}
- if (element.hasIntendedDefinition()) {
- composeReference(t, "EvidenceVariableDefinitionComponent", "intendedDefinition", element.getIntendedDefinition(), -1);
+ if (element.hasIntended()) {
+ composeReference(t, "EvidenceVariableDefinitionComponent", "intended", element.getIntended(), -1);
}
if (element.hasDirectnessMatch()) {
composeCodeableConcept(t, "EvidenceVariableDefinitionComponent", "directnessMatch", element.getDirectnessMatch(), -1);
@@ -9803,6 +10400,78 @@ public class RdfParser extends RdfParserBase {
}
}
+ protected void composeEvidenceFocus(Complex parent, String parentType, String name, EvidenceFocus element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeMetadataResource(t, "EvidenceFocus", name, element, index);
+ if (element.hasUrlElement()) {
+ composeUri(t, "EvidenceFocus", "url", element.getUrlElement(), -1);
+ }
+ for (int i = 0; i < element.getIdentifier().size(); i++) {
+ composeIdentifier(t, "EvidenceFocus", "identifier", element.getIdentifier().get(i), i);
+ }
+ if (element.hasVersionElement()) {
+ composeString(t, "EvidenceFocus", "version", element.getVersionElement(), -1);
+ }
+ if (element.hasNameElement()) {
+ composeString(t, "EvidenceFocus", "name", element.getNameElement(), -1);
+ }
+ if (element.hasStatusElement()) {
+ composeEnum(t, "EvidenceFocus", "status", element.getStatusElement(), -1);
+ }
+ for (int i = 0; i < element.getUseContext().size(); i++) {
+ composeUsageContext(t, "EvidenceFocus", "useContext", element.getUseContext().get(i), i);
+ }
+ if (element.hasDateElement()) {
+ composeDateTime(t, "EvidenceFocus", "date", element.getDateElement(), -1);
+ }
+ for (int i = 0; i < element.getNote().size(); i++) {
+ composeAnnotation(t, "EvidenceFocus", "note", element.getNote().get(i), i);
+ }
+ if (element.hasCopyrightElement()) {
+ composeMarkdown(t, "EvidenceFocus", "copyright", element.getCopyrightElement(), -1);
+ }
+ if (element.hasCiteAs()) {
+ composeReference(t, "EvidenceFocus", "citeAs", element.getCiteAs(), -1);
+ }
+ for (int i = 0; i < element.getCharacteristic().size(); i++) {
+ composeEvidenceFocusCharacteristicComponent(t, "EvidenceFocus", "characteristic", element.getCharacteristic().get(i), i);
+ }
+ for (int i = 0; i < element.getRelatedArtifact().size(); i++) {
+ composeRelatedArtifact(t, "EvidenceFocus", "relatedArtifact", element.getRelatedArtifact().get(i), i);
+ }
+ }
+
+ protected void composeEvidenceFocusCharacteristicComponent(Complex parent, String parentType, String name, EvidenceFocus.EvidenceFocusCharacteristicComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "characteristic", name, element, index);
+ if (element.hasCode()) {
+ composeCodeableConcept(t, "EvidenceFocusCharacteristicComponent", "code", element.getCode(), -1);
+ }
+ if (element.hasValue()) {
+ composeType(t, "EvidenceFocusCharacteristicComponent", "value", element.getValue(), -1);
+ }
+ if (element.hasExcludeElement()) {
+ composeBoolean(t, "EvidenceFocusCharacteristicComponent", "exclude", element.getExcludeElement(), -1);
+ }
+ if (element.hasPeriod()) {
+ composePeriod(t, "EvidenceFocusCharacteristicComponent", "period", element.getPeriod(), -1);
+ }
+ }
+
protected void composeEvidenceVariable(Complex parent, String parentType, String name, EvidenceVariable element, int index) {
if (element == null)
return;
@@ -9894,6 +10563,9 @@ public class RdfParser extends RdfParserBase {
if (element.hasActualElement()) {
composeBoolean(t, "EvidenceVariable", "actual", element.getActualElement(), -1);
}
+ if (element.hasCharacteristicCombinationElement()) {
+ composeEnum(t, "EvidenceVariable", "characteristicCombination", element.getCharacteristicCombinationElement(), -1);
+ }
for (int i = 0; i < element.getCharacteristic().size(); i++) {
composeEvidenceVariableCharacteristicComponent(t, "EvidenceVariable", "characteristic", element.getCharacteristic().get(i), i);
}
@@ -9921,23 +10593,41 @@ public class RdfParser extends RdfParserBase {
if (element.hasDevice()) {
composeReference(t, "EvidenceVariableCharacteristicComponent", "device", element.getDevice(), -1);
}
- for (int i = 0; i < element.getBooleanSet().size(); i++) {
- composeString(t, "EvidenceVariableCharacteristicComponent", "booleanSet", element.getBooleanSet().get(i), i);
- }
if (element.hasExcludeElement()) {
composeBoolean(t, "EvidenceVariableCharacteristicComponent", "exclude", element.getExcludeElement(), -1);
}
- if (element.hasParticipantEffective()) {
- composeType(t, "EvidenceVariableCharacteristicComponent", "participantEffective", element.getParticipantEffective(), -1);
- }
if (element.hasTimeFromStart()) {
- composeDuration(t, "EvidenceVariableCharacteristicComponent", "timeFromStart", element.getTimeFromStart(), -1);
+ composeEvidenceVariableCharacteristicTimeFromStartComponent(t, "EvidenceVariableCharacteristicComponent", "timeFromStart", element.getTimeFromStart(), -1);
}
if (element.hasGroupMeasureElement()) {
composeEnum(t, "EvidenceVariableCharacteristicComponent", "groupMeasure", element.getGroupMeasureElement(), -1);
}
}
+ protected void composeEvidenceVariableCharacteristicTimeFromStartComponent(Complex parent, String parentType, String name, EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "timeFromStart", name, element, index);
+ if (element.hasDescriptionElement()) {
+ composeString(t, "EvidenceVariableCharacteristicTimeFromStartComponent", "description", element.getDescriptionElement(), -1);
+ }
+ if (element.hasQuantity()) {
+ composeQuantity(t, "EvidenceVariableCharacteristicTimeFromStartComponent", "quantity", element.getQuantity(), -1);
+ }
+ if (element.hasRange()) {
+ composeRange(t, "EvidenceVariableCharacteristicTimeFromStartComponent", "range", element.getRange(), -1);
+ }
+ for (int i = 0; i < element.getNote().size(); i++) {
+ composeAnnotation(t, "EvidenceVariableCharacteristicTimeFromStartComponent", "note", element.getNote().get(i), i);
+ }
+ }
+
protected void composeExampleScenario(Complex parent, String parentType, String name, ExampleScenario element, int index) {
if (element == null)
return;
@@ -12027,11 +12717,11 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getTargetDisease().size(); i++) {
composeCodeableConcept(t, "ImmunizationProtocolAppliedComponent", "targetDisease", element.getTargetDisease().get(i), i);
}
- if (element.hasDoseNumber()) {
- composeType(t, "ImmunizationProtocolAppliedComponent", "doseNumber", element.getDoseNumber(), -1);
+ if (element.hasDoseNumberElement()) {
+ composeString(t, "ImmunizationProtocolAppliedComponent", "doseNumber", element.getDoseNumberElement(), -1);
}
- if (element.hasSeriesDoses()) {
- composeType(t, "ImmunizationProtocolAppliedComponent", "seriesDoses", element.getSeriesDoses(), -1);
+ if (element.hasSeriesDosesElement()) {
+ composeString(t, "ImmunizationProtocolAppliedComponent", "seriesDoses", element.getSeriesDosesElement(), -1);
}
}
@@ -12078,11 +12768,11 @@ public class RdfParser extends RdfParserBase {
if (element.hasSeriesElement()) {
composeString(t, "ImmunizationEvaluation", "series", element.getSeriesElement(), -1);
}
- if (element.hasDoseNumber()) {
- composeType(t, "ImmunizationEvaluation", "doseNumber", element.getDoseNumber(), -1);
+ if (element.hasDoseNumberElement()) {
+ composeString(t, "ImmunizationEvaluation", "doseNumber", element.getDoseNumberElement(), -1);
}
- if (element.hasSeriesDoses()) {
- composeType(t, "ImmunizationEvaluation", "seriesDoses", element.getSeriesDoses(), -1);
+ if (element.hasSeriesDosesElement()) {
+ composeString(t, "ImmunizationEvaluation", "seriesDoses", element.getSeriesDosesElement(), -1);
}
}
@@ -12147,11 +12837,11 @@ public class RdfParser extends RdfParserBase {
if (element.hasSeriesElement()) {
composeString(t, "ImmunizationRecommendationRecommendationComponent", "series", element.getSeriesElement(), -1);
}
- if (element.hasDoseNumber()) {
- composeType(t, "ImmunizationRecommendationRecommendationComponent", "doseNumber", element.getDoseNumber(), -1);
+ if (element.hasDoseNumberElement()) {
+ composeString(t, "ImmunizationRecommendationRecommendationComponent", "doseNumber", element.getDoseNumberElement(), -1);
}
- if (element.hasSeriesDoses()) {
- composeType(t, "ImmunizationRecommendationRecommendationComponent", "seriesDoses", element.getSeriesDoses(), -1);
+ if (element.hasSeriesDosesElement()) {
+ composeString(t, "ImmunizationRecommendationRecommendationComponent", "seriesDoses", element.getSeriesDosesElement(), -1);
}
for (int i = 0; i < element.getSupportingImmunization().size(); i++) {
composeReference(t, "ImmunizationRecommendationRecommendationComponent", "supportingImmunization", element.getSupportingImmunization().get(i), i);
@@ -12513,6 +13203,12 @@ public class RdfParser extends RdfParserBase {
if (element.hasRole()) {
composeCodeableConcept(t, "Ingredient", "role", element.getRole(), -1);
}
+ for (int i = 0; i < element.getFunction().size(); i++) {
+ composeCodeableConcept(t, "Ingredient", "function", element.getFunction().get(i), i);
+ }
+ if (element.hasDescriptionElement()) {
+ composeMarkdown(t, "Ingredient", "description", element.getDescriptionElement(), -1);
+ }
if (element.hasAllergenicIndicatorElement()) {
composeBoolean(t, "Ingredient", "allergenicIndicator", element.getAllergenicIndicatorElement(), -1);
}
@@ -12567,12 +13263,18 @@ public class RdfParser extends RdfParserBase {
if (element.hasPresentationHighLimit()) {
composeRatio(t, "IngredientSpecifiedSubstanceStrengthComponent", "presentationHighLimit", element.getPresentationHighLimit(), -1);
}
+ if (element.hasPresentationTextElement()) {
+ composeString(t, "IngredientSpecifiedSubstanceStrengthComponent", "presentationText", element.getPresentationTextElement(), -1);
+ }
if (element.hasConcentration()) {
composeRatio(t, "IngredientSpecifiedSubstanceStrengthComponent", "concentration", element.getConcentration(), -1);
}
if (element.hasConcentrationHighLimit()) {
composeRatio(t, "IngredientSpecifiedSubstanceStrengthComponent", "concentrationHighLimit", element.getConcentrationHighLimit(), -1);
}
+ if (element.hasConcentrationTextElement()) {
+ composeString(t, "IngredientSpecifiedSubstanceStrengthComponent", "concentrationText", element.getConcentrationTextElement(), -1);
+ }
if (element.hasMeasurementPointElement()) {
composeString(t, "IngredientSpecifiedSubstanceStrengthComponent", "measurementPoint", element.getMeasurementPointElement(), -1);
}
@@ -13356,12 +14058,12 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getIngredient().size(); i++) {
composeReference(t, "ManufacturedItemDefinition", "ingredient", element.getIngredient().get(i), i);
}
- for (int i = 0; i < element.getCharacteristic().size(); i++) {
- composeManufacturedItemDefinitionCharacteristicComponent(t, "ManufacturedItemDefinition", "characteristic", element.getCharacteristic().get(i), i);
+ for (int i = 0; i < element.getProperty().size(); i++) {
+ composeManufacturedItemDefinitionPropertyComponent(t, "ManufacturedItemDefinition", "property", element.getProperty().get(i), i);
}
}
- protected void composeManufacturedItemDefinitionCharacteristicComponent(Complex parent, String parentType, String name, ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent element, int index) {
+ protected void composeManufacturedItemDefinitionPropertyComponent(Complex parent, String parentType, String name, ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent element, int index) {
if (element == null)
return;
Complex t;
@@ -13370,12 +14072,12 @@ public class RdfParser extends RdfParserBase {
else {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
- composeBackboneElement(t, "characteristic", name, element, index);
- if (element.hasCode()) {
- composeCodeableConcept(t, "ManufacturedItemDefinitionCharacteristicComponent", "code", element.getCode(), -1);
+ composeBackboneElement(t, "property", name, element, index);
+ if (element.hasType()) {
+ composeCodeableConcept(t, "ManufacturedItemDefinitionPropertyComponent", "type", element.getType(), -1);
}
if (element.hasValue()) {
- composeType(t, "ManufacturedItemDefinitionCharacteristicComponent", "value", element.getValue(), -1);
+ composeType(t, "ManufacturedItemDefinitionPropertyComponent", "value", element.getValue(), -1);
}
}
@@ -13846,7 +14548,7 @@ public class RdfParser extends RdfParserBase {
}
composeBackboneElement(t, "ingredient", name, element, index);
if (element.hasItem()) {
- composeType(t, "MedicationIngredientComponent", "item", element.getItem(), -1);
+ composeCodeableReference(t, "MedicationIngredientComponent", "item", element.getItem(), -1);
}
if (element.hasIsActiveElement()) {
composeBoolean(t, "MedicationIngredientComponent", "isActive", element.getIsActiveElement(), -1);
@@ -13909,7 +14611,7 @@ public class RdfParser extends RdfParserBase {
composeCodeableConcept(t, "MedicationAdministration", "category", element.getCategory().get(i), i);
}
if (element.hasMedication()) {
- composeType(t, "MedicationAdministration", "medication", element.getMedication(), -1);
+ composeCodeableReference(t, "MedicationAdministration", "medication", element.getMedication(), -1);
}
if (element.hasSubject()) {
composeReference(t, "MedicationAdministration", "subject", element.getSubject(), -1);
@@ -14020,13 +14722,13 @@ public class RdfParser extends RdfParserBase {
composeEnum(t, "MedicationDispense", "status", element.getStatusElement(), -1);
}
if (element.hasStatusReason()) {
- composeType(t, "MedicationDispense", "statusReason", element.getStatusReason(), -1);
+ composeCodeableReference(t, "MedicationDispense", "statusReason", element.getStatusReason(), -1);
}
for (int i = 0; i < element.getCategory().size(); i++) {
composeCodeableConcept(t, "MedicationDispense", "category", element.getCategory().get(i), i);
}
if (element.hasMedication()) {
- composeType(t, "MedicationDispense", "medication", element.getMedication(), -1);
+ composeCodeableReference(t, "MedicationDispense", "medication", element.getMedication(), -1);
}
if (element.hasSubject()) {
composeReference(t, "MedicationDispense", "subject", element.getSubject(), -1);
@@ -14260,7 +14962,7 @@ public class RdfParser extends RdfParserBase {
}
composeBackboneElement(t, "ingredient", name, element, index);
if (element.hasItem()) {
- composeType(t, "MedicationKnowledgeIngredientComponent", "item", element.getItem(), -1);
+ composeCodeableReference(t, "MedicationKnowledgeIngredientComponent", "item", element.getItem(), -1);
}
if (element.hasIsActiveElement()) {
composeBoolean(t, "MedicationKnowledgeIngredientComponent", "isActive", element.getIsActiveElement(), -1);
@@ -14323,7 +15025,7 @@ public class RdfParser extends RdfParserBase {
composeMedicationKnowledgeAdministrationGuidelineDosageComponent(t, "MedicationKnowledgeAdministrationGuidelineComponent", "dosage", element.getDosage().get(i), i);
}
if (element.hasIndication()) {
- composeType(t, "MedicationKnowledgeAdministrationGuidelineComponent", "indication", element.getIndication(), -1);
+ 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);
@@ -14358,11 +15060,11 @@ public class RdfParser extends RdfParserBase {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
composeBackboneElement(t, "patientCharacteristic", name, element, index);
- if (element.hasCharacteristic()) {
- composeType(t, "MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent", "characteristic", element.getCharacteristic(), -1);
+ if (element.hasType()) {
+ composeCodeableConcept(t, "MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent", "type", element.getType(), -1);
}
- for (int i = 0; i < element.getValue().size(); i++) {
- composeString(t, "MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent", "value", element.getValue().get(i), i);
+ if (element.hasValue()) {
+ composeType(t, "MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent", "value", element.getValue(), -1);
}
}
@@ -14545,7 +15247,7 @@ public class RdfParser extends RdfParserBase {
composeReference(t, "MedicationRequest", "informationSource", element.getInformationSource(), -1);
}
if (element.hasMedication()) {
- composeType(t, "MedicationRequest", "medication", element.getMedication(), -1);
+ composeCodeableReference(t, "MedicationRequest", "medication", element.getMedication(), -1);
}
if (element.hasSubject()) {
composeReference(t, "MedicationRequest", "subject", element.getSubject(), -1);
@@ -14716,7 +15418,7 @@ public class RdfParser extends RdfParserBase {
composeCodeableConcept(t, "MedicationUsage", "category", element.getCategory().get(i), i);
}
if (element.hasMedication()) {
- composeType(t, "MedicationUsage", "medication", element.getMedication(), -1);
+ composeCodeableReference(t, "MedicationUsage", "medication", element.getMedication(), -1);
}
if (element.hasSubject()) {
composeReference(t, "MedicationUsage", "subject", element.getSubject(), -1);
@@ -14770,13 +15472,16 @@ public class RdfParser extends RdfParserBase {
composeCodeableConcept(t, "MedicinalProductDefinition", "type", element.getType(), -1);
}
if (element.hasDomain()) {
- composeCoding(t, "MedicinalProductDefinition", "domain", element.getDomain(), -1);
+ composeCodeableConcept(t, "MedicinalProductDefinition", "domain", element.getDomain(), -1);
}
if (element.hasVersionElement()) {
composeString(t, "MedicinalProductDefinition", "version", element.getVersionElement(), -1);
}
if (element.hasStatus()) {
- composeCoding(t, "MedicinalProductDefinition", "status", element.getStatus(), -1);
+ composeCodeableConcept(t, "MedicinalProductDefinition", "status", element.getStatus(), -1);
+ }
+ if (element.hasStatusDateElement()) {
+ composeDateTime(t, "MedicinalProductDefinition", "statusDate", element.getStatusDateElement(), -1);
}
if (element.hasDescriptionElement()) {
composeMarkdown(t, "MedicinalProductDefinition", "description", element.getDescriptionElement(), -1);
@@ -14802,6 +15507,9 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getProductClassification().size(); i++) {
composeCodeableConcept(t, "MedicinalProductDefinition", "productClassification", element.getProductClassification().get(i), i);
}
+ for (int i = 0; i < element.getCharacteristic().size(); i++) {
+ composeCodeableConcept(t, "MedicinalProductDefinition", "characteristic", element.getCharacteristic().get(i), i);
+ }
for (int i = 0; i < element.getMarketingStatus().size(); i++) {
composeMarketingStatus(t, "MedicinalProductDefinition", "marketingStatus", element.getMarketingStatus().get(i), i);
}
@@ -14869,7 +15577,7 @@ public class RdfParser extends RdfParserBase {
composeString(t, "MedicinalProductDefinitionNameComponent", "productName", element.getProductNameElement(), -1);
}
if (element.hasType()) {
- composeCoding(t, "MedicinalProductDefinitionNameComponent", "type", element.getType(), -1);
+ composeCodeableConcept(t, "MedicinalProductDefinitionNameComponent", "type", element.getType(), -1);
}
for (int i = 0; i < element.getNamePart().size(); i++) {
composeMedicinalProductDefinitionNameNamePartComponent(t, "MedicinalProductDefinitionNameComponent", "namePart", element.getNamePart().get(i), i);
@@ -14893,7 +15601,7 @@ public class RdfParser extends RdfParserBase {
composeString(t, "MedicinalProductDefinitionNameNamePartComponent", "part", element.getPartElement(), -1);
}
if (element.hasType()) {
- composeCoding(t, "MedicinalProductDefinitionNameNamePartComponent", "type", element.getType(), -1);
+ composeCodeableConcept(t, "MedicinalProductDefinitionNameNamePartComponent", "type", element.getType(), -1);
}
}
@@ -14932,7 +15640,7 @@ public class RdfParser extends RdfParserBase {
composeType(t, "MedicinalProductDefinitionCrossReferenceComponent", "product", element.getProduct(), -1);
}
if (element.hasType()) {
- composeCoding(t, "MedicinalProductDefinitionCrossReferenceComponent", "type", element.getType(), -1);
+ composeCodeableConcept(t, "MedicinalProductDefinitionCrossReferenceComponent", "type", element.getType(), -1);
}
}
@@ -14947,7 +15655,7 @@ public class RdfParser extends RdfParserBase {
}
composeBackboneElement(t, "manufacturingBusinessOperation", name, element, index);
if (element.hasType()) {
- composeType(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "type", element.getType(), -1);
+ composeCodeableReference(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "type", element.getType(), -1);
}
if (element.hasEffectiveDate()) {
composePeriod(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "effectiveDate", element.getEffectiveDate(), -1);
@@ -15615,6 +16323,12 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getIdentifier().size(); i++) {
composeIdentifier(t, "NutritionIntake", "identifier", element.getIdentifier().get(i), i);
}
+ for (int i = 0; i < element.getInstantiatesCanonical().size(); i++) {
+ composeCanonical(t, "NutritionIntake", "instantiatesCanonical", element.getInstantiatesCanonical().get(i), i);
+ }
+ for (int i = 0; i < element.getInstantiatesUri().size(); i++) {
+ composeUri(t, "NutritionIntake", "instantiatesUri", element.getInstantiatesUri().get(i), i);
+ }
for (int i = 0; i < element.getBasedOn().size(); i++) {
composeReference(t, "NutritionIntake", "basedOn", element.getBasedOn().get(i), i);
}
@@ -15627,14 +16341,8 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getStatusReason().size(); i++) {
composeCodeableConcept(t, "NutritionIntake", "statusReason", element.getStatusReason().get(i), i);
}
- for (int i = 0; i < element.getCategory().size(); i++) {
- composeCodeableConcept(t, "NutritionIntake", "category", element.getCategory().get(i), i);
- }
- for (int i = 0; i < element.getConsumedItem().size(); i++) {
- composeNutritionIntakeConsumedItemComponent(t, "NutritionIntake", "consumedItem", element.getConsumedItem().get(i), i);
- }
- for (int i = 0; i < element.getIngredientLabel().size(); i++) {
- composeNutritionIntakeIngredientLabelComponent(t, "NutritionIntake", "ingredientLabel", element.getIngredientLabel().get(i), i);
+ if (element.hasCode()) {
+ composeCodeableConcept(t, "NutritionIntake", "code", element.getCode(), -1);
}
if (element.hasSubject()) {
composeReference(t, "NutritionIntake", "subject", element.getSubject(), -1);
@@ -15642,20 +16350,32 @@ public class RdfParser extends RdfParserBase {
if (element.hasEncounter()) {
composeReference(t, "NutritionIntake", "encounter", element.getEncounter(), -1);
}
- if (element.hasEffective()) {
- composeType(t, "NutritionIntake", "effective", element.getEffective(), -1);
+ if (element.hasOccurrence()) {
+ composeType(t, "NutritionIntake", "occurrence", element.getOccurrence(), -1);
}
- if (element.hasDateAssertedElement()) {
- composeDateTime(t, "NutritionIntake", "dateAsserted", element.getDateAssertedElement(), -1);
+ if (element.hasRecordedElement()) {
+ composeDateTime(t, "NutritionIntake", "recorded", element.getRecordedElement(), -1);
}
- if (element.hasInformationSource()) {
- composeReference(t, "NutritionIntake", "informationSource", element.getInformationSource(), -1);
+ if (element.hasReported()) {
+ composeType(t, "NutritionIntake", "reported", element.getReported(), -1);
+ }
+ for (int i = 0; i < element.getConsumedItem().size(); i++) {
+ composeNutritionIntakeConsumedItemComponent(t, "NutritionIntake", "consumedItem", element.getConsumedItem().get(i), i);
+ }
+ for (int i = 0; i < element.getIngredientLabel().size(); i++) {
+ composeNutritionIntakeIngredientLabelComponent(t, "NutritionIntake", "ingredientLabel", element.getIngredientLabel().get(i), i);
+ }
+ for (int i = 0; i < element.getPerformer().size(); i++) {
+ composeNutritionIntakePerformerComponent(t, "NutritionIntake", "performer", element.getPerformer().get(i), i);
+ }
+ if (element.hasLocation()) {
+ composeReference(t, "NutritionIntake", "location", element.getLocation(), -1);
}
for (int i = 0; i < element.getDerivedFrom().size(); i++) {
composeReference(t, "NutritionIntake", "derivedFrom", element.getDerivedFrom().get(i), i);
}
- for (int i = 0; i < element.getReasonCode().size(); i++) {
- composeCodeableReference(t, "NutritionIntake", "reasonCode", element.getReasonCode().get(i), i);
+ for (int i = 0; i < element.getReason().size(); i++) {
+ composeCodeableReference(t, "NutritionIntake", "reason", element.getReason().get(i), i);
}
for (int i = 0; i < element.getNote().size(); i++) {
composeAnnotation(t, "NutritionIntake", "note", element.getNote().get(i), i);
@@ -15676,7 +16396,7 @@ public class RdfParser extends RdfParserBase {
composeCodeableConcept(t, "NutritionIntakeConsumedItemComponent", "type", element.getType(), -1);
}
if (element.hasNutritionProduct()) {
- composeCodeableConcept(t, "NutritionIntakeConsumedItemComponent", "nutritionProduct", element.getNutritionProduct(), -1);
+ composeCodeableReference(t, "NutritionIntakeConsumedItemComponent", "nutritionProduct", element.getNutritionProduct(), -1);
}
if (element.hasSchedule()) {
composeTiming(t, "NutritionIntakeConsumedItemComponent", "schedule", element.getSchedule(), -1);
@@ -15706,13 +16426,31 @@ public class RdfParser extends RdfParserBase {
}
composeBackboneElement(t, "ingredientLabel", name, element, index);
if (element.hasNutrient()) {
- composeCodeableConcept(t, "NutritionIntakeIngredientLabelComponent", "nutrient", element.getNutrient(), -1);
+ composeCodeableReference(t, "NutritionIntakeIngredientLabelComponent", "nutrient", element.getNutrient(), -1);
}
if (element.hasAmount()) {
composeQuantity(t, "NutritionIntakeIngredientLabelComponent", "amount", element.getAmount(), -1);
}
}
+ protected void composeNutritionIntakePerformerComponent(Complex parent, String parentType, String name, NutritionIntake.NutritionIntakePerformerComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "performer", name, element, index);
+ if (element.hasFunction()) {
+ composeCodeableConcept(t, "NutritionIntakePerformerComponent", "function", element.getFunction(), -1);
+ }
+ if (element.hasActor()) {
+ composeReference(t, "NutritionIntakePerformerComponent", "actor", element.getActor(), -1);
+ }
+ }
+
protected void composeNutritionOrder(Complex parent, String parentType, String name, NutritionOrder element, int index) {
if (element == null)
return;
@@ -15929,6 +16667,129 @@ public class RdfParser extends RdfParserBase {
}
}
+ protected void composeNutritionProduct(Complex parent, String parentType, String name, NutritionProduct element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeDomainResource(t, "NutritionProduct", name, element, index);
+ if (element.hasStatusElement()) {
+ composeEnum(t, "NutritionProduct", "status", element.getStatusElement(), -1);
+ }
+ for (int i = 0; i < element.getCategory().size(); i++) {
+ composeCodeableConcept(t, "NutritionProduct", "category", element.getCategory().get(i), i);
+ }
+ if (element.hasCode()) {
+ composeCodeableConcept(t, "NutritionProduct", "code", element.getCode(), -1);
+ }
+ for (int i = 0; i < element.getManufacturer().size(); i++) {
+ composeReference(t, "NutritionProduct", "manufacturer", element.getManufacturer().get(i), i);
+ }
+ for (int i = 0; i < element.getNutrient().size(); i++) {
+ composeNutritionProductNutrientComponent(t, "NutritionProduct", "nutrient", element.getNutrient().get(i), i);
+ }
+ for (int i = 0; i < element.getIngredient().size(); i++) {
+ composeNutritionProductIngredientComponent(t, "NutritionProduct", "ingredient", element.getIngredient().get(i), i);
+ }
+ for (int i = 0; i < element.getKnownAllergen().size(); i++) {
+ composeCodeableReference(t, "NutritionProduct", "knownAllergen", element.getKnownAllergen().get(i), i);
+ }
+ for (int i = 0; i < element.getProductCharacteristic().size(); i++) {
+ composeNutritionProductProductCharacteristicComponent(t, "NutritionProduct", "productCharacteristic", element.getProductCharacteristic().get(i), i);
+ }
+ if (element.hasInstance()) {
+ composeNutritionProductInstanceComponent(t, "NutritionProduct", "instance", element.getInstance(), -1);
+ }
+ for (int i = 0; i < element.getNote().size(); i++) {
+ composeAnnotation(t, "NutritionProduct", "note", element.getNote().get(i), i);
+ }
+ }
+
+ protected void composeNutritionProductNutrientComponent(Complex parent, String parentType, String name, NutritionProduct.NutritionProductNutrientComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "nutrient", name, element, index);
+ if (element.hasItem()) {
+ composeCodeableReference(t, "NutritionProductNutrientComponent", "item", element.getItem(), -1);
+ }
+ for (int i = 0; i < element.getAmount().size(); i++) {
+ composeRatio(t, "NutritionProductNutrientComponent", "amount", element.getAmount().get(i), i);
+ }
+ }
+
+ protected void composeNutritionProductIngredientComponent(Complex parent, String parentType, String name, NutritionProduct.NutritionProductIngredientComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "ingredient", name, element, index);
+ if (element.hasItem()) {
+ composeCodeableReference(t, "NutritionProductIngredientComponent", "item", element.getItem(), -1);
+ }
+ for (int i = 0; i < element.getAmount().size(); i++) {
+ composeRatio(t, "NutritionProductIngredientComponent", "amount", element.getAmount().get(i), i);
+ }
+ }
+
+ protected void composeNutritionProductProductCharacteristicComponent(Complex parent, String parentType, String name, NutritionProduct.NutritionProductProductCharacteristicComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "productCharacteristic", name, element, index);
+ if (element.hasType()) {
+ composeCodeableConcept(t, "NutritionProductProductCharacteristicComponent", "type", element.getType(), -1);
+ }
+ if (element.hasValue()) {
+ composeType(t, "NutritionProductProductCharacteristicComponent", "value", element.getValue(), -1);
+ }
+ }
+
+ protected void composeNutritionProductInstanceComponent(Complex parent, String parentType, String name, NutritionProduct.NutritionProductInstanceComponent 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.hasQuantity()) {
+ composeQuantity(t, "NutritionProductInstanceComponent", "quantity", element.getQuantity(), -1);
+ }
+ for (int i = 0; i < element.getIdentifier().size(); i++) {
+ composeIdentifier(t, "NutritionProductInstanceComponent", "identifier", element.getIdentifier().get(i), i);
+ }
+ if (element.hasLotNumberElement()) {
+ composeString(t, "NutritionProductInstanceComponent", "lotNumber", element.getLotNumberElement(), -1);
+ }
+ if (element.hasExpiryElement()) {
+ composeDateTime(t, "NutritionProductInstanceComponent", "expiry", element.getExpiryElement(), -1);
+ }
+ if (element.hasUseByElement()) {
+ composeDateTime(t, "NutritionProductInstanceComponent", "useBy", element.getUseByElement(), -1);
+ }
+ }
+
protected void composeObservation(Complex parent, String parentType, String name, Observation element, int index) {
if (element == null)
return;
@@ -16641,11 +17502,20 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getIdentifier().size(); i++) {
composeIdentifier(t, "PackagedProductDefinition", "identifier", element.getIdentifier().get(i), i);
}
+ if (element.hasNameElement()) {
+ composeString(t, "PackagedProductDefinition", "name", element.getNameElement(), -1);
+ }
for (int i = 0; i < element.getSubject().size(); i++) {
composeReference(t, "PackagedProductDefinition", "subject", element.getSubject().get(i), i);
}
+ if (element.hasStatus()) {
+ composeCodeableConcept(t, "PackagedProductDefinition", "status", element.getStatus(), -1);
+ }
+ if (element.hasStatusDateElement()) {
+ composeDateTime(t, "PackagedProductDefinition", "statusDate", element.getStatusDateElement(), -1);
+ }
if (element.hasDescriptionElement()) {
- composeString(t, "PackagedProductDefinition", "description", element.getDescriptionElement(), -1);
+ composeMarkdown(t, "PackagedProductDefinition", "description", element.getDescriptionElement(), -1);
}
if (element.hasLegalStatusOfSupply()) {
composeCodeableConcept(t, "PackagedProductDefinition", "legalStatusOfSupply", element.getLegalStatusOfSupply(), -1);
@@ -16653,6 +17523,9 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getMarketingStatus().size(); i++) {
composeMarketingStatus(t, "PackagedProductDefinition", "marketingStatus", element.getMarketingStatus().get(i), i);
}
+ for (int i = 0; i < element.getCharacteristic().size(); i++) {
+ composeCodeableConcept(t, "PackagedProductDefinition", "characteristic", element.getCharacteristic().get(i), i);
+ }
if (element.hasCopackagedIndicatorElement()) {
composeBoolean(t, "PackagedProductDefinition", "copackagedIndicator", element.getCopackagedIndicatorElement(), -1);
}
@@ -16704,8 +17577,8 @@ public class RdfParser extends RdfParserBase {
if (element.hasType()) {
composeCodeableConcept(t, "PackagedProductDefinitionPackageComponent", "type", element.getType(), -1);
}
- if (element.hasQuantity()) {
- composeQuantity(t, "PackagedProductDefinitionPackageComponent", "quantity", element.getQuantity(), -1);
+ if (element.hasQuantityElement()) {
+ composeInteger(t, "PackagedProductDefinitionPackageComponent", "quantity", element.getQuantityElement(), -1);
}
for (int i = 0; i < element.getMaterial().size(); i++) {
composeCodeableConcept(t, "PackagedProductDefinitionPackageComponent", "material", element.getMaterial().get(i), i);
@@ -16719,8 +17592,8 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getManufacturer().size(); i++) {
composeReference(t, "PackagedProductDefinitionPackageComponent", "manufacturer", element.getManufacturer().get(i), i);
}
- for (int i = 0; i < element.getCharacteristic().size(); i++) {
- composePackagedProductDefinitionPackageCharacteristicComponent(t, "PackagedProductDefinitionPackageComponent", "characteristic", element.getCharacteristic().get(i), i);
+ for (int i = 0; i < element.getProperty().size(); i++) {
+ composePackagedProductDefinitionPackagePropertyComponent(t, "PackagedProductDefinitionPackageComponent", "property", element.getProperty().get(i), i);
}
for (int i = 0; i < element.getContainedItem().size(); i++) {
composePackagedProductDefinitionPackageContainedItemComponent(t, "PackagedProductDefinitionPackageComponent", "containedItem", element.getContainedItem().get(i), i);
@@ -16730,7 +17603,7 @@ public class RdfParser extends RdfParserBase {
}
}
- protected void composePackagedProductDefinitionPackageCharacteristicComponent(Complex parent, String parentType, String name, PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent element, int index) {
+ protected void composePackagedProductDefinitionPackagePropertyComponent(Complex parent, String parentType, String name, PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent element, int index) {
if (element == null)
return;
Complex t;
@@ -16739,12 +17612,12 @@ public class RdfParser extends RdfParserBase {
else {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
- composeBackboneElement(t, "characteristic", name, element, index);
- if (element.hasCode()) {
- composeCodeableConcept(t, "PackagedProductDefinitionPackageCharacteristicComponent", "code", element.getCode(), -1);
+ composeBackboneElement(t, "property", name, element, index);
+ if (element.hasType()) {
+ composeCodeableConcept(t, "PackagedProductDefinitionPackagePropertyComponent", "type", element.getType(), -1);
}
if (element.hasValue()) {
- composeType(t, "PackagedProductDefinitionPackageCharacteristicComponent", "value", element.getValue(), -1);
+ composeType(t, "PackagedProductDefinitionPackagePropertyComponent", "value", element.getValue(), -1);
}
}
@@ -17099,6 +17972,87 @@ public class RdfParser extends RdfParserBase {
}
}
+ protected void composePermission(Complex parent, String parentType, String name, Permission element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeDomainResource(t, "Permission", name, element, index);
+ if (element.hasStatusElement()) {
+ composeEnum(t, "Permission", "status", element.getStatusElement(), -1);
+ }
+ if (element.hasIntent()) {
+ composeCodeableConcept(t, "Permission", "intent", element.getIntent(), -1);
+ }
+ if (element.hasAsserter()) {
+ composeReference(t, "Permission", "asserter", element.getAsserter(), -1);
+ }
+ for (int i = 0; i < element.getAssertionDate().size(); i++) {
+ composeDateTime(t, "Permission", "assertionDate", element.getAssertionDate().get(i), i);
+ }
+ if (element.hasValidity()) {
+ composePeriod(t, "Permission", "validity", element.getValidity(), -1);
+ }
+ for (int i = 0; i < element.getPurpose().size(); i++) {
+ composeCodeableConcept(t, "Permission", "purpose", element.getPurpose().get(i), i);
+ }
+ for (int i = 0; i < element.getDataScope().size(); i++) {
+ composeExpression(t, "Permission", "dataScope", element.getDataScope().get(i), i);
+ }
+ for (int i = 0; i < element.getProcessingActivity().size(); i++) {
+ composePermissionProcessingActivityComponent(t, "Permission", "processingActivity", element.getProcessingActivity().get(i), i);
+ }
+ if (element.hasJustification()) {
+ composePermissionJustificationComponent(t, "Permission", "justification", element.getJustification(), -1);
+ }
+ for (int i = 0; i < element.getUsageLimitations().size(); i++) {
+ composeCodeableConcept(t, "Permission", "usageLimitations", element.getUsageLimitations().get(i), i);
+ }
+ }
+
+ protected void composePermissionProcessingActivityComponent(Complex parent, String parentType, String name, Permission.PermissionProcessingActivityComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "processingActivity", name, element, index);
+ for (int i = 0; i < element.getPartyReference().size(); i++) {
+ composeReference(t, "PermissionProcessingActivityComponent", "partyReference", element.getPartyReference().get(i), i);
+ }
+ for (int i = 0; i < element.getPartyCodeableConcept().size(); i++) {
+ composeCodeableConcept(t, "PermissionProcessingActivityComponent", "partyCodeableConcept", element.getPartyCodeableConcept().get(i), i);
+ }
+ for (int i = 0; i < element.getPurpose().size(); i++) {
+ composeCodeableConcept(t, "PermissionProcessingActivityComponent", "purpose", element.getPurpose().get(i), i);
+ }
+ }
+
+ protected void composePermissionJustificationComponent(Complex parent, String parentType, String name, Permission.PermissionJustificationComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "justification", name, element, index);
+ for (int i = 0; i < element.getEvidence().size(); i++) {
+ composeReference(t, "PermissionJustificationComponent", "evidence", element.getEvidence().get(i), i);
+ }
+ for (int i = 0; i < element.getGrounds().size(); i++) {
+ composeCodeableConcept(t, "PermissionJustificationComponent", "grounds", element.getGrounds().get(i), i);
+ }
+ }
+
protected void composePerson(Complex parent, String parentType, String name, Person element, int index) {
if (element == null)
return;
@@ -18183,6 +19137,12 @@ public class RdfParser extends RdfParserBase {
if (element.hasValidityPeriod()) {
composePeriod(t, "RegulatedAuthorization", "validityPeriod", element.getValidityPeriod(), -1);
}
+ if (element.hasIndication()) {
+ composeType(t, "RegulatedAuthorization", "indication", element.getIndication(), -1);
+ }
+ if (element.hasIntendedUse()) {
+ composeCodeableConcept(t, "RegulatedAuthorization", "intendedUse", element.getIntendedUse(), -1);
+ }
for (int i = 0; i < element.getBasis().size(); i++) {
composeCodeableConcept(t, "RegulatedAuthorization", "basis", element.getBasis().get(i), i);
}
@@ -19890,11 +20850,26 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getError().size(); i++) {
composeCodeableConcept(t, "Subscription", "error", element.getError().get(i), i);
}
- if (element.hasEventCountElement()) {
- composeUnsignedInt(t, "Subscription", "eventCount", element.getEventCountElement(), -1);
+ if (element.hasChannelType()) {
+ composeCoding(t, "Subscription", "channelType", element.getChannelType(), -1);
}
- if (element.hasChannel()) {
- composeSubscriptionChannelComponent(t, "Subscription", "channel", element.getChannel(), -1);
+ if (element.hasEndpointElement()) {
+ composeUrl(t, "Subscription", "endpoint", element.getEndpointElement(), -1);
+ }
+ for (int i = 0; i < element.getHeader().size(); i++) {
+ composeString(t, "Subscription", "header", element.getHeader().get(i), i);
+ }
+ if (element.hasHeartbeatPeriodElement()) {
+ composeUnsignedInt(t, "Subscription", "heartbeatPeriod", element.getHeartbeatPeriodElement(), -1);
+ }
+ if (element.hasTimeoutElement()) {
+ composeUnsignedInt(t, "Subscription", "timeout", element.getTimeoutElement(), -1);
+ }
+ if (element.hasContentTypeElement()) {
+ composeCode(t, "Subscription", "contentType", element.getContentTypeElement(), -1);
+ }
+ if (element.hasContentElement()) {
+ composeEnum(t, "Subscription", "content", element.getContentElement(), -1);
}
}
@@ -19908,18 +20883,18 @@ public class RdfParser extends RdfParserBase {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
composeBackboneElement(t, "filterBy", name, element, index);
- if (element.hasNameElement()) {
- composeString(t, "SubscriptionFilterByComponent", "name", element.getNameElement(), -1);
+ if (element.hasSearchParamNameElement()) {
+ composeString(t, "SubscriptionFilterByComponent", "searchParamName", element.getSearchParamNameElement(), -1);
}
- if (element.hasMatchTypeElement()) {
- composeEnum(t, "SubscriptionFilterByComponent", "matchType", element.getMatchTypeElement(), -1);
+ if (element.hasSearchModifierElement()) {
+ composeEnum(t, "SubscriptionFilterByComponent", "searchModifier", element.getSearchModifierElement(), -1);
}
if (element.hasValueElement()) {
composeString(t, "SubscriptionFilterByComponent", "value", element.getValueElement(), -1);
}
}
- protected void composeSubscriptionChannelComponent(Complex parent, String parentType, String name, Subscription.SubscriptionChannelComponent element, int index) {
+ protected void composeSubscriptionStatus(Complex parent, String parentType, String name, SubscriptionStatus element, int index) {
if (element == null)
return;
Complex t;
@@ -19928,25 +20903,28 @@ public class RdfParser extends RdfParserBase {
else {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
- composeBackboneElement(t, "channel", name, element, index);
- if (element.hasType()) {
- composeCodeableConcept(t, "SubscriptionChannelComponent", "type", element.getType(), -1);
+ composeDomainResource(t, "SubscriptionStatus", name, element, index);
+ if (element.hasNotificationTypeElement()) {
+ composeEnum(t, "SubscriptionStatus", "notificationType", element.getNotificationTypeElement(), -1);
}
- if (element.hasEndpointElement()) {
- composeUrl(t, "SubscriptionChannelComponent", "endpoint", element.getEndpointElement(), -1);
+ if (element.hasEventsSinceSubscriptionStartElement()) {
+ composeInteger64(t, "SubscriptionStatus", "eventsSinceSubscriptionStart", element.getEventsSinceSubscriptionStartElement(), -1);
}
- for (int i = 0; i < element.getHeader().size(); i++) {
- composeString(t, "SubscriptionChannelComponent", "header", element.getHeader().get(i), i);
+ if (element.hasEventsInNotificationElement()) {
+ composeInteger(t, "SubscriptionStatus", "eventsInNotification", element.getEventsInNotificationElement(), -1);
}
- if (element.hasHeartbeatPeriodElement()) {
- composeUnsignedInt(t, "SubscriptionChannelComponent", "heartbeatPeriod", element.getHeartbeatPeriodElement(), -1);
+ if (element.hasSubscription()) {
+ composeReference(t, "SubscriptionStatus", "subscription", element.getSubscription(), -1);
}
- if (element.hasPayload()) {
- composeSubscriptionChannelPayloadComponent(t, "SubscriptionChannelComponent", "payload", element.getPayload(), -1);
+ if (element.hasStatusElement()) {
+ composeEnum(t, "SubscriptionStatus", "status", element.getStatusElement(), -1);
+ }
+ if (element.hasTopic()) {
+ composeReference(t, "SubscriptionStatus", "topic", element.getTopic(), -1);
}
}
- protected void composeSubscriptionChannelPayloadComponent(Complex parent, String parentType, String name, Subscription.SubscriptionChannelPayloadComponent element, int index) {
+ protected void composeSubscriptionTopic(Complex parent, String parentType, String name, SubscriptionTopic element, int index) {
if (element == null)
return;
Complex t;
@@ -19955,12 +20933,138 @@ public class RdfParser extends RdfParserBase {
else {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
- composeBackboneElement(t, "payload", name, element, index);
- if (element.hasContentTypeElement()) {
- composeCode(t, "SubscriptionChannelPayloadComponent", "contentType", element.getContentTypeElement(), -1);
+ composeDomainResource(t, "SubscriptionTopic", name, element, index);
+ if (element.hasUrlElement()) {
+ composeUri(t, "SubscriptionTopic", "url", element.getUrlElement(), -1);
}
- if (element.hasContentElement()) {
- composeEnum(t, "SubscriptionChannelPayloadComponent", "content", element.getContentElement(), -1);
+ for (int i = 0; i < element.getIdentifier().size(); i++) {
+ composeIdentifier(t, "SubscriptionTopic", "identifier", element.getIdentifier().get(i), i);
+ }
+ if (element.hasVersionElement()) {
+ composeString(t, "SubscriptionTopic", "version", element.getVersionElement(), -1);
+ }
+ if (element.hasTitleElement()) {
+ composeString(t, "SubscriptionTopic", "title", element.getTitleElement(), -1);
+ }
+ for (int i = 0; i < element.getDerivedFromCanonical().size(); i++) {
+ composeCanonical(t, "SubscriptionTopic", "derivedFromCanonical", element.getDerivedFromCanonical().get(i), i);
+ }
+ for (int i = 0; i < element.getDerivedFromUri().size(); i++) {
+ composeUri(t, "SubscriptionTopic", "derivedFromUri", element.getDerivedFromUri().get(i), i);
+ }
+ if (element.hasStatusElement()) {
+ composeEnum(t, "SubscriptionTopic", "status", element.getStatusElement(), -1);
+ }
+ if (element.hasExperimentalElement()) {
+ composeBoolean(t, "SubscriptionTopic", "experimental", element.getExperimentalElement(), -1);
+ }
+ if (element.hasDateElement()) {
+ composeDateTime(t, "SubscriptionTopic", "date", element.getDateElement(), -1);
+ }
+ if (element.hasPublisher()) {
+ composeReference(t, "SubscriptionTopic", "publisher", element.getPublisher(), -1);
+ }
+ for (int i = 0; i < element.getContact().size(); i++) {
+ composeContactDetail(t, "SubscriptionTopic", "contact", element.getContact().get(i), i);
+ }
+ if (element.hasDescriptionElement()) {
+ composeMarkdown(t, "SubscriptionTopic", "description", element.getDescriptionElement(), -1);
+ }
+ for (int i = 0; i < element.getUseContext().size(); i++) {
+ composeUsageContext(t, "SubscriptionTopic", "useContext", element.getUseContext().get(i), i);
+ }
+ for (int i = 0; i < element.getJurisdiction().size(); i++) {
+ composeCodeableConcept(t, "SubscriptionTopic", "jurisdiction", element.getJurisdiction().get(i), i);
+ }
+ if (element.hasPurposeElement()) {
+ composeMarkdown(t, "SubscriptionTopic", "purpose", element.getPurposeElement(), -1);
+ }
+ if (element.hasCopyrightElement()) {
+ composeMarkdown(t, "SubscriptionTopic", "copyright", element.getCopyrightElement(), -1);
+ }
+ if (element.hasApprovalDateElement()) {
+ composeDate(t, "SubscriptionTopic", "approvalDate", element.getApprovalDateElement(), -1);
+ }
+ if (element.hasLastReviewDateElement()) {
+ composeDate(t, "SubscriptionTopic", "lastReviewDate", element.getLastReviewDateElement(), -1);
+ }
+ 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);
+ }
+ }
+
+ protected void composeSubscriptionTopicResourceTriggerComponent(Complex parent, String parentType, String name, SubscriptionTopic.SubscriptionTopicResourceTriggerComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "resourceTrigger", name, element, index);
+ 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);
+ }
+ for (int i = 0; i < element.getMethodCriteria().size(); i++) {
+ composeEnum(t, "SubscriptionTopicResourceTriggerComponent", "methodCriteria", element.getMethodCriteria().get(i), i);
+ }
+ if (element.hasQueryCriteria()) {
+ composeSubscriptionTopicResourceTriggerQueryCriteriaComponent(t, "SubscriptionTopicResourceTriggerComponent", "queryCriteria", element.getQueryCriteria(), -1);
+ }
+ for (int i = 0; i < element.getFhirPathCriteria().size(); i++) {
+ composeString(t, "SubscriptionTopicResourceTriggerComponent", "fhirPathCriteria", element.getFhirPathCriteria().get(i), i);
+ }
+ }
+
+ protected void composeSubscriptionTopicResourceTriggerQueryCriteriaComponent(Complex parent, String parentType, String name, SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent element, int index) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "queryCriteria", name, element, index);
+ if (element.hasPreviousElement()) {
+ composeString(t, "SubscriptionTopicResourceTriggerQueryCriteriaComponent", "previous", element.getPreviousElement(), -1);
+ }
+ if (element.hasCurrentElement()) {
+ composeString(t, "SubscriptionTopicResourceTriggerQueryCriteriaComponent", "current", element.getCurrentElement(), -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) {
+ if (element == null)
+ return;
+ Complex t;
+ if (Utilities.noString(parentType))
+ t = parent;
+ else {
+ t = parent.predicate("fhir:"+parentType+'.'+name);
+ }
+ composeBackboneElement(t, "canFilterBy", name, element, index);
+ if (element.hasSearchParamNameElement()) {
+ composeString(t, "SubscriptionTopicCanFilterByComponent", "searchParamName", element.getSearchParamNameElement(), -1);
+ }
+ for (int i = 0; i < element.getSearchModifier().size(); i++) {
+ composeEnum(t, "SubscriptionTopicCanFilterByComponent", "searchModifier", element.getSearchModifier().get(i), i);
+ }
+ if (element.hasDocumentationElement()) {
+ composeMarkdown(t, "SubscriptionTopicCanFilterByComponent", "documentation", element.getDocumentationElement(), -1);
}
}
@@ -20211,8 +21315,8 @@ public class RdfParser extends RdfParserBase {
if (element.hasMolecularWeight()) {
composeSubstanceDefinitionStructureIsotopeMolecularWeightComponent(t, "SubstanceDefinitionStructureComponent", "molecularWeight", element.getMolecularWeight(), -1);
}
- for (int i = 0; i < element.getSourceCoding().size(); i++) {
- composeCoding(t, "SubstanceDefinitionStructureComponent", "sourceCoding", element.getSourceCoding().get(i), i);
+ for (int i = 0; i < element.getTechnique().size(); i++) {
+ composeCodeableConcept(t, "SubstanceDefinitionStructureComponent", "technique", element.getTechnique().get(i), i);
}
for (int i = 0; i < element.getSourceDocument().size(); i++) {
composeReference(t, "SubstanceDefinitionStructureComponent", "sourceDocument", element.getSourceDocument().get(i), i);
@@ -20286,6 +21390,9 @@ public class RdfParser extends RdfParserBase {
if (element.hasRepresentationElement()) {
composeString(t, "SubstanceDefinitionStructureRepresentationComponent", "representation", element.getRepresentationElement(), -1);
}
+ if (element.hasFormat()) {
+ composeCodeableConcept(t, "SubstanceDefinitionStructureRepresentationComponent", "format", element.getFormat(), -1);
+ }
if (element.hasAttachment()) {
composeAttachment(t, "SubstanceDefinitionStructureRepresentationComponent", "attachment", element.getAttachment(), -1);
}
@@ -20535,6 +21642,9 @@ public class RdfParser extends RdfParserBase {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
composeDomainResource(t, "SubstancePolymer", name, element, index);
+ if (element.hasIdentifier()) {
+ composeIdentifier(t, "SubstancePolymer", "identifier", element.getIdentifier(), -1);
+ }
if (element.hasClass_()) {
composeCodeableConcept(t, "SubstancePolymer", "class", element.getClass_(), -1);
}
@@ -20544,8 +21654,8 @@ public class RdfParser extends RdfParserBase {
for (int i = 0; i < element.getCopolymerConnectivity().size(); i++) {
composeCodeableConcept(t, "SubstancePolymer", "copolymerConnectivity", element.getCopolymerConnectivity().get(i), i);
}
- for (int i = 0; i < element.getModification().size(); i++) {
- composeString(t, "SubstancePolymer", "modification", element.getModification().get(i), i);
+ if (element.hasModificationElement()) {
+ composeString(t, "SubstancePolymer", "modification", element.getModificationElement(), -1);
}
for (int i = 0; i < element.getMonomerSet().size(); i++) {
composeSubstancePolymerMonomerSetComponent(t, "SubstancePolymer", "monomerSet", element.getMonomerSet().get(i), i);
@@ -20583,11 +21693,11 @@ public class RdfParser extends RdfParserBase {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
composeBackboneElement(t, "startingMaterial", name, element, index);
- if (element.hasMaterial()) {
- composeCodeableConcept(t, "SubstancePolymerMonomerSetStartingMaterialComponent", "material", element.getMaterial(), -1);
+ if (element.hasCode()) {
+ composeCodeableConcept(t, "SubstancePolymerMonomerSetStartingMaterialComponent", "code", element.getCode(), -1);
}
- if (element.hasType()) {
- composeCodeableConcept(t, "SubstancePolymerMonomerSetStartingMaterialComponent", "type", element.getType(), -1);
+ if (element.hasCategory()) {
+ composeCodeableConcept(t, "SubstancePolymerMonomerSetStartingMaterialComponent", "category", element.getCategory(), -1);
}
if (element.hasIsDefiningElement()) {
composeBoolean(t, "SubstancePolymerMonomerSetStartingMaterialComponent", "isDefining", element.getIsDefiningElement(), -1);
@@ -20631,11 +21741,11 @@ public class RdfParser extends RdfParserBase {
t = parent.predicate("fhir:"+parentType+'.'+name);
}
composeBackboneElement(t, "repeatUnit", name, element, index);
- if (element.hasOrientationOfPolymerisation()) {
- composeCodeableConcept(t, "SubstancePolymerRepeatRepeatUnitComponent", "orientationOfPolymerisation", element.getOrientationOfPolymerisation(), -1);
+ if (element.hasUnitElement()) {
+ composeString(t, "SubstancePolymerRepeatRepeatUnitComponent", "unit", element.getUnitElement(), -1);
}
- if (element.hasRepeatUnitElement()) {
- composeString(t, "SubstancePolymerRepeatRepeatUnitComponent", "repeatUnit", element.getRepeatUnitElement(), -1);
+ if (element.hasOrientation()) {
+ composeCodeableConcept(t, "SubstancePolymerRepeatRepeatUnitComponent", "orientation", element.getOrientation(), -1);
}
if (element.hasAmount()) {
composeSubstanceAmount(t, "SubstancePolymerRepeatRepeatUnitComponent", "amount", element.getAmount(), -1);
@@ -20682,6 +21792,9 @@ public class RdfParser extends RdfParserBase {
if (element.hasRepresentationElement()) {
composeString(t, "SubstancePolymerRepeatRepeatUnitStructuralRepresentationComponent", "representation", element.getRepresentationElement(), -1);
}
+ if (element.hasFormat()) {
+ composeCodeableConcept(t, "SubstancePolymerRepeatRepeatUnitStructuralRepresentationComponent", "format", element.getFormat(), -1);
+ }
if (element.hasAttachment()) {
composeAttachment(t, "SubstancePolymerRepeatRepeatUnitStructuralRepresentationComponent", "attachment", element.getAttachment(), -1);
}
@@ -21154,7 +22267,7 @@ public class RdfParser extends RdfParserBase {
composeEnum(t, "SupplyRequest", "priority", element.getPriorityElement(), -1);
}
if (element.hasItem()) {
- composeType(t, "SupplyRequest", "item", element.getItem(), -1);
+ composeCodeableReference(t, "SupplyRequest", "item", element.getItem(), -1);
}
if (element.hasQuantity()) {
composeQuantity(t, "SupplyRequest", "quantity", element.getQuantity(), -1);
@@ -21378,6 +22491,9 @@ public class RdfParser extends RdfParserBase {
if (element.hasUrlElement()) {
composeUri(t, "TerminologyCapabilities", "url", element.getUrlElement(), -1);
}
+ for (int i = 0; i < element.getIdentifier().size(); i++) {
+ composeIdentifier(t, "TerminologyCapabilities", "identifier", element.getIdentifier().get(i), i);
+ }
if (element.hasVersionElement()) {
composeString(t, "TerminologyCapabilities", "version", element.getVersionElement(), -1);
}
@@ -22364,150 +23480,6 @@ public class RdfParser extends RdfParserBase {
}
}
- protected void composeTopic(Complex parent, String parentType, String name, Topic element, int index) {
- if (element == null)
- return;
- Complex t;
- if (Utilities.noString(parentType))
- t = parent;
- else {
- t = parent.predicate("fhir:"+parentType+'.'+name);
- }
- composeDomainResource(t, "Topic", name, element, index);
- if (element.hasUrlElement()) {
- composeUri(t, "Topic", "url", element.getUrlElement(), -1);
- }
- for (int i = 0; i < element.getIdentifier().size(); i++) {
- composeIdentifier(t, "Topic", "identifier", element.getIdentifier().get(i), i);
- }
- if (element.hasVersionElement()) {
- composeString(t, "Topic", "version", element.getVersionElement(), -1);
- }
- if (element.hasTitleElement()) {
- composeString(t, "Topic", "title", element.getTitleElement(), -1);
- }
- for (int i = 0; i < element.getDerivedFromCanonical().size(); i++) {
- composeCanonical(t, "Topic", "derivedFromCanonical", element.getDerivedFromCanonical().get(i), i);
- }
- for (int i = 0; i < element.getDerivedFromUri().size(); i++) {
- composeUri(t, "Topic", "derivedFromUri", element.getDerivedFromUri().get(i), i);
- }
- if (element.hasStatusElement()) {
- composeEnum(t, "Topic", "status", element.getStatusElement(), -1);
- }
- if (element.hasExperimentalElement()) {
- composeBoolean(t, "Topic", "experimental", element.getExperimentalElement(), -1);
- }
- if (element.hasDateElement()) {
- composeDateTime(t, "Topic", "date", element.getDateElement(), -1);
- }
- if (element.hasPublisher()) {
- composeReference(t, "Topic", "publisher", element.getPublisher(), -1);
- }
- for (int i = 0; i < element.getContact().size(); i++) {
- composeContactDetail(t, "Topic", "contact", element.getContact().get(i), i);
- }
- if (element.hasDescriptionElement()) {
- composeMarkdown(t, "Topic", "description", element.getDescriptionElement(), -1);
- }
- for (int i = 0; i < element.getUseContext().size(); i++) {
- composeUsageContext(t, "Topic", "useContext", element.getUseContext().get(i), i);
- }
- for (int i = 0; i < element.getJurisdiction().size(); i++) {
- composeCodeableConcept(t, "Topic", "jurisdiction", element.getJurisdiction().get(i), i);
- }
- if (element.hasPurposeElement()) {
- composeMarkdown(t, "Topic", "purpose", element.getPurposeElement(), -1);
- }
- if (element.hasCopyrightElement()) {
- composeMarkdown(t, "Topic", "copyright", element.getCopyrightElement(), -1);
- }
- if (element.hasApprovalDateElement()) {
- composeDate(t, "Topic", "approvalDate", element.getApprovalDateElement(), -1);
- }
- if (element.hasLastReviewDateElement()) {
- composeDate(t, "Topic", "lastReviewDate", element.getLastReviewDateElement(), -1);
- }
- if (element.hasEffectivePeriod()) {
- composePeriod(t, "Topic", "effectivePeriod", element.getEffectivePeriod(), -1);
- }
- if (element.hasResourceTrigger()) {
- composeTopicResourceTriggerComponent(t, "Topic", "resourceTrigger", element.getResourceTrigger(), -1);
- }
- for (int i = 0; i < element.getCanFilterBy().size(); i++) {
- composeTopicCanFilterByComponent(t, "Topic", "canFilterBy", element.getCanFilterBy().get(i), i);
- }
- }
-
- protected void composeTopicResourceTriggerComponent(Complex parent, String parentType, String name, Topic.TopicResourceTriggerComponent element, int index) {
- if (element == null)
- return;
- Complex t;
- if (Utilities.noString(parentType))
- t = parent;
- else {
- t = parent.predicate("fhir:"+parentType+'.'+name);
- }
- composeBackboneElement(t, "resourceTrigger", name, element, index);
- if (element.hasDescriptionElement()) {
- composeString(t, "TopicResourceTriggerComponent", "description", element.getDescriptionElement(), -1);
- }
- for (int i = 0; i < element.getResourceType().size(); i++) {
- composeCode(t, "TopicResourceTriggerComponent", "resourceType", element.getResourceType().get(i), i);
- }
- for (int i = 0; i < element.getMethodCriteria().size(); i++) {
- composeEnum(t, "TopicResourceTriggerComponent", "methodCriteria", element.getMethodCriteria().get(i), i);
- }
- if (element.hasQueryCriteria()) {
- composeTopicResourceTriggerQueryCriteriaComponent(t, "TopicResourceTriggerComponent", "queryCriteria", element.getQueryCriteria(), -1);
- }
- if (element.hasFhirPathCriteriaElement()) {
- composeString(t, "TopicResourceTriggerComponent", "fhirPathCriteria", element.getFhirPathCriteriaElement(), -1);
- }
- }
-
- protected void composeTopicResourceTriggerQueryCriteriaComponent(Complex parent, String parentType, String name, Topic.TopicResourceTriggerQueryCriteriaComponent element, int index) {
- if (element == null)
- return;
- Complex t;
- if (Utilities.noString(parentType))
- t = parent;
- else {
- t = parent.predicate("fhir:"+parentType+'.'+name);
- }
- composeBackboneElement(t, "queryCriteria", name, element, index);
- if (element.hasPreviousElement()) {
- composeString(t, "TopicResourceTriggerQueryCriteriaComponent", "previous", element.getPreviousElement(), -1);
- }
- if (element.hasCurrentElement()) {
- composeString(t, "TopicResourceTriggerQueryCriteriaComponent", "current", element.getCurrentElement(), -1);
- }
- if (element.hasRequireBothElement()) {
- composeBoolean(t, "TopicResourceTriggerQueryCriteriaComponent", "requireBoth", element.getRequireBothElement(), -1);
- }
- }
-
- protected void composeTopicCanFilterByComponent(Complex parent, String parentType, String name, Topic.TopicCanFilterByComponent element, int index) {
- if (element == null)
- return;
- Complex t;
- if (Utilities.noString(parentType))
- t = parent;
- else {
- t = parent.predicate("fhir:"+parentType+'.'+name);
- }
- composeBackboneElement(t, "canFilterBy", name, element, index);
- if (element.hasNameElement()) {
- composeString(t, "TopicCanFilterByComponent", "name", element.getNameElement(), -1);
- }
- for (int i = 0; i < element.getMatchType().size(); i++) {
- composeEnum(t, "TopicCanFilterByComponent", "matchType", element.getMatchType().get(i), i);
- }
- if (element.hasDocumentationElement()) {
- composeMarkdown(t, "TopicCanFilterByComponent", "documentation", element.getDocumentationElement(), -1);
- }
- }
-
protected void composeValueSet(Complex parent, String parentType, String name, ValueSet element, int index) {
if (element == null)
return;
@@ -23118,6 +24090,8 @@ public class RdfParser extends RdfParserBase {
composeChargeItem(parent, null, "ChargeItem", (ChargeItem)resource, -1);
} else if (resource instanceof ChargeItemDefinition) {
composeChargeItemDefinition(parent, null, "ChargeItemDefinition", (ChargeItemDefinition)resource, -1);
+ } else if (resource instanceof Citation) {
+ composeCitation(parent, null, "Citation", (Citation)resource, -1);
} else if (resource instanceof Claim) {
composeClaim(parent, null, "Claim", (Claim)resource, -1);
} else if (resource instanceof ClaimResponse) {
@@ -23184,6 +24158,8 @@ public class RdfParser extends RdfParserBase {
composeEventDefinition(parent, null, "EventDefinition", (EventDefinition)resource, -1);
} else if (resource instanceof Evidence) {
composeEvidence(parent, null, "Evidence", (Evidence)resource, -1);
+ } else if (resource instanceof EvidenceFocus) {
+ composeEvidenceFocus(parent, null, "EvidenceFocus", (EvidenceFocus)resource, -1);
} else if (resource instanceof EvidenceVariable) {
composeEvidenceVariable(parent, null, "EvidenceVariable", (EvidenceVariable)resource, -1);
} else if (resource instanceof ExampleScenario) {
@@ -23260,6 +24236,8 @@ public class RdfParser extends RdfParserBase {
composeNutritionIntake(parent, null, "NutritionIntake", (NutritionIntake)resource, -1);
} else if (resource instanceof NutritionOrder) {
composeNutritionOrder(parent, null, "NutritionOrder", (NutritionOrder)resource, -1);
+ } else if (resource instanceof NutritionProduct) {
+ composeNutritionProduct(parent, null, "NutritionProduct", (NutritionProduct)resource, -1);
} else if (resource instanceof Observation) {
composeObservation(parent, null, "Observation", (Observation)resource, -1);
} else if (resource instanceof ObservationDefinition) {
@@ -23282,6 +24260,8 @@ public class RdfParser extends RdfParserBase {
composePaymentNotice(parent, null, "PaymentNotice", (PaymentNotice)resource, -1);
} else if (resource instanceof PaymentReconciliation) {
composePaymentReconciliation(parent, null, "PaymentReconciliation", (PaymentReconciliation)resource, -1);
+ } else if (resource instanceof Permission) {
+ composePermission(parent, null, "Permission", (Permission)resource, -1);
} else if (resource instanceof Person) {
composePerson(parent, null, "Person", (Person)resource, -1);
} else if (resource instanceof PlanDefinition) {
@@ -23328,6 +24308,10 @@ public class RdfParser extends RdfParserBase {
composeStructureMap(parent, null, "StructureMap", (StructureMap)resource, -1);
} else if (resource instanceof Subscription) {
composeSubscription(parent, null, "Subscription", (Subscription)resource, -1);
+ } else if (resource instanceof SubscriptionStatus) {
+ composeSubscriptionStatus(parent, null, "SubscriptionStatus", (SubscriptionStatus)resource, -1);
+ } else if (resource instanceof SubscriptionTopic) {
+ composeSubscriptionTopic(parent, null, "SubscriptionTopic", (SubscriptionTopic)resource, -1);
} else if (resource instanceof Substance) {
composeSubstance(parent, null, "Substance", (Substance)resource, -1);
} else if (resource instanceof SubstanceDefinition) {
@@ -23354,8 +24338,6 @@ public class RdfParser extends RdfParserBase {
composeTestReport(parent, null, "TestReport", (TestReport)resource, -1);
} else if (resource instanceof TestScript) {
composeTestScript(parent, null, "TestScript", (TestScript)resource, -1);
- } else if (resource instanceof Topic) {
- composeTopic(parent, null, "Topic", (Topic)resource, -1);
} else if (resource instanceof ValueSet) {
composeValueSet(parent, null, "ValueSet", (ValueSet)resource, -1);
} else if (resource instanceof VerificationResult) {
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 be97cee5b..dd6a5cf4d 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
@@ -50,7 +50,7 @@ package org.hl7.fhir.r5.formats;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Mon, Jan 20, 2020 14:31+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
@@ -2692,8 +2692,8 @@ public class XmlParser extends XmlParserBase {
res.getIngredient().add(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("device")) {
res.getDevice().add(parseReference(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("characteristic")) {
- res.getCharacteristic().add(parseAdministrableProductDefinitionCharacteristicComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("property")) {
+ res.getProperty().add(parseAdministrableProductDefinitionPropertyComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("routeOfAdministration")) {
res.getRouteOfAdministration().add(parseAdministrableProductDefinitionRouteOfAdministrationComponent(xpp));
} else if (!parseDomainResourceContent(eventType, xpp, res)){
@@ -2702,13 +2702,13 @@ public class XmlParser extends XmlParserBase {
return true;
}
- protected AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent parseAdministrableProductDefinitionCharacteristicComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
- AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent res = new AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent();
+ protected AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent parseAdministrableProductDefinitionPropertyComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent res = new AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent();
parseElementAttributes(xpp, res);
next(xpp);
int eventType = nextNoWhitespace(xpp);
while (eventType != XmlPullParser.END_TAG) {
- if (!parseAdministrableProductDefinitionCharacteristicComponentContent(eventType, xpp, res))
+ if (!parseAdministrableProductDefinitionPropertyComponentContent(eventType, xpp, res))
unknownContent(xpp);
eventType = nextNoWhitespace(xpp);
}
@@ -2717,9 +2717,9 @@ public class XmlParser extends XmlParserBase {
return res;
}
- protected boolean parseAdministrableProductDefinitionCharacteristicComponentContent(int eventType, XmlPullParser xpp, AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) {
- res.setCode(parseCodeableConcept(xpp));
+ protected boolean parseAdministrableProductDefinitionPropertyComponentContent(int eventType, XmlPullParser xpp, AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent 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")) {
res.setValue(parseType("value", xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
@@ -3315,9 +3315,7 @@ public class XmlParser extends XmlParserBase {
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("recorded")) {
res.setRecordedElement(parseInstant(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcome")) {
- res.setOutcomeElement(parseEnumeration(xpp, AuditEvent.AuditEventOutcome.NULL, new AuditEvent.AuditEventOutcomeEnumFactory()));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcomeDesc")) {
- res.setOutcomeDescElement(parseString(xpp));
+ 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("agent")) {
@@ -4853,7 +4851,7 @@ public class XmlParser extends XmlParserBase {
} else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "scheduled")) {
res.setScheduled(parseType("scheduled", 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 && nameIsTypeName(xpp, "reported")) {
res.setReported(parseType("reported", xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performer")) {
@@ -5278,6 +5276,682 @@ public class XmlParser extends XmlParserBase {
return true;
}
+ protected Citation parseCitation(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation res = new Citation();
+ parseResourceAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ 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("version")) {
+ res.setVersionElement(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("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("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("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("authorList")) {
+ res.setAuthorList(parseCitationAuthorListComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("authorString")) {
+ res.getAuthorString().add(parseCitationAuthorStringComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contributorList")) {
+ res.setContributorList(parseCitationContributorListComponent(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("relatedArtifact")) {
+ res.getRelatedArtifact().add(parseRelatedArtifact(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 (!parseMetadataResourceContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected Citation.CitationVariantCitationComponent parseCitationVariantCitationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation.CitationVariantCitationComponent res = new Citation.CitationVariantCitationComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationVariantCitationComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseCitationVariantCitationComponentContent(int eventType, XmlPullParser xpp, Citation.CitationVariantCitationComponent 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 (eventType == XmlPullParser.START_TAG && xpp.getName().equals("baseCitation")) {
+ res.setBaseCitation(parseReference(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected Citation.CitationJournalComponent parseCitationJournalComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation.CitationJournalComponent res = new Citation.CitationJournalComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationJournalComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ 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));
+ } 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();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationJournalJournalIssueComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseCitationJournalJournalIssueComponentContent(int eventType, XmlPullParser xpp, Citation.CitationJournalJournalIssueComponent 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.setPublicationDateElement(parseString(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 {
+ 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;
+ }
+ return true;
+ }
+
+ protected Citation.CitationAlternativeAbstractComponent parseCitationAlternativeAbstractComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation.CitationAlternativeAbstractComponent res = new Citation.CitationAlternativeAbstractComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationAlternativeAbstractComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseCitationAlternativeAbstractComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAlternativeAbstractComponent 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 (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected Citation.CitationAuthorListComponent parseCitationAuthorListComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation.CitationAuthorListComponent res = new Citation.CitationAuthorListComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationAuthorListComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseCitationAuthorListComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAuthorListComponent 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("author")) {
+ res.getAuthor().add(parseCitationAuthorListAuthorComponent(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected Citation.CitationAuthorListAuthorComponent parseCitationAuthorListAuthorComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation.CitationAuthorListAuthorComponent res = new Citation.CitationAuthorListAuthorComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationAuthorListAuthorComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseCitationAuthorListAuthorComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAuthorListAuthorComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("lastName")) {
+ res.setLastNameElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("foreName")) {
+ res.setForeNameElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("suffix")) {
+ res.setSuffixElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("initials")) {
+ res.setInitialsElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("collectiveName")) {
+ res.setCollectiveNameElement(parseString(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("affiliationInfo")) {
+ res.getAffiliationInfo().add(parseCitationAuthorListAuthorAffiliationInfoComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("address")) {
+ res.getAddress().add(parseString(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("correspondingAuthor")) {
+ res.setCorrespondingAuthorElement(parseBoolean(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("listOrder")) {
+ res.setListOrderElement(parsePositiveInt(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected Citation.CitationAuthorListAuthorAffiliationInfoComponent parseCitationAuthorListAuthorAffiliationInfoComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation.CitationAuthorListAuthorAffiliationInfoComponent res = new Citation.CitationAuthorListAuthorAffiliationInfoComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationAuthorListAuthorAffiliationInfoComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseCitationAuthorListAuthorAffiliationInfoComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAuthorListAuthorAffiliationInfoComponent 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")) {
+ res.setRoleElement(parseString(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 Citation.CitationAuthorStringComponent parseCitationAuthorStringComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation.CitationAuthorStringComponent res = new Citation.CitationAuthorStringComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationAuthorStringComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseCitationAuthorStringComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAuthorStringComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("source")) {
+ res.setSource(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 Citation.CitationContributorListComponent parseCitationContributorListComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation.CitationContributorListComponent res = new Citation.CitationContributorListComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationContributorListComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseCitationContributorListComponentContent(int eventType, XmlPullParser xpp, Citation.CitationContributorListComponent 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("contributor")) {
+ res.getContributor().add(parseCitationContributorListContributorComponent(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected Citation.CitationContributorListContributorComponent parseCitationContributorListContributorComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation.CitationContributorListContributorComponent res = new Citation.CitationContributorListContributorComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationContributorListContributorComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseCitationContributorListContributorComponentContent(int eventType, XmlPullParser xpp, Citation.CitationContributorListContributorComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("lastName")) {
+ res.setLastNameElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("foreName")) {
+ res.setForeNameElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("suffix")) {
+ res.setSuffixElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("initials")) {
+ res.setInitialsElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("collectiveName")) {
+ res.setCollectiveNameElement(parseString(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("contribution")) {
+ res.getContribution().add(parseCodeableConcept(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("affiliationInfo")) {
+ res.getAffiliationInfo().add(parseCitationContributorListContributorAffiliationInfoComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("listOrder")) {
+ res.setListOrderElement(parsePositiveInt(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected Citation.CitationContributorListContributorAffiliationInfoComponent parseCitationContributorListContributorAffiliationInfoComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Citation.CitationContributorListContributorAffiliationInfoComponent res = new Citation.CitationContributorListContributorAffiliationInfoComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseCitationContributorListContributorAffiliationInfoComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseCitationContributorListContributorAffiliationInfoComponentContent(int eventType, XmlPullParser xpp, Citation.CitationContributorListContributorAffiliationInfoComponent 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")) {
+ res.setRoleElement(parseString(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 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 (!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.setPublicationDateElement(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.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);
@@ -6342,6 +7016,8 @@ public class XmlParser extends XmlParserBase {
res.getIdentifier().add(parseIdentifier(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) {
res.setTypeElement(parseEnumeration(xpp, ClinicalUseIssue.ClinicalUseIssueType.NULL, new ClinicalUseIssue.ClinicalUseIssueTypeEnumFactory()));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) {
+ res.setCategory(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) {
res.getSubject().add(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
@@ -7756,8 +8432,8 @@ public class XmlParser extends XmlParserBase {
res.setScope(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) {
res.getCategory().add(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("patient")) {
- res.setPatient(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("dateTime")) {
res.setDateTimeElement(parseDateTime(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performer")) {
@@ -9154,6 +9830,8 @@ public class XmlParser extends XmlParserBase {
protected boolean parseDeviceContent(int eventType, XmlPullParser xpp, Device 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("displayName")) {
+ res.setDisplayNameElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("definition")) {
res.setDefinition(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("udiCarrier")) {
@@ -9181,7 +9859,7 @@ public class XmlParser extends XmlParserBase {
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("partNumber")) {
res.setPartNumberElement(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(parseDeviceSpecializationComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("version")) {
@@ -9190,6 +9868,10 @@ public class XmlParser extends XmlParserBase {
res.getProperty().add(parseDevicePropertyComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("patient")) {
res.setPatient(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("operationalStatus")) {
+ res.setOperationalStatus(parseDeviceOperationalStatusComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("associationStatus")) {
+ res.setAssociationStatus(parseDeviceAssociationStatusComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("owner")) {
res.setOwner(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contact")) {
@@ -9352,6 +10034,58 @@ public class XmlParser extends XmlParserBase {
return true;
}
+ protected Device.DeviceOperationalStatusComponent parseDeviceOperationalStatusComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Device.DeviceOperationalStatusComponent res = new Device.DeviceOperationalStatusComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseDeviceOperationalStatusComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseDeviceOperationalStatusComponentContent(int eventType, XmlPullParser xpp, Device.DeviceOperationalStatusComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) {
+ res.setValue(parseCodeableConcept(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
+ res.getReason().add(parseCodeableConcept(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected Device.DeviceAssociationStatusComponent parseDeviceAssociationStatusComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Device.DeviceAssociationStatusComponent res = new Device.DeviceAssociationStatusComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseDeviceAssociationStatusComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseDeviceAssociationStatusComponentContent(int eventType, XmlPullParser xpp, Device.DeviceAssociationStatusComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) {
+ res.setValue(parseCodeableConcept(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
+ res.getReason().add(parseCodeableConcept(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
protected DeviceDefinition parseDeviceDefinition(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
DeviceDefinition res = new DeviceDefinition();
parseResourceAttributes(xpp, res);
@@ -9400,8 +10134,6 @@ public class XmlParser extends XmlParserBase {
res.setOwner(parseReference(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("url")) {
- res.setUrlElement(parseUri(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("onlineInformation")) {
res.setOnlineInformationElement(parseUri(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
@@ -9684,8 +10416,8 @@ 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 && nameIsTypeName(xpp, "code")) {
- res.setCode(parseType("code", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) {
+ res.setCode(parseCodeableReference(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")) {
@@ -9766,22 +10498,30 @@ public class XmlParser extends XmlParserBase {
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()));
+ } 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")) {
res.setSubject(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("derivedFrom")) {
res.getDerivedFrom().add(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("context")) {
+ res.setContext(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "timing")) {
res.setTiming(parseType("timing", xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("recordedOn")) {
- res.setRecordedOnElement(parseDateTime(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("source")) {
- res.setSource(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dateAsserted")) {
+ res.setDateAssertedElement(parseDateTime(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("usageStatus")) {
+ res.setUsageStatus(parseCodeableConcept(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("usageReason")) {
+ res.getUsageReason().add(parseCodeableConcept(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("informationSource")) {
+ res.setInformationSource(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("device")) {
- res.setDevice(parseReference(xpp));
+ res.setDevice(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
res.getReason().add(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("bodySite")) {
- res.setBodySite(parseCodeableConcept(xpp));
+ res.setBodySite(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
res.getNote().add(parseAnnotation(xpp));
} else if (!parseDomainResourceContent(eventType, xpp, res)){
@@ -10676,8 +11416,6 @@ public class XmlParser extends XmlParserBase {
res.setAssertionElement(parseMarkdown(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("referentGroup")) {
- res.setReferentGroup(parseEvidenceReferentGroupComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("variableDefinition")) {
res.getVariableDefinition().add(parseEvidenceVariableDefinitionComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("synthesisType")) {
@@ -10696,38 +11434,6 @@ public class XmlParser extends XmlParserBase {
return true;
}
- protected Evidence.EvidenceReferentGroupComponent parseEvidenceReferentGroupComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
- Evidence.EvidenceReferentGroupComponent res = new Evidence.EvidenceReferentGroupComponent();
- parseElementAttributes(xpp, res);
- next(xpp);
- int eventType = nextNoWhitespace(xpp);
- while (eventType != XmlPullParser.END_TAG) {
- if (!parseEvidenceReferentGroupComponentContent(eventType, xpp, res))
- unknownContent(xpp);
- eventType = nextNoWhitespace(xpp);
- }
- next(xpp);
- parseElementClose(res);
- return res;
- }
-
- protected boolean parseEvidenceReferentGroupComponentContent(int eventType, XmlPullParser xpp, Evidence.EvidenceReferentGroupComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) {
- res.setDescriptionElement(parseMarkdown(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("evidenceSource")) {
- res.setEvidenceSource(parseReference(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("intendedGroup")) {
- res.setIntendedGroup(parseReference(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("directnessMatch")) {
- res.setDirectnessMatch(parseCodeableConcept(xpp));
- } else if (!parseBackboneElementContent(eventType, xpp, res)){
- return false;
- }
- return true;
- }
-
protected Evidence.EvidenceVariableDefinitionComponent parseEvidenceVariableDefinitionComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
Evidence.EvidenceVariableDefinitionComponent res = new Evidence.EvidenceVariableDefinitionComponent();
parseElementAttributes(xpp, res);
@@ -10750,10 +11456,10 @@ public class XmlParser extends XmlParserBase {
res.getNote().add(parseAnnotation(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("variableRole")) {
res.setVariableRole(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actualDefinition")) {
- res.setActualDefinition(parseReference(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("intendedDefinition")) {
- res.setIntendedDefinition(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("observed")) {
+ res.setObserved(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("intended")) {
+ res.setIntended(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("directnessMatch")) {
res.setDirectnessMatch(parseCodeableConcept(xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
@@ -10822,6 +11528,82 @@ public class XmlParser extends XmlParserBase {
return true;
}
+ protected EvidenceFocus parseEvidenceFocus(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ EvidenceFocus res = new EvidenceFocus();
+ parseResourceAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseEvidenceFocusContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseEvidenceFocusContent(int eventType, XmlPullParser xpp, EvidenceFocus 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("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("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("date")) {
+ res.setDateElement(parseDateTime(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("copyright")) {
+ res.setCopyrightElement(parseMarkdown(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("citeAs")) {
+ res.setCiteAs(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("characteristic")) {
+ res.getCharacteristic().add(parseEvidenceFocusCharacteristicComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedArtifact")) {
+ res.getRelatedArtifact().add(parseRelatedArtifact(xpp));
+ } else if (!parseMetadataResourceContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected EvidenceFocus.EvidenceFocusCharacteristicComponent parseEvidenceFocusCharacteristicComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ EvidenceFocus.EvidenceFocusCharacteristicComponent res = new EvidenceFocus.EvidenceFocusCharacteristicComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseEvidenceFocusCharacteristicComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseEvidenceFocusCharacteristicComponentContent(int eventType, XmlPullParser xpp, EvidenceFocus.EvidenceFocusCharacteristicComponent 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("exclude")) {
+ res.setExcludeElement(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 EvidenceVariable parseEvidenceVariable(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
EvidenceVariable res = new EvidenceVariable();
parseResourceAttributes(xpp, res);
@@ -10892,6 +11674,8 @@ public class XmlParser extends XmlParserBase {
res.setTypeElement(parseEnumeration(xpp, EvidenceVariable.EvidenceVariableType.NULL, new EvidenceVariable.EvidenceVariableTypeEnumFactory()));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actual")) {
res.setActualElement(parseBoolean(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("characteristicCombination")) {
+ res.setCharacteristicCombinationElement(parseEnumeration(xpp, EvidenceVariable.CharacteristicCombination.NULL, new EvidenceVariable.CharacteristicCombinationEnumFactory()));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("characteristic")) {
res.getCharacteristic().add(parseEvidenceVariableCharacteristicComponent(xpp));
} else if (!parseMetadataResourceContent(eventType, xpp, res)){
@@ -10924,14 +11708,10 @@ public class XmlParser extends XmlParserBase {
res.setMethod(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("device")) {
res.setDevice(parseReference(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("booleanSet")) {
- res.getBooleanSet().add(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("exclude")) {
res.setExcludeElement(parseBoolean(xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "participantEffective")) {
- res.setParticipantEffective(parseType("participantEffective", xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("timeFromStart")) {
- res.setTimeFromStart(parseDuration(xpp));
+ res.setTimeFromStart(parseEvidenceVariableCharacteristicTimeFromStartComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("groupMeasure")) {
res.setGroupMeasureElement(parseEnumeration(xpp, EvidenceVariable.GroupMeasure.NULL, new EvidenceVariable.GroupMeasureEnumFactory()));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
@@ -10940,6 +11720,36 @@ public class XmlParser extends XmlParserBase {
return true;
}
+ protected EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent parseEvidenceVariableCharacteristicTimeFromStartComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent res = new EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseEvidenceVariableCharacteristicTimeFromStartComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseEvidenceVariableCharacteristicTimeFromStartComponentContent(int eventType, XmlPullParser xpp, EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent 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("quantity")) {
+ res.setQuantity(parseQuantity(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("range")) {
+ res.setRange(parseRange(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 ExampleScenario parseExampleScenario(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
ExampleScenario res = new ExampleScenario();
parseResourceAttributes(xpp, res);
@@ -13140,10 +13950,10 @@ public class XmlParser extends XmlParserBase {
res.setAuthority(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("targetDisease")) {
res.getTargetDisease().add(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "doseNumber")) {
- res.setDoseNumber(parseType("doseNumber", xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "seriesDoses")) {
- res.setSeriesDoses(parseType("seriesDoses", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("doseNumber")) {
+ res.setDoseNumberElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("seriesDoses")) {
+ res.setSeriesDosesElement(parseString(xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
return false;
}
@@ -13188,10 +13998,10 @@ public class XmlParser extends XmlParserBase {
res.setDescriptionElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("series")) {
res.setSeriesElement(parseString(xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "doseNumber")) {
- res.setDoseNumber(parseType("doseNumber", xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "seriesDoses")) {
- res.setSeriesDoses(parseType("seriesDoses", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("doseNumber")) {
+ res.setDoseNumberElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("seriesDoses")) {
+ res.setSeriesDosesElement(parseString(xpp));
} else if (!parseDomainResourceContent(eventType, xpp, res)){
return false;
}
@@ -13262,10 +14072,10 @@ public class XmlParser extends XmlParserBase {
res.setDescriptionElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("series")) {
res.setSeriesElement(parseString(xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "doseNumber")) {
- res.setDoseNumber(parseType("doseNumber", xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "seriesDoses")) {
- res.setSeriesDoses(parseType("seriesDoses", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("doseNumber")) {
+ res.setDoseNumberElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("seriesDoses")) {
+ res.setSeriesDosesElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("supportingImmunization")) {
res.getSupportingImmunization().add(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("supportingPatientInformation")) {
@@ -13702,6 +14512,10 @@ public class XmlParser extends XmlParserBase {
res.setIdentifier(parseIdentifier(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.getFunction().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("allergenicIndicator")) {
res.setAllergenicIndicatorElement(parseBoolean(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("manufacturer")) {
@@ -13766,10 +14580,14 @@ public class XmlParser extends XmlParserBase {
res.setPresentation(parseRatio(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("presentationHighLimit")) {
res.setPresentationHighLimit(parseRatio(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 && xpp.getName().equals("concentrationText")) {
+ res.setConcentrationTextElement(parseString(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")) {
@@ -14642,21 +15460,21 @@ public class XmlParser extends XmlParserBase {
res.getManufacturer().add(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("ingredient")) {
res.getIngredient().add(parseReference(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("characteristic")) {
- res.getCharacteristic().add(parseManufacturedItemDefinitionCharacteristicComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("property")) {
+ res.getProperty().add(parseManufacturedItemDefinitionPropertyComponent(xpp));
} else if (!parseDomainResourceContent(eventType, xpp, res)){
return false;
}
return true;
}
- protected ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent parseManufacturedItemDefinitionCharacteristicComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
- ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent res = new ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent();
+ protected ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent parseManufacturedItemDefinitionPropertyComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent res = new ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent();
parseElementAttributes(xpp, res);
next(xpp);
int eventType = nextNoWhitespace(xpp);
while (eventType != XmlPullParser.END_TAG) {
- if (!parseManufacturedItemDefinitionCharacteristicComponentContent(eventType, xpp, res))
+ if (!parseManufacturedItemDefinitionPropertyComponentContent(eventType, xpp, res))
unknownContent(xpp);
eventType = nextNoWhitespace(xpp);
}
@@ -14665,9 +15483,9 @@ public class XmlParser extends XmlParserBase {
return res;
}
- protected boolean parseManufacturedItemDefinitionCharacteristicComponentContent(int eventType, XmlPullParser xpp, ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) {
- res.setCode(parseCodeableConcept(xpp));
+ protected boolean parseManufacturedItemDefinitionPropertyComponentContent(int eventType, XmlPullParser xpp, ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent 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")) {
res.setValue(parseType("value", xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
@@ -15192,8 +16010,8 @@ public class XmlParser extends XmlParserBase {
}
protected boolean parseMedicationIngredientComponentContent(int eventType, XmlPullParser xpp, Medication.MedicationIngredientComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "item")) {
- res.setItem(parseType("item", xpp));
+ 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));
} else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "strength")) {
@@ -15262,8 +16080,8 @@ public class XmlParser extends XmlParserBase {
res.getStatusReason().add(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) {
res.getCategory().add(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "medication")) {
- res.setMedication(parseType("medication", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("medication")) {
+ res.setMedication(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) {
res.setSubject(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("encounter")) {
@@ -15378,12 +16196,12 @@ public class XmlParser extends XmlParserBase {
res.getPartOf().add(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
res.setStatusElement(parseEnumeration(xpp, MedicationDispense.MedicationDispenseStatusCodes.NULL, new MedicationDispense.MedicationDispenseStatusCodesEnumFactory()));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "statusReason")) {
- res.setStatusReason(parseType("statusReason", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("statusReason")) {
+ res.setStatusReason(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) {
res.getCategory().add(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "medication")) {
- res.setMedication(parseType("medication", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("medication")) {
+ res.setMedication(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) {
res.setSubject(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("encounter")) {
@@ -15622,8 +16440,8 @@ public class XmlParser extends XmlParserBase {
}
protected boolean parseMedicationKnowledgeIngredientComponentContent(int eventType, XmlPullParser xpp, MedicationKnowledge.MedicationKnowledgeIngredientComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "item")) {
- res.setItem(parseType("item", xpp));
+ 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));
} else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "strength")) {
@@ -15706,8 +16524,8 @@ public class XmlParser extends XmlParserBase {
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 && 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("patientCharacteristic")) {
res.getPatientCharacteristic().add(parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
@@ -15758,10 +16576,10 @@ public class XmlParser extends XmlParserBase {
}
protected boolean parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentContent(int eventType, XmlPullParser xpp, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "characteristic")) {
- res.setCharacteristic(parseType("characteristic", xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) {
- res.getValue().add(parseString(xpp));
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) {
+ res.setType(parseCodeableConcept(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "value")) {
+ res.setValue(parseType("value", xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
return false;
}
@@ -15994,8 +16812,8 @@ public class XmlParser extends XmlParserBase {
res.setReportedElement(parseBoolean(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("informationSource")) {
res.setInformationSource(parseReference(xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "medication")) {
- res.setMedication(parseType("medication", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("medication")) {
+ res.setMedication(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) {
res.setSubject(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("encounter")) {
@@ -16164,8 +16982,8 @@ public class XmlParser extends XmlParserBase {
res.getStatusReason().add(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) {
res.getCategory().add(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "medication")) {
- res.setMedication(parseType("medication", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("medication")) {
+ res.setMedication(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) {
res.setSubject(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("encounter")) {
@@ -16215,11 +17033,13 @@ 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("domain")) {
- res.setDomain(parseCoding(xpp));
+ res.setDomain(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("version")) {
res.setVersionElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
- res.setStatus(parseCoding(xpp));
+ 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("description")) {
res.setDescriptionElement(parseMarkdown(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("combinedPharmaceuticalDoseForm")) {
@@ -16236,6 +17056,8 @@ public class XmlParser extends XmlParserBase {
res.setPaediatricUseIndicator(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("productClassification")) {
res.getProductClassification().add(parseCodeableConcept(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("characteristic")) {
+ 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")) {
@@ -16309,7 +17131,7 @@ public class XmlParser extends XmlParserBase {
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("productName")) {
res.setProductNameElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) {
- res.setType(parseCoding(xpp));
+ res.setType(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("namePart")) {
res.getNamePart().add(parseMedicinalProductDefinitionNameNamePartComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("countryLanguage")) {
@@ -16339,7 +17161,7 @@ public class XmlParser extends XmlParserBase {
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("part")) {
res.setPartElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) {
- res.setType(parseCoding(xpp));
+ res.setType(parseCodeableConcept(xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
return false;
}
@@ -16393,7 +17215,7 @@ public class XmlParser extends XmlParserBase {
if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "product")) {
res.setProduct(parseType("product", xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) {
- res.setType(parseCoding(xpp));
+ res.setType(parseCodeableConcept(xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
return false;
}
@@ -16416,8 +17238,8 @@ public class XmlParser extends XmlParserBase {
}
protected boolean parseMedicinalProductDefinitionManufacturingBusinessOperationComponentContent(int eventType, XmlPullParser xpp, MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "type")) {
- res.setType(parseType("type", xpp));
+ 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")) {
@@ -17128,34 +17950,42 @@ public class XmlParser extends XmlParserBase {
protected boolean parseNutritionIntakeContent(int eventType, XmlPullParser xpp, NutritionIntake 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("instantiatesCanonical")) {
+ res.getInstantiatesCanonical().add(parseCanonical(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("instantiatesUri")) {
+ res.getInstantiatesUri().add(parseUri(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")) {
res.getPartOf().add(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
- res.setStatusElement(parseEnumeration(xpp, NutritionIntake.NutritionIntakeStatusCodes.NULL, new NutritionIntake.NutritionIntakeStatusCodesEnumFactory()));
+ res.setStatusElement(parseEnumeration(xpp, Enumerations.EventStatus.NULL, new Enumerations.EventStatusEnumFactory()));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("statusReason")) {
res.getStatusReason().add(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) {
- res.getCategory().add(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("consumedItem")) {
- res.getConsumedItem().add(parseNutritionIntakeConsumedItemComponent(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("ingredientLabel")) {
- res.getIngredientLabel().add(parseNutritionIntakeIngredientLabelComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) {
+ res.setCode(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) {
res.setSubject(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("encounter")) {
res.setEncounter(parseReference(xpp));
- } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "effective")) {
- res.setEffective(parseType("effective", xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dateAsserted")) {
- res.setDateAssertedElement(parseDateTime(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("informationSource")) {
- res.setInformationSource(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "occurrence")) {
+ res.setOccurrence(parseType("occurrence", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("recorded")) {
+ res.setRecordedElement(parseDateTime(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "reported")) {
+ res.setReported(parseType("reported", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("consumedItem")) {
+ res.getConsumedItem().add(parseNutritionIntakeConsumedItemComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("ingredientLabel")) {
+ res.getIngredientLabel().add(parseNutritionIntakeIngredientLabelComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performer")) {
+ res.getPerformer().add(parseNutritionIntakePerformerComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("location")) {
+ res.setLocation(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("derivedFrom")) {
res.getDerivedFrom().add(parseReference(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
- res.getReasonCode().add(parseCodeableReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
+ res.getReason().add(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
res.getNote().add(parseAnnotation(xpp));
} else if (!parseDomainResourceContent(eventType, xpp, res)){
@@ -17183,7 +18013,7 @@ public class XmlParser extends XmlParserBase {
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) {
res.setType(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("nutritionProduct")) {
- res.setNutritionProduct(parseCodeableConcept(xpp));
+ res.setNutritionProduct(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("schedule")) {
res.setSchedule(parseTiming(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("amount")) {
@@ -17217,7 +18047,7 @@ public class XmlParser extends XmlParserBase {
protected boolean parseNutritionIntakeIngredientLabelComponentContent(int eventType, XmlPullParser xpp, NutritionIntake.NutritionIntakeIngredientLabelComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("nutrient")) {
- res.setNutrient(parseCodeableConcept(xpp));
+ res.setNutrient(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("amount")) {
res.setAmount(parseQuantity(xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
@@ -17226,6 +18056,32 @@ public class XmlParser extends XmlParserBase {
return true;
}
+ protected NutritionIntake.NutritionIntakePerformerComponent parseNutritionIntakePerformerComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ NutritionIntake.NutritionIntakePerformerComponent res = new NutritionIntake.NutritionIntakePerformerComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseNutritionIntakePerformerComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseNutritionIntakePerformerComponentContent(int eventType, XmlPullParser xpp, NutritionIntake.NutritionIntakePerformerComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ 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 NutritionOrder parseNutritionOrder(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
NutritionOrder res = new NutritionOrder();
parseResourceAttributes(xpp, res);
@@ -17468,6 +18324,158 @@ public class XmlParser extends XmlParserBase {
return true;
}
+ protected NutritionProduct parseNutritionProduct(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ NutritionProduct res = new NutritionProduct();
+ parseResourceAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseNutritionProductContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseNutritionProductContent(int eventType, XmlPullParser xpp, NutritionProduct res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
+ res.setStatusElement(parseEnumeration(xpp, NutritionProduct.NutritionProductStatus.NULL, new NutritionProduct.NutritionProductStatusEnumFactory()));
+ } 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));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("manufacturer")) {
+ res.getManufacturer().add(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("nutrient")) {
+ res.getNutrient().add(parseNutritionProductNutrientComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("ingredient")) {
+ res.getIngredient().add(parseNutritionProductIngredientComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("knownAllergen")) {
+ res.getKnownAllergen().add(parseCodeableReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("productCharacteristic")) {
+ res.getProductCharacteristic().add(parseNutritionProductProductCharacteristicComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("instance")) {
+ res.setInstance(parseNutritionProductInstanceComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
+ res.getNote().add(parseAnnotation(xpp));
+ } else if (!parseDomainResourceContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected NutritionProduct.NutritionProductNutrientComponent parseNutritionProductNutrientComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ NutritionProduct.NutritionProductNutrientComponent res = new NutritionProduct.NutritionProductNutrientComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseNutritionProductNutrientComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseNutritionProductNutrientComponentContent(int eventType, XmlPullParser xpp, NutritionProduct.NutritionProductNutrientComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("item")) {
+ res.setItem(parseCodeableReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("amount")) {
+ res.getAmount().add(parseRatio(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected NutritionProduct.NutritionProductIngredientComponent parseNutritionProductIngredientComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ NutritionProduct.NutritionProductIngredientComponent res = new NutritionProduct.NutritionProductIngredientComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseNutritionProductIngredientComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseNutritionProductIngredientComponentContent(int eventType, XmlPullParser xpp, NutritionProduct.NutritionProductIngredientComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("item")) {
+ res.setItem(parseCodeableReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("amount")) {
+ res.getAmount().add(parseRatio(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected NutritionProduct.NutritionProductProductCharacteristicComponent parseNutritionProductProductCharacteristicComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ NutritionProduct.NutritionProductProductCharacteristicComponent res = new NutritionProduct.NutritionProductProductCharacteristicComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseNutritionProductProductCharacteristicComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseNutritionProductProductCharacteristicComponentContent(int eventType, XmlPullParser xpp, NutritionProduct.NutritionProductProductCharacteristicComponent 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")) {
+ res.setValue(parseType("value", xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected NutritionProduct.NutritionProductInstanceComponent parseNutritionProductInstanceComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ NutritionProduct.NutritionProductInstanceComponent res = new NutritionProduct.NutritionProductInstanceComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseNutritionProductInstanceComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseNutritionProductInstanceComponentContent(int eventType, XmlPullParser xpp, NutritionProduct.NutritionProductInstanceComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("quantity")) {
+ res.setQuantity(parseQuantity(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("lotNumber")) {
+ res.setLotNumberElement(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("useBy")) {
+ res.setUseByElement(parseDateTime(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
protected Observation parseObservation(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
Observation res = new Observation();
parseResourceAttributes(xpp, res);
@@ -18190,14 +19198,22 @@ public class XmlParser extends XmlParserBase {
protected boolean parsePackagedProductDefinitionContent(int eventType, XmlPullParser xpp, PackagedProductDefinition 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("name")) {
+ res.setNameElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) {
res.getSubject().add(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
+ 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("description")) {
- res.setDescriptionElement(parseString(xpp));
+ res.setDescriptionElement(parseMarkdown(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("legalStatusOfSupply")) {
res.setLegalStatusOfSupply(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("characteristic")) {
+ res.getCharacteristic().add(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("copackagedIndicator")) {
res.setCopackagedIndicatorElement(parseBoolean(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("marketingAuthorization")) {
@@ -18261,7 +19277,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("quantity")) {
- res.setQuantity(parseQuantity(xpp));
+ res.setQuantityElement(parseInteger(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("material")) {
res.getMaterial().add(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("alternateMaterial")) {
@@ -18270,8 +19286,8 @@ public class XmlParser extends XmlParserBase {
res.getShelfLifeStorage().add(parseProductShelfLife(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("characteristic")) {
- res.getCharacteristic().add(parsePackagedProductDefinitionPackageCharacteristicComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("property")) {
+ res.getProperty().add(parsePackagedProductDefinitionPackagePropertyComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("containedItem")) {
res.getContainedItem().add(parsePackagedProductDefinitionPackageContainedItemComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("package")) {
@@ -18282,13 +19298,13 @@ public class XmlParser extends XmlParserBase {
return true;
}
- protected PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent parsePackagedProductDefinitionPackageCharacteristicComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
- PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent res = new PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent();
+ protected PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent parsePackagedProductDefinitionPackagePropertyComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent res = new PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent();
parseElementAttributes(xpp, res);
next(xpp);
int eventType = nextNoWhitespace(xpp);
while (eventType != XmlPullParser.END_TAG) {
- if (!parsePackagedProductDefinitionPackageCharacteristicComponentContent(eventType, xpp, res))
+ if (!parsePackagedProductDefinitionPackagePropertyComponentContent(eventType, xpp, res))
unknownContent(xpp);
eventType = nextNoWhitespace(xpp);
}
@@ -18297,9 +19313,9 @@ public class XmlParser extends XmlParserBase {
return res;
}
- protected boolean parsePackagedProductDefinitionPackageCharacteristicComponentContent(int eventType, XmlPullParser xpp, PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) {
- res.setCode(parseCodeableConcept(xpp));
+ protected boolean parsePackagedProductDefinitionPackagePropertyComponentContent(int eventType, XmlPullParser xpp, PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent 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")) {
res.setValue(parseType("value", xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
@@ -18696,6 +19712,102 @@ public class XmlParser extends XmlParserBase {
return true;
}
+ protected Permission parsePermission(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Permission res = new Permission();
+ parseResourceAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parsePermissionContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parsePermissionContent(int eventType, XmlPullParser xpp, Permission res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
+ res.setStatusElement(parseEnumeration(xpp, Permission.PermissionStatus.NULL, new Permission.PermissionStatusEnumFactory()));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("intent")) {
+ res.setIntent(parseCodeableConcept(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("asserter")) {
+ res.setAsserter(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("assertionDate")) {
+ res.getAssertionDate().add(parseDateTime(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("validity")) {
+ res.setValidity(parsePeriod(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("purpose")) {
+ res.getPurpose().add(parseCodeableConcept(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dataScope")) {
+ res.getDataScope().add(parseExpression(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("processingActivity")) {
+ res.getProcessingActivity().add(parsePermissionProcessingActivityComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("justification")) {
+ res.setJustification(parsePermissionJustificationComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("usageLimitations")) {
+ res.getUsageLimitations().add(parseCodeableConcept(xpp));
+ } else if (!parseDomainResourceContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected Permission.PermissionProcessingActivityComponent parsePermissionProcessingActivityComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Permission.PermissionProcessingActivityComponent res = new Permission.PermissionProcessingActivityComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parsePermissionProcessingActivityComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parsePermissionProcessingActivityComponentContent(int eventType, XmlPullParser xpp, Permission.PermissionProcessingActivityComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("partyReference")) {
+ res.getPartyReference().add(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("partyCodeableConcept")) {
+ res.getPartyCodeableConcept().add(parseCodeableConcept(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("purpose")) {
+ res.getPurpose().add(parseCodeableConcept(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected Permission.PermissionJustificationComponent parsePermissionJustificationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ Permission.PermissionJustificationComponent res = new Permission.PermissionJustificationComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parsePermissionJustificationComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parsePermissionJustificationComponentContent(int eventType, XmlPullParser xpp, Permission.PermissionJustificationComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("evidence")) {
+ res.getEvidence().add(parseReference(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("grounds")) {
+ res.getGrounds().add(parseCodeableConcept(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
protected Person parsePerson(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
Person res = new Person();
parseResourceAttributes(xpp, res);
@@ -19834,6 +20946,10 @@ 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("intendedUse")) {
+ res.setIntendedUse(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basis")) {
res.getBasis().add(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedDate")) {
@@ -21575,7 +22691,7 @@ public class XmlParser extends XmlParserBase {
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) {
res.setNameElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
- res.setStatusElement(parseEnumeration(xpp, Subscription.SubscriptionStatus.NULL, new Subscription.SubscriptionStatusEnumFactory()));
+ res.setStatusElement(parseEnumeration(xpp, Enumerations.SubscriptionState.NULL, new Enumerations.SubscriptionStateEnumFactory()));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("topic")) {
res.setTopic(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contact")) {
@@ -21588,10 +22704,20 @@ public class XmlParser extends XmlParserBase {
res.getFilterBy().add(parseSubscriptionFilterByComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("error")) {
res.getError().add(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("eventCount")) {
- res.setEventCountElement(parseUnsignedInt(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("channel")) {
- res.setChannel(parseSubscriptionChannelComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("channelType")) {
+ res.setChannelType(parseCoding(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("endpoint")) {
+ res.setEndpointElement(parseUrl(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("header")) {
+ res.getHeader().add(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("heartbeatPeriod")) {
+ res.setHeartbeatPeriodElement(parseUnsignedInt(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("timeout")) {
+ res.setTimeoutElement(parseUnsignedInt(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contentType")) {
+ 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 (!parseDomainResourceContent(eventType, xpp, res)){
return false;
}
@@ -21614,10 +22740,10 @@ 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("name")) {
- res.setNameElement(parseString(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("matchType")) {
- res.setMatchTypeElement(parseEnumeration(xpp, Subscription.SubscriptionFilterByMatchType.NULL, new Subscription.SubscriptionFilterByMatchTypeEnumFactory()));
+ 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()));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) {
res.setValueElement(parseString(xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
@@ -21626,13 +22752,13 @@ public class XmlParser extends XmlParserBase {
return true;
}
- protected Subscription.SubscriptionChannelComponent parseSubscriptionChannelComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
- Subscription.SubscriptionChannelComponent res = new Subscription.SubscriptionChannelComponent();
- parseElementAttributes(xpp, res);
+ protected SubscriptionStatus parseSubscriptionStatus(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ SubscriptionStatus res = new SubscriptionStatus();
+ parseResourceAttributes(xpp, res);
next(xpp);
int eventType = nextNoWhitespace(xpp);
while (eventType != XmlPullParser.END_TAG) {
- if (!parseSubscriptionChannelComponentContent(eventType, xpp, res))
+ if (!parseSubscriptionStatusContent(eventType, xpp, res))
unknownContent(xpp);
eventType = nextNoWhitespace(xpp);
}
@@ -21641,30 +22767,128 @@ public class XmlParser extends XmlParserBase {
return res;
}
- protected boolean parseSubscriptionChannelComponentContent(int eventType, XmlPullParser xpp, Subscription.SubscriptionChannelComponent 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("endpoint")) {
- res.setEndpointElement(parseUrl(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("header")) {
- res.getHeader().add(parseString(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("heartbeatPeriod")) {
- res.setHeartbeatPeriodElement(parseUnsignedInt(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("payload")) {
- res.setPayload(parseSubscriptionChannelPayloadComponent(xpp));
+ protected boolean parseSubscriptionStatusContent(int eventType, XmlPullParser xpp, SubscriptionStatus res) throws XmlPullParserException, IOException, FHIRFormatError {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("notificationType")) {
+ res.setNotificationTypeElement(parseEnumeration(xpp, SubscriptionStatus.SubscriptionNotificationType.NULL, new SubscriptionStatus.SubscriptionNotificationTypeEnumFactory()));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("eventsSinceSubscriptionStart")) {
+ res.setEventsSinceSubscriptionStartElement(parseInteger64(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("eventsInNotification")) {
+ 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.setTopic(parseReference(xpp));
+ } else if (!parseDomainResourceContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected SubscriptionTopic parseSubscriptionTopic(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ SubscriptionTopic res = new SubscriptionTopic();
+ parseResourceAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseSubscriptionTopicContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseSubscriptionTopicContent(int eventType, XmlPullParser xpp, SubscriptionTopic 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("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("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 && xpp.getName().equals("date")) {
+ res.setDateElement(parseDateTime(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisher")) {
+ res.setPublisher(parseReference(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("resourceTrigger")) {
+ res.setResourceTrigger(parseSubscriptionTopicResourceTriggerComponent(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("canFilterBy")) {
+ res.getCanFilterBy().add(parseSubscriptionTopicCanFilterByComponent(xpp));
+ } else if (!parseDomainResourceContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected SubscriptionTopic.SubscriptionTopicResourceTriggerComponent parseSubscriptionTopicResourceTriggerComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ SubscriptionTopic.SubscriptionTopicResourceTriggerComponent res = new SubscriptionTopic.SubscriptionTopicResourceTriggerComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseSubscriptionTopicResourceTriggerComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseSubscriptionTopicResourceTriggerComponentContent(int eventType, XmlPullParser xpp, SubscriptionTopic.SubscriptionTopicResourceTriggerComponent 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("resourceType")) {
+ res.getResourceType().add(parseCode(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 (!parseBackboneElementContent(eventType, xpp, res)){
return false;
}
return true;
}
- protected Subscription.SubscriptionChannelPayloadComponent parseSubscriptionChannelPayloadComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
- Subscription.SubscriptionChannelPayloadComponent res = new Subscription.SubscriptionChannelPayloadComponent();
+ protected SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent parseSubscriptionTopicResourceTriggerQueryCriteriaComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent res = new SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent();
parseElementAttributes(xpp, res);
next(xpp);
int eventType = nextNoWhitespace(xpp);
while (eventType != XmlPullParser.END_TAG) {
- if (!parseSubscriptionChannelPayloadComponentContent(eventType, xpp, res))
+ if (!parseSubscriptionTopicResourceTriggerQueryCriteriaComponentContent(eventType, xpp, res))
unknownContent(xpp);
eventType = nextNoWhitespace(xpp);
}
@@ -21673,11 +22897,41 @@ public class XmlParser extends XmlParserBase {
return res;
}
- protected boolean parseSubscriptionChannelPayloadComponentContent(int eventType, XmlPullParser xpp, Subscription.SubscriptionChannelPayloadComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contentType")) {
- res.setContentTypeElement(parseCode(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("content")) {
- res.setContentElement(parseEnumeration(xpp, Subscription.SubscriptionPayloadContent.NULL, new Subscription.SubscriptionPayloadContentEnumFactory()));
+ 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("current")) {
+ res.setCurrentElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("requireBoth")) {
+ res.setRequireBothElement(parseBoolean(xpp));
+ } else if (!parseBackboneElementContent(eventType, xpp, res)){
+ return false;
+ }
+ return true;
+ }
+
+ protected SubscriptionTopic.SubscriptionTopicCanFilterByComponent parseSubscriptionTopicCanFilterByComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
+ SubscriptionTopic.SubscriptionTopicCanFilterByComponent res = new SubscriptionTopic.SubscriptionTopicCanFilterByComponent();
+ parseElementAttributes(xpp, res);
+ next(xpp);
+ int eventType = nextNoWhitespace(xpp);
+ while (eventType != XmlPullParser.END_TAG) {
+ if (!parseSubscriptionTopicCanFilterByComponentContent(eventType, xpp, res))
+ unknownContent(xpp);
+ eventType = nextNoWhitespace(xpp);
+ }
+ next(xpp);
+ parseElementClose(res);
+ return res;
+ }
+
+ protected boolean parseSubscriptionTopicCanFilterByComponentContent(int eventType, XmlPullParser xpp, SubscriptionTopic.SubscriptionTopicCanFilterByComponent 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")) {
+ res.getSearchModifier().add(parseEnumeration(xpp, Enumerations.SubscriptionSearchModifier.NULL, new Enumerations.SubscriptionSearchModifierEnumFactory()));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("documentation")) {
+ res.setDocumentationElement(parseMarkdown(xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
return false;
}
@@ -21942,8 +23196,8 @@ public class XmlParser extends XmlParserBase {
res.getIsotope().add(parseSubstanceDefinitionStructureIsotopeComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("molecularWeight")) {
res.setMolecularWeight(parseSubstanceDefinitionStructureIsotopeMolecularWeightComponent(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("sourceCoding")) {
- res.getSourceCoding().add(parseCoding(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("technique")) {
+ res.getTechnique().add(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("sourceDocument")) {
res.getSourceDocument().add(parseReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("representation")) {
@@ -22034,6 +23288,8 @@ public class XmlParser extends XmlParserBase {
res.setType(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("representation")) {
res.setRepresentationElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("format")) {
+ res.setFormat(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("attachment")) {
res.setAttachment(parseAttachment(xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
@@ -22326,14 +23582,16 @@ public class XmlParser extends XmlParserBase {
}
protected boolean parseSubstancePolymerContent(int eventType, XmlPullParser xpp, SubstancePolymer res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("class")) {
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) {
+ res.setIdentifier(parseIdentifier(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("class")) {
res.setClass_(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("geometry")) {
res.setGeometry(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("copolymerConnectivity")) {
res.getCopolymerConnectivity().add(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("modification")) {
- res.getModification().add(parseString(xpp));
+ res.setModificationElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("monomerSet")) {
res.getMonomerSet().add(parseSubstancePolymerMonomerSetComponent(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("repeat")) {
@@ -22386,10 +23644,10 @@ public class XmlParser extends XmlParserBase {
}
protected boolean parseSubstancePolymerMonomerSetStartingMaterialComponentContent(int eventType, XmlPullParser xpp, SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("material")) {
- res.setMaterial(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) {
- res.setType(parseCodeableConcept(xpp));
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) {
+ res.setCode(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("isDefining")) {
res.setIsDefiningElement(parseBoolean(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("amount")) {
@@ -22446,10 +23704,10 @@ public class XmlParser extends XmlParserBase {
}
protected boolean parseSubstancePolymerRepeatRepeatUnitComponentContent(int eventType, XmlPullParser xpp, SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
- if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("orientationOfPolymerisation")) {
- res.setOrientationOfPolymerisation(parseCodeableConcept(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("repeatUnit")) {
- res.setRepeatUnitElement(parseString(xpp));
+ if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("unit")) {
+ res.setUnitElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("orientation")) {
+ res.setOrientation(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("amount")) {
res.setAmount(parseSubstanceAmount(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("degreeOfPolymerisation")) {
@@ -22508,6 +23766,8 @@ public class XmlParser extends XmlParserBase {
res.setType(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("representation")) {
res.setRepresentationElement(parseString(xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("format")) {
+ res.setFormat(parseCodeableConcept(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("attachment")) {
res.setAttachment(parseAttachment(xpp));
} else if (!parseBackboneElementContent(eventType, xpp, res)){
@@ -23060,8 +24320,8 @@ public class XmlParser extends XmlParserBase {
res.setCategory(parseCodeableConcept(xpp));
} 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 && nameIsTypeName(xpp, "item")) {
- res.setItem(parseType("item", xpp));
+ } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("item")) {
+ res.setItem(parseCodeableReference(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("quantity")) {
res.setQuantity(parseQuantity(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("parameter")) {
@@ -24476,158 +25736,6 @@ public class XmlParser extends XmlParserBase {
return true;
}
- protected Topic parseTopic(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
- Topic res = new Topic();
- parseResourceAttributes(xpp, res);
- next(xpp);
- int eventType = nextNoWhitespace(xpp);
- while (eventType != XmlPullParser.END_TAG) {
- if (!parseTopicContent(eventType, xpp, res))
- unknownContent(xpp);
- eventType = nextNoWhitespace(xpp);
- }
- next(xpp);
- parseElementClose(res);
- return res;
- }
-
- protected boolean parseTopicContent(int eventType, XmlPullParser xpp, Topic 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("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("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 && xpp.getName().equals("date")) {
- res.setDateElement(parseDateTime(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisher")) {
- res.setPublisher(parseReference(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("resourceTrigger")) {
- res.setResourceTrigger(parseTopicResourceTriggerComponent(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("canFilterBy")) {
- res.getCanFilterBy().add(parseTopicCanFilterByComponent(xpp));
- } else if (!parseDomainResourceContent(eventType, xpp, res)){
- return false;
- }
- return true;
- }
-
- protected Topic.TopicResourceTriggerComponent parseTopicResourceTriggerComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
- Topic.TopicResourceTriggerComponent res = new Topic.TopicResourceTriggerComponent();
- parseElementAttributes(xpp, res);
- next(xpp);
- int eventType = nextNoWhitespace(xpp);
- while (eventType != XmlPullParser.END_TAG) {
- if (!parseTopicResourceTriggerComponentContent(eventType, xpp, res))
- unknownContent(xpp);
- eventType = nextNoWhitespace(xpp);
- }
- next(xpp);
- parseElementClose(res);
- return res;
- }
-
- protected boolean parseTopicResourceTriggerComponentContent(int eventType, XmlPullParser xpp, Topic.TopicResourceTriggerComponent 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("resourceType")) {
- res.getResourceType().add(parseCode(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("methodCriteria")) {
- res.getMethodCriteria().add(parseEnumeration(xpp, Topic.InteractionTrigger.NULL, new Topic.InteractionTriggerEnumFactory()));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("queryCriteria")) {
- res.setQueryCriteria(parseTopicResourceTriggerQueryCriteriaComponent(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("fhirPathCriteria")) {
- res.setFhirPathCriteriaElement(parseString(xpp));
- } else if (!parseBackboneElementContent(eventType, xpp, res)){
- return false;
- }
- return true;
- }
-
- protected Topic.TopicResourceTriggerQueryCriteriaComponent parseTopicResourceTriggerQueryCriteriaComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
- Topic.TopicResourceTriggerQueryCriteriaComponent res = new Topic.TopicResourceTriggerQueryCriteriaComponent();
- parseElementAttributes(xpp, res);
- next(xpp);
- int eventType = nextNoWhitespace(xpp);
- while (eventType != XmlPullParser.END_TAG) {
- if (!parseTopicResourceTriggerQueryCriteriaComponentContent(eventType, xpp, res))
- unknownContent(xpp);
- eventType = nextNoWhitespace(xpp);
- }
- next(xpp);
- parseElementClose(res);
- return res;
- }
-
- protected boolean parseTopicResourceTriggerQueryCriteriaComponentContent(int eventType, XmlPullParser xpp, Topic.TopicResourceTriggerQueryCriteriaComponent 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("current")) {
- res.setCurrentElement(parseString(xpp));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("requireBoth")) {
- res.setRequireBothElement(parseBoolean(xpp));
- } else if (!parseBackboneElementContent(eventType, xpp, res)){
- return false;
- }
- return true;
- }
-
- protected Topic.TopicCanFilterByComponent parseTopicCanFilterByComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
- Topic.TopicCanFilterByComponent res = new Topic.TopicCanFilterByComponent();
- parseElementAttributes(xpp, res);
- next(xpp);
- int eventType = nextNoWhitespace(xpp);
- while (eventType != XmlPullParser.END_TAG) {
- if (!parseTopicCanFilterByComponentContent(eventType, xpp, res))
- unknownContent(xpp);
- eventType = nextNoWhitespace(xpp);
- }
- next(xpp);
- parseElementClose(res);
- return res;
- }
-
- protected boolean parseTopicCanFilterByComponentContent(int eventType, XmlPullParser xpp, Topic.TopicCanFilterByComponent 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("matchType")) {
- res.getMatchType().add(parseEnumeration(xpp, Topic.TopicFilterByMatchType.NULL, new Topic.TopicFilterByMatchTypeEnumFactory()));
- } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("documentation")) {
- res.setDocumentationElement(parseMarkdown(xpp));
- } else if (!parseBackboneElementContent(eventType, xpp, res)){
- return false;
- }
- return true;
- }
-
protected ValueSet parseValueSet(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
ValueSet res = new ValueSet();
parseResourceAttributes(xpp, res);
@@ -25300,6 +26408,8 @@ public class XmlParser extends XmlParserBase {
return parseChargeItem(xpp);
} else if (xpp.getName().equals("ChargeItemDefinition")) {
return parseChargeItemDefinition(xpp);
+ } else if (xpp.getName().equals("Citation")) {
+ return parseCitation(xpp);
} else if (xpp.getName().equals("Claim")) {
return parseClaim(xpp);
} else if (xpp.getName().equals("ClaimResponse")) {
@@ -25366,6 +26476,8 @@ public class XmlParser extends XmlParserBase {
return parseEventDefinition(xpp);
} else if (xpp.getName().equals("Evidence")) {
return parseEvidence(xpp);
+ } else if (xpp.getName().equals("EvidenceFocus")) {
+ return parseEvidenceFocus(xpp);
} else if (xpp.getName().equals("EvidenceVariable")) {
return parseEvidenceVariable(xpp);
} else if (xpp.getName().equals("ExampleScenario")) {
@@ -25442,6 +26554,8 @@ public class XmlParser extends XmlParserBase {
return parseNutritionIntake(xpp);
} else if (xpp.getName().equals("NutritionOrder")) {
return parseNutritionOrder(xpp);
+ } else if (xpp.getName().equals("NutritionProduct")) {
+ return parseNutritionProduct(xpp);
} else if (xpp.getName().equals("Observation")) {
return parseObservation(xpp);
} else if (xpp.getName().equals("ObservationDefinition")) {
@@ -25464,6 +26578,8 @@ public class XmlParser extends XmlParserBase {
return parsePaymentNotice(xpp);
} else if (xpp.getName().equals("PaymentReconciliation")) {
return parsePaymentReconciliation(xpp);
+ } else if (xpp.getName().equals("Permission")) {
+ return parsePermission(xpp);
} else if (xpp.getName().equals("Person")) {
return parsePerson(xpp);
} else if (xpp.getName().equals("PlanDefinition")) {
@@ -25510,6 +26626,10 @@ public class XmlParser extends XmlParserBase {
return parseStructureMap(xpp);
} else if (xpp.getName().equals("Subscription")) {
return parseSubscription(xpp);
+ } else if (xpp.getName().equals("SubscriptionStatus")) {
+ return parseSubscriptionStatus(xpp);
+ } else if (xpp.getName().equals("SubscriptionTopic")) {
+ return parseSubscriptionTopic(xpp);
} else if (xpp.getName().equals("Substance")) {
return parseSubstance(xpp);
} else if (xpp.getName().equals("SubstanceDefinition")) {
@@ -25536,8 +26656,6 @@ public class XmlParser extends XmlParserBase {
return parseTestReport(xpp);
} else if (xpp.getName().equals("TestScript")) {
return parseTestScript(xpp);
- } else if (xpp.getName().equals("Topic")) {
- return parseTopic(xpp);
} else if (xpp.getName().equals("ValueSet")) {
return parseValueSet(xpp);
} else if (xpp.getName().equals("VerificationResult")) {
@@ -25949,6 +27067,8 @@ public class XmlParser extends XmlParserBase {
return parseChargeItem(xpp);
} else if (type.equals("ChargeItemDefinition")) {
return parseChargeItemDefinition(xpp);
+ } else if (type.equals("Citation")) {
+ return parseCitation(xpp);
} else if (type.equals("Claim")) {
return parseClaim(xpp);
} else if (type.equals("ClaimResponse")) {
@@ -26015,6 +27135,8 @@ public class XmlParser extends XmlParserBase {
return parseEventDefinition(xpp);
} else if (type.equals("Evidence")) {
return parseEvidence(xpp);
+ } else if (type.equals("EvidenceFocus")) {
+ return parseEvidenceFocus(xpp);
} else if (type.equals("EvidenceVariable")) {
return parseEvidenceVariable(xpp);
} else if (type.equals("ExampleScenario")) {
@@ -26091,6 +27213,8 @@ public class XmlParser extends XmlParserBase {
return parseNutritionIntake(xpp);
} else if (type.equals("NutritionOrder")) {
return parseNutritionOrder(xpp);
+ } else if (type.equals("NutritionProduct")) {
+ return parseNutritionProduct(xpp);
} else if (type.equals("Observation")) {
return parseObservation(xpp);
} else if (type.equals("ObservationDefinition")) {
@@ -26113,6 +27237,8 @@ public class XmlParser extends XmlParserBase {
return parsePaymentNotice(xpp);
} else if (type.equals("PaymentReconciliation")) {
return parsePaymentReconciliation(xpp);
+ } else if (type.equals("Permission")) {
+ return parsePermission(xpp);
} else if (type.equals("Person")) {
return parsePerson(xpp);
} else if (type.equals("PlanDefinition")) {
@@ -26159,6 +27285,10 @@ public class XmlParser extends XmlParserBase {
return parseStructureMap(xpp);
} else if (type.equals("Subscription")) {
return parseSubscription(xpp);
+ } else if (type.equals("SubscriptionStatus")) {
+ return parseSubscriptionStatus(xpp);
+ } else if (type.equals("SubscriptionTopic")) {
+ return parseSubscriptionTopic(xpp);
} else if (type.equals("Substance")) {
return parseSubstance(xpp);
} else if (type.equals("SubstanceDefinition")) {
@@ -26185,8 +27315,6 @@ public class XmlParser extends XmlParserBase {
return parseTestReport(xpp);
} else if (type.equals("TestScript")) {
return parseTestScript(xpp);
- } else if (type.equals("Topic")) {
- return parseTopic(xpp);
} else if (type.equals("ValueSet")) {
return parseValueSet(xpp);
} else if (type.equals("VerificationResult")) {
@@ -26368,6 +27496,8 @@ public class XmlParser extends XmlParserBase {
return true;
} else if (xpp.getName().equals(prefix+"ChargeItemDefinition")) {
return true;
+ } else if (xpp.getName().equals(prefix+"Citation")) {
+ return true;
} else if (xpp.getName().equals(prefix+"Claim")) {
return true;
} else if (xpp.getName().equals(prefix+"ClaimResponse")) {
@@ -26434,6 +27564,8 @@ public class XmlParser extends XmlParserBase {
return true;
} else if (xpp.getName().equals(prefix+"Evidence")) {
return true;
+ } else if (xpp.getName().equals(prefix+"EvidenceFocus")) {
+ return true;
} else if (xpp.getName().equals(prefix+"EvidenceVariable")) {
return true;
} else if (xpp.getName().equals(prefix+"ExampleScenario")) {
@@ -26510,6 +27642,8 @@ public class XmlParser extends XmlParserBase {
return true;
} else if (xpp.getName().equals(prefix+"NutritionOrder")) {
return true;
+ } else if (xpp.getName().equals(prefix+"NutritionProduct")) {
+ return true;
} else if (xpp.getName().equals(prefix+"Observation")) {
return true;
} else if (xpp.getName().equals(prefix+"ObservationDefinition")) {
@@ -26532,6 +27666,8 @@ public class XmlParser extends XmlParserBase {
return true;
} else if (xpp.getName().equals(prefix+"PaymentReconciliation")) {
return true;
+ } else if (xpp.getName().equals(prefix+"Permission")) {
+ return true;
} else if (xpp.getName().equals(prefix+"Person")) {
return true;
} else if (xpp.getName().equals(prefix+"PlanDefinition")) {
@@ -26578,6 +27714,10 @@ public class XmlParser extends XmlParserBase {
return true;
} else if (xpp.getName().equals(prefix+"Subscription")) {
return true;
+ } else if (xpp.getName().equals(prefix+"SubscriptionStatus")) {
+ return true;
+ } else if (xpp.getName().equals(prefix+"SubscriptionTopic")) {
+ return true;
} else if (xpp.getName().equals(prefix+"Substance")) {
return true;
} else if (xpp.getName().equals(prefix+"SubstanceDefinition")) {
@@ -26604,8 +27744,6 @@ public class XmlParser extends XmlParserBase {
return true;
} else if (xpp.getName().equals(prefix+"TestScript")) {
return true;
- } else if (xpp.getName().equals(prefix+"Topic")) {
- return true;
} else if (xpp.getName().equals(prefix+"ValueSet")) {
return true;
} else if (xpp.getName().equals(prefix+"VerificationResult")) {
@@ -29100,9 +30238,9 @@ public class XmlParser extends XmlParserBase {
for (Reference e : element.getDevice())
composeReference("device", e);
}
- if (element.hasCharacteristic()) {
- for (AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent e : element.getCharacteristic())
- composeAdministrableProductDefinitionCharacteristicComponent("characteristic", e);
+ if (element.hasProperty()) {
+ for (AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent e : element.getProperty())
+ composeAdministrableProductDefinitionPropertyComponent("property", e);
}
if (element.hasRouteOfAdministration()) {
for (AdministrableProductDefinition.AdministrableProductDefinitionRouteOfAdministrationComponent e : element.getRouteOfAdministration())
@@ -29110,20 +30248,20 @@ public class XmlParser extends XmlParserBase {
}
}
- protected void composeAdministrableProductDefinitionCharacteristicComponent(String name, AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent element) throws IOException {
+ protected void composeAdministrableProductDefinitionPropertyComponent(String name, AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent element) throws IOException {
if (element != null) {
composeElementAttributes(element);
xml.enter(FHIR_NS, name);
- composeAdministrableProductDefinitionCharacteristicComponentElements(element);
+ composeAdministrableProductDefinitionPropertyComponentElements(element);
composeElementClose(element);
xml.exit(FHIR_NS, name);
}
}
- protected void composeAdministrableProductDefinitionCharacteristicComponentElements(AdministrableProductDefinition.AdministrableProductDefinitionCharacteristicComponent element) throws IOException {
+ protected void composeAdministrableProductDefinitionPropertyComponentElements(AdministrableProductDefinition.AdministrableProductDefinitionPropertyComponent element) throws IOException {
composeBackboneElementElements(element);
- if (element.hasCode()) {
- composeCodeableConcept("code", element.getCode());
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
}
if (element.hasValue()) {
composeType("value", element.getValue());
@@ -29705,10 +30843,8 @@ public class XmlParser extends XmlParserBase {
if (element.hasRecordedElement()) {
composeInstant("recorded", element.getRecordedElement());
}
- if (element.hasOutcomeElement())
- composeEnumeration("outcome", element.getOutcomeElement(), new AuditEvent.AuditEventOutcomeEnumFactory());
- if (element.hasOutcomeDescElement()) {
- composeString("outcomeDesc", element.getOutcomeDescElement());
+ if (element.hasOutcome()) {
+ composeCodeableConcept("outcome", element.getOutcome());
}
if (element.hasPurposeOfEvent()) {
for (CodeableConcept e : element.getPurposeOfEvent())
@@ -31210,7 +32346,7 @@ public class XmlParser extends XmlParserBase {
if (element.hasScheduled()) {
composeType("scheduled", element.getScheduled());
} if (element.hasLocation()) {
- composeReference("location", element.getLocation());
+ composeCodeableReference("location", element.getLocation());
}
if (element.hasReported()) {
composeType("reported", element.getReported());
@@ -31674,6 +32810,646 @@ public class XmlParser extends XmlParserBase {
}
}
+ protected void composeCitation(String name, Citation element) throws IOException {
+ if (element != null) {
+ composeResourceAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationElements(Citation element) throws IOException {
+ composeMetadataResourceElements(element);
+ if (element.hasUrlElement()) {
+ composeUri("url", element.getUrlElement());
+ }
+ if (element.hasVersionElement()) {
+ composeString("version", element.getVersionElement());
+ }
+ if (element.hasStatusElement())
+ composeEnumeration("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory());
+ if (element.hasUseContext()) {
+ for (UsageContext e : element.getUseContext())
+ composeUsageContext("useContext", e);
+ }
+ if (element.hasIdentifier()) {
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier("identifier", e);
+ }
+ if (element.hasRelatedIdentifier()) {
+ for (Identifier e : element.getRelatedIdentifier())
+ composeIdentifier("relatedIdentifier", e);
+ }
+ if (element.hasDateCitedElement()) {
+ composeDateTime("dateCited", element.getDateCitedElement());
+ }
+ if (element.hasVariantCitation()) {
+ composeCitationVariantCitationComponent("variantCitation", element.getVariantCitation());
+ }
+ if (element.hasPublishingModel()) {
+ composeCodeableConcept("publishingModel", element.getPublishingModel());
+ }
+ if (element.hasJournal()) {
+ composeCitationJournalComponent("journal", element.getJournal());
+ }
+ if (element.hasArticleTitleElement()) {
+ composeMarkdown("articleTitle", element.getArticleTitleElement());
+ }
+ if (element.hasAlternativeTitle()) {
+ for (Citation.CitationAlternativeTitleComponent e : element.getAlternativeTitle())
+ composeCitationAlternativeTitleComponent("alternativeTitle", e);
+ }
+ if (element.hasPagination()) {
+ composeCitationPaginationComponent("pagination", element.getPagination());
+ }
+ if (element.hasArticleUrl()) {
+ for (Citation.CitationArticleUrlComponent e : element.getArticleUrl())
+ composeCitationArticleUrlComponent("articleUrl", 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.hasAuthorList()) {
+ composeCitationAuthorListComponent("authorList", element.getAuthorList());
+ }
+ if (element.hasAuthorString()) {
+ for (Citation.CitationAuthorStringComponent e : element.getAuthorString())
+ composeCitationAuthorStringComponent("authorString", e);
+ }
+ if (element.hasContributorList()) {
+ composeCitationContributorListComponent("contributorList", element.getContributorList());
+ }
+ 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.hasRelatedArtifact()) {
+ for (RelatedArtifact e : element.getRelatedArtifact())
+ composeRelatedArtifact("relatedArtifact", e);
+ }
+ if (element.hasNote()) {
+ for (Annotation e : element.getNote())
+ composeAnnotation("note", e);
+ }
+ if (element.hasMedlinePubMed()) {
+ composeCitationMedlinePubMedComponent("medlinePubMed", element.getMedlinePubMed());
+ }
+ }
+
+ protected void composeCitationVariantCitationComponent(String name, Citation.CitationVariantCitationComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationVariantCitationComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationVariantCitationComponentElements(Citation.CitationVariantCitationComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
+ }
+ if (element.hasValueElement()) {
+ composeString("value", element.getValueElement());
+ }
+ if (element.hasBaseCitation()) {
+ composeReference("baseCitation", element.getBaseCitation());
+ }
+ }
+
+ protected void composeCitationJournalComponent(String name, Citation.CitationJournalComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationJournalComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationJournalComponentElements(Citation.CitationJournalComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ 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());
+ }
+ }
+
+ protected void composeCitationJournalJournalIssueComponent(String name, Citation.CitationJournalJournalIssueComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationJournalJournalIssueComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationJournalJournalIssueComponentElements(Citation.CitationJournalJournalIssueComponent 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.hasPublicationDateElement()) {
+ composeString("publicationDate", element.getPublicationDateElement());
+ }
+ }
+
+ 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 {
+ composeBackboneElementElements(element);
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
+ }
+ if (element.hasUrlElement()) {
+ composeUri("url", element.getUrlElement());
+ }
+ }
+
+ protected void composeCitationAlternativeAbstractComponent(String name, Citation.CitationAlternativeAbstractComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationAlternativeAbstractComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationAlternativeAbstractComponentElements(Citation.CitationAlternativeAbstractComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
+ }
+ if (element.hasLanguage()) {
+ composeCodeableConcept("language", element.getLanguage());
+ }
+ if (element.hasAbstractElement()) {
+ composeMarkdown("abstract", element.getAbstractElement());
+ }
+ if (element.hasAbstractCopyrightElement()) {
+ composeMarkdown("abstractCopyright", element.getAbstractCopyrightElement());
+ }
+ }
+
+ protected void composeCitationAuthorListComponent(String name, Citation.CitationAuthorListComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationAuthorListComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationAuthorListComponentElements(Citation.CitationAuthorListComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasCompleteElement()) {
+ composeBoolean("complete", element.getCompleteElement());
+ }
+ if (element.hasAuthor()) {
+ for (Citation.CitationAuthorListAuthorComponent e : element.getAuthor())
+ composeCitationAuthorListAuthorComponent("author", e);
+ }
+ }
+
+ protected void composeCitationAuthorListAuthorComponent(String name, Citation.CitationAuthorListAuthorComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationAuthorListAuthorComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationAuthorListAuthorComponentElements(Citation.CitationAuthorListAuthorComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasLastNameElement()) {
+ composeString("lastName", element.getLastNameElement());
+ }
+ if (element.hasForeNameElement()) {
+ composeString("foreName", element.getForeNameElement());
+ }
+ if (element.hasSuffixElement()) {
+ composeString("suffix", element.getSuffixElement());
+ }
+ if (element.hasInitialsElement()) {
+ composeString("initials", element.getInitialsElement());
+ }
+ if (element.hasCollectiveNameElement()) {
+ composeString("collectiveName", element.getCollectiveNameElement());
+ }
+ if (element.hasIdentifier()) {
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier("identifier", e);
+ }
+ if (element.hasAffiliationInfo()) {
+ for (Citation.CitationAuthorListAuthorAffiliationInfoComponent e : element.getAffiliationInfo())
+ composeCitationAuthorListAuthorAffiliationInfoComponent("affiliationInfo", e);
+ }
+ if (element.hasAddress()) {
+ for (StringType e : element.getAddress())
+ composeString("address", e);
+ }
+ if (element.hasTelecom()) {
+ for (ContactPoint e : element.getTelecom())
+ composeContactPoint("telecom", e);
+ }
+ if (element.hasCorrespondingAuthorElement()) {
+ composeBoolean("correspondingAuthor", element.getCorrespondingAuthorElement());
+ }
+ if (element.hasListOrderElement()) {
+ composePositiveInt("listOrder", element.getListOrderElement());
+ }
+ }
+
+ protected void composeCitationAuthorListAuthorAffiliationInfoComponent(String name, Citation.CitationAuthorListAuthorAffiliationInfoComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationAuthorListAuthorAffiliationInfoComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationAuthorListAuthorAffiliationInfoComponentElements(Citation.CitationAuthorListAuthorAffiliationInfoComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasAffiliationElement()) {
+ composeString("affiliation", element.getAffiliationElement());
+ }
+ if (element.hasRoleElement()) {
+ composeString("role", element.getRoleElement());
+ }
+ if (element.hasIdentifier()) {
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier("identifier", e);
+ }
+ }
+
+ protected void composeCitationAuthorStringComponent(String name, Citation.CitationAuthorStringComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationAuthorStringComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationAuthorStringComponentElements(Citation.CitationAuthorStringComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasSource()) {
+ composeCodeableConcept("source", element.getSource());
+ }
+ if (element.hasValueElement()) {
+ composeString("value", element.getValueElement());
+ }
+ }
+
+ protected void composeCitationContributorListComponent(String name, Citation.CitationContributorListComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationContributorListComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationContributorListComponentElements(Citation.CitationContributorListComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasCompleteElement()) {
+ composeBoolean("complete", element.getCompleteElement());
+ }
+ if (element.hasContributor()) {
+ for (Citation.CitationContributorListContributorComponent e : element.getContributor())
+ composeCitationContributorListContributorComponent("contributor", e);
+ }
+ }
+
+ protected void composeCitationContributorListContributorComponent(String name, Citation.CitationContributorListContributorComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationContributorListContributorComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationContributorListContributorComponentElements(Citation.CitationContributorListContributorComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasLastNameElement()) {
+ composeString("lastName", element.getLastNameElement());
+ }
+ if (element.hasForeNameElement()) {
+ composeString("foreName", element.getForeNameElement());
+ }
+ if (element.hasSuffixElement()) {
+ composeString("suffix", element.getSuffixElement());
+ }
+ if (element.hasInitialsElement()) {
+ composeString("initials", element.getInitialsElement());
+ }
+ if (element.hasCollectiveNameElement()) {
+ composeString("collectiveName", element.getCollectiveNameElement());
+ }
+ if (element.hasIdentifier()) {
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier("identifier", e);
+ }
+ if (element.hasContribution()) {
+ for (CodeableConcept e : element.getContribution())
+ composeCodeableConcept("contribution", e);
+ }
+ if (element.hasAffiliationInfo()) {
+ for (Citation.CitationContributorListContributorAffiliationInfoComponent e : element.getAffiliationInfo())
+ composeCitationContributorListContributorAffiliationInfoComponent("affiliationInfo", e);
+ }
+ if (element.hasListOrderElement()) {
+ composePositiveInt("listOrder", element.getListOrderElement());
+ }
+ }
+
+ protected void composeCitationContributorListContributorAffiliationInfoComponent(String name, Citation.CitationContributorListContributorAffiliationInfoComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeCitationContributorListContributorAffiliationInfoComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeCitationContributorListContributorAffiliationInfoComponentElements(Citation.CitationContributorListContributorAffiliationInfoComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasAffiliationElement()) {
+ composeString("affiliation", element.getAffiliationElement());
+ }
+ if (element.hasRoleElement()) {
+ composeString("role", element.getRoleElement());
+ }
+ if (element.hasIdentifier()) {
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier("identifier", e);
+ }
+ }
+
+ 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());
+ }
+ }
+
+ 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.hasPublicationDateElement()) {
+ composeString("publicationDate", element.getPublicationDateElement());
+ }
+ }
+
+ 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 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);
@@ -32799,6 +34575,9 @@ public class XmlParser extends XmlParserBase {
}
if (element.hasTypeElement())
composeEnumeration("type", element.getTypeElement(), new ClinicalUseIssue.ClinicalUseIssueTypeEnumFactory());
+ if (element.hasCategory()) {
+ composeCodeableConcept("category", element.getCategory());
+ }
if (element.hasSubject()) {
for (Reference e : element.getSubject())
composeReference("subject", e);
@@ -34233,8 +36012,8 @@ public class XmlParser extends XmlParserBase {
for (CodeableConcept e : element.getCategory())
composeCodeableConcept("category", e);
}
- if (element.hasPatient()) {
- composeReference("patient", element.getPatient());
+ if (element.hasSubject()) {
+ composeReference("subject", element.getSubject());
}
if (element.hasDateTimeElement()) {
composeDateTime("dateTime", element.getDateTimeElement());
@@ -35661,6 +37440,9 @@ public class XmlParser extends XmlParserBase {
for (Identifier e : element.getIdentifier())
composeIdentifier("identifier", e);
}
+ if (element.hasDisplayNameElement()) {
+ composeString("displayName", element.getDisplayNameElement());
+ }
if (element.hasDefinition()) {
composeReference("definition", element.getDefinition());
}
@@ -35702,8 +37484,9 @@ public class XmlParser extends XmlParserBase {
if (element.hasPartNumberElement()) {
composeString("partNumber", element.getPartNumberElement());
}
- if (element.hasType()) {
- composeCodeableConcept("type", element.getType());
+ if (element.hasType()) {
+ for (CodeableConcept e : element.getType())
+ composeCodeableConcept("type", e);
}
if (element.hasSpecialization()) {
for (Device.DeviceSpecializationComponent e : element.getSpecialization())
@@ -35720,6 +37503,12 @@ public class XmlParser extends XmlParserBase {
if (element.hasPatient()) {
composeReference("patient", element.getPatient());
}
+ if (element.hasOperationalStatus()) {
+ composeDeviceOperationalStatusComponent("operationalStatus", element.getOperationalStatus());
+ }
+ if (element.hasAssociationStatus()) {
+ composeDeviceAssociationStatusComponent("associationStatus", element.getAssociationStatus());
+ }
if (element.hasOwner()) {
composeReference("owner", element.getOwner());
}
@@ -35864,6 +37653,48 @@ public class XmlParser extends XmlParserBase {
}
}
+ protected void composeDeviceOperationalStatusComponent(String name, Device.DeviceOperationalStatusComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeDeviceOperationalStatusComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeDeviceOperationalStatusComponentElements(Device.DeviceOperationalStatusComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasValue()) {
+ composeCodeableConcept("value", element.getValue());
+ }
+ if (element.hasReason()) {
+ for (CodeableConcept e : element.getReason())
+ composeCodeableConcept("reason", e);
+ }
+ }
+
+ protected void composeDeviceAssociationStatusComponent(String name, Device.DeviceAssociationStatusComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeDeviceAssociationStatusComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeDeviceAssociationStatusComponentElements(Device.DeviceAssociationStatusComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasValue()) {
+ composeCodeableConcept("value", element.getValue());
+ }
+ if (element.hasReason()) {
+ for (CodeableConcept e : element.getReason())
+ composeCodeableConcept("reason", e);
+ }
+ }
+
protected void composeDeviceDefinition(String name, DeviceDefinition element) throws IOException {
if (element != null) {
composeResourceAttributes(element);
@@ -35934,9 +37765,6 @@ public class XmlParser extends XmlParserBase {
for (ContactPoint e : element.getContact())
composeContactPoint("contact", e);
}
- if (element.hasUrlElement()) {
- composeUri("url", element.getUrlElement());
- }
if (element.hasOnlineInformationElement()) {
composeUri("onlineInformation", element.getOnlineInformationElement());
}
@@ -36193,8 +38021,9 @@ public class XmlParser extends XmlParserBase {
if (element.hasPriorityElement())
composeEnumeration("priority", element.getPriorityElement(), new Enumerations.RequestPriorityEnumFactory());
if (element.hasCode()) {
- composeType("code", element.getCode());
- } if (element.hasParameter()) {
+ composeCodeableReference("code", element.getCode());
+ }
+ if (element.hasParameter()) {
for (DeviceRequest.DeviceRequestParameterComponent e : element.getParameter())
composeDeviceRequestParameterComponent("parameter", e);
}
@@ -36281,6 +38110,10 @@ public class XmlParser extends XmlParserBase {
}
if (element.hasStatusElement())
composeEnumeration("status", element.getStatusElement(), new DeviceUseStatement.DeviceUseStatementStatusEnumFactory());
+ if (element.hasCategory()) {
+ for (CodeableConcept e : element.getCategory())
+ composeCodeableConcept("category", e);
+ }
if (element.hasSubject()) {
composeReference("subject", element.getSubject());
}
@@ -36288,23 +38121,33 @@ public class XmlParser extends XmlParserBase {
for (Reference e : element.getDerivedFrom())
composeReference("derivedFrom", e);
}
+ if (element.hasContext()) {
+ composeReference("context", element.getContext());
+ }
if (element.hasTiming()) {
composeType("timing", element.getTiming());
- } if (element.hasRecordedOnElement()) {
- composeDateTime("recordedOn", element.getRecordedOnElement());
+ } if (element.hasDateAssertedElement()) {
+ composeDateTime("dateAsserted", element.getDateAssertedElement());
}
- if (element.hasSource()) {
- composeReference("source", element.getSource());
+ if (element.hasUsageStatus()) {
+ composeCodeableConcept("usageStatus", element.getUsageStatus());
+ }
+ if (element.hasUsageReason()) {
+ for (CodeableConcept e : element.getUsageReason())
+ composeCodeableConcept("usageReason", e);
+ }
+ if (element.hasInformationSource()) {
+ composeReference("informationSource", element.getInformationSource());
}
if (element.hasDevice()) {
- composeReference("device", element.getDevice());
+ composeCodeableReference("device", element.getDevice());
}
if (element.hasReason()) {
for (CodeableReference e : element.getReason())
composeCodeableReference("reason", e);
}
if (element.hasBodySite()) {
- composeCodeableConcept("bodySite", element.getBodySite());
+ composeCodeableReference("bodySite", element.getBodySite());
}
if (element.hasNote()) {
for (Annotation e : element.getNote())
@@ -37265,9 +39108,6 @@ public class XmlParser extends XmlParserBase {
for (Annotation e : element.getNote())
composeAnnotation("note", e);
}
- if (element.hasReferentGroup()) {
- composeEvidenceReferentGroupComponent("referentGroup", element.getReferentGroup());
- }
if (element.hasVariableDefinition()) {
for (Evidence.EvidenceVariableDefinitionComponent e : element.getVariableDefinition())
composeEvidenceVariableDefinitionComponent("variableDefinition", e);
@@ -37292,36 +39132,6 @@ public class XmlParser extends XmlParserBase {
}
}
- protected void composeEvidenceReferentGroupComponent(String name, Evidence.EvidenceReferentGroupComponent element) throws IOException {
- if (element != null) {
- composeElementAttributes(element);
- xml.enter(FHIR_NS, name);
- composeEvidenceReferentGroupComponentElements(element);
- composeElementClose(element);
- xml.exit(FHIR_NS, name);
- }
- }
-
- protected void composeEvidenceReferentGroupComponentElements(Evidence.EvidenceReferentGroupComponent element) throws IOException {
- composeBackboneElementElements(element);
- if (element.hasDescriptionElement()) {
- composeMarkdown("description", element.getDescriptionElement());
- }
- if (element.hasNote()) {
- for (Annotation e : element.getNote())
- composeAnnotation("note", e);
- }
- if (element.hasEvidenceSource()) {
- composeReference("evidenceSource", element.getEvidenceSource());
- }
- if (element.hasIntendedGroup()) {
- composeReference("intendedGroup", element.getIntendedGroup());
- }
- if (element.hasDirectnessMatch()) {
- composeCodeableConcept("directnessMatch", element.getDirectnessMatch());
- }
- }
-
protected void composeEvidenceVariableDefinitionComponent(String name, Evidence.EvidenceVariableDefinitionComponent element) throws IOException {
if (element != null) {
composeElementAttributes(element);
@@ -37344,11 +39154,11 @@ public class XmlParser extends XmlParserBase {
if (element.hasVariableRole()) {
composeCodeableConcept("variableRole", element.getVariableRole());
}
- if (element.hasActualDefinition()) {
- composeReference("actualDefinition", element.getActualDefinition());
+ if (element.hasObserved()) {
+ composeReference("observed", element.getObserved());
}
- if (element.hasIntendedDefinition()) {
- composeReference("intendedDefinition", element.getIntendedDefinition());
+ if (element.hasIntended()) {
+ composeReference("intended", element.getIntended());
}
if (element.hasDirectnessMatch()) {
composeCodeableConcept("directnessMatch", element.getDirectnessMatch());
@@ -37411,6 +39221,85 @@ public class XmlParser extends XmlParserBase {
}
}
+ protected void composeEvidenceFocus(String name, EvidenceFocus element) throws IOException {
+ if (element != null) {
+ composeResourceAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeEvidenceFocusElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeEvidenceFocusElements(EvidenceFocus element) throws IOException {
+ composeMetadataResourceElements(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.hasStatusElement())
+ composeEnumeration("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory());
+ if (element.hasUseContext()) {
+ for (UsageContext e : element.getUseContext())
+ composeUsageContext("useContext", e);
+ }
+ if (element.hasDateElement()) {
+ composeDateTime("date", element.getDateElement());
+ }
+ if (element.hasNote()) {
+ for (Annotation e : element.getNote())
+ composeAnnotation("note", e);
+ }
+ if (element.hasCopyrightElement()) {
+ composeMarkdown("copyright", element.getCopyrightElement());
+ }
+ if (element.hasCiteAs()) {
+ composeReference("citeAs", element.getCiteAs());
+ }
+ if (element.hasCharacteristic()) {
+ for (EvidenceFocus.EvidenceFocusCharacteristicComponent e : element.getCharacteristic())
+ composeEvidenceFocusCharacteristicComponent("characteristic", e);
+ }
+ if (element.hasRelatedArtifact()) {
+ for (RelatedArtifact e : element.getRelatedArtifact())
+ composeRelatedArtifact("relatedArtifact", e);
+ }
+ }
+
+ protected void composeEvidenceFocusCharacteristicComponent(String name, EvidenceFocus.EvidenceFocusCharacteristicComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeEvidenceFocusCharacteristicComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeEvidenceFocusCharacteristicComponentElements(EvidenceFocus.EvidenceFocusCharacteristicComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasCode()) {
+ composeCodeableConcept("code", element.getCode());
+ }
+ if (element.hasValue()) {
+ composeType("value", element.getValue());
+ } if (element.hasExcludeElement()) {
+ composeBoolean("exclude", element.getExcludeElement());
+ }
+ if (element.hasPeriod()) {
+ composePeriod("period", element.getPeriod());
+ }
+ }
+
protected void composeEvidenceVariable(String name, EvidenceVariable element) throws IOException {
if (element != null) {
composeResourceAttributes(element);
@@ -37513,6 +39402,8 @@ public class XmlParser extends XmlParserBase {
if (element.hasActualElement()) {
composeBoolean("actual", element.getActualElement());
}
+ if (element.hasCharacteristicCombinationElement())
+ composeEnumeration("characteristicCombination", element.getCharacteristicCombinationElement(), new EvidenceVariable.CharacteristicCombinationEnumFactory());
if (element.hasCharacteristic()) {
for (EvidenceVariable.EvidenceVariableCharacteristicComponent e : element.getCharacteristic())
composeEvidenceVariableCharacteristicComponent("characteristic", e);
@@ -37542,22 +39433,43 @@ public class XmlParser extends XmlParserBase {
if (element.hasDevice()) {
composeReference("device", element.getDevice());
}
- if (element.hasBooleanSet()) {
- for (StringType e : element.getBooleanSet())
- composeString("booleanSet", e);
- }
if (element.hasExcludeElement()) {
composeBoolean("exclude", element.getExcludeElement());
}
- if (element.hasParticipantEffective()) {
- composeType("participantEffective", element.getParticipantEffective());
- } if (element.hasTimeFromStart()) {
- composeDuration("timeFromStart", element.getTimeFromStart());
+ if (element.hasTimeFromStart()) {
+ composeEvidenceVariableCharacteristicTimeFromStartComponent("timeFromStart", element.getTimeFromStart());
}
if (element.hasGroupMeasureElement())
composeEnumeration("groupMeasure", element.getGroupMeasureElement(), new EvidenceVariable.GroupMeasureEnumFactory());
}
+ protected void composeEvidenceVariableCharacteristicTimeFromStartComponent(String name, EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeEvidenceVariableCharacteristicTimeFromStartComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeEvidenceVariableCharacteristicTimeFromStartComponentElements(EvidenceVariable.EvidenceVariableCharacteristicTimeFromStartComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasDescriptionElement()) {
+ composeString("description", element.getDescriptionElement());
+ }
+ if (element.hasQuantity()) {
+ composeQuantity("quantity", element.getQuantity());
+ }
+ if (element.hasRange()) {
+ composeRange("range", element.getRange());
+ }
+ if (element.hasNote()) {
+ for (Annotation e : element.getNote())
+ composeAnnotation("note", e);
+ }
+ }
+
protected void composeExampleScenario(String name, ExampleScenario element) throws IOException {
if (element != null) {
composeResourceAttributes(element);
@@ -39867,11 +41779,13 @@ public class XmlParser extends XmlParserBase {
for (CodeableConcept e : element.getTargetDisease())
composeCodeableConcept("targetDisease", e);
}
- if (element.hasDoseNumber()) {
- composeType("doseNumber", element.getDoseNumber());
- } if (element.hasSeriesDoses()) {
- composeType("seriesDoses", element.getSeriesDoses());
- } }
+ if (element.hasDoseNumberElement()) {
+ composeString("doseNumber", element.getDoseNumberElement());
+ }
+ if (element.hasSeriesDosesElement()) {
+ composeString("seriesDoses", element.getSeriesDosesElement());
+ }
+ }
protected void composeImmunizationEvaluation(String name, ImmunizationEvaluation element) throws IOException {
if (element != null) {
@@ -39919,11 +41833,13 @@ public class XmlParser extends XmlParserBase {
if (element.hasSeriesElement()) {
composeString("series", element.getSeriesElement());
}
- if (element.hasDoseNumber()) {
- composeType("doseNumber", element.getDoseNumber());
- } if (element.hasSeriesDoses()) {
- composeType("seriesDoses", element.getSeriesDoses());
- } }
+ if (element.hasDoseNumberElement()) {
+ composeString("doseNumber", element.getDoseNumberElement());
+ }
+ if (element.hasSeriesDosesElement()) {
+ composeString("seriesDoses", element.getSeriesDosesElement());
+ }
+ }
protected void composeImmunizationRecommendation(String name, ImmunizationRecommendation element) throws IOException {
if (element != null) {
@@ -39997,11 +41913,13 @@ public class XmlParser extends XmlParserBase {
if (element.hasSeriesElement()) {
composeString("series", element.getSeriesElement());
}
- if (element.hasDoseNumber()) {
- composeType("doseNumber", element.getDoseNumber());
- } if (element.hasSeriesDoses()) {
- composeType("seriesDoses", element.getSeriesDoses());
- } if (element.hasSupportingImmunization()) {
+ if (element.hasDoseNumberElement()) {
+ composeString("doseNumber", element.getDoseNumberElement());
+ }
+ if (element.hasSeriesDosesElement()) {
+ composeString("seriesDoses", element.getSeriesDosesElement());
+ }
+ if (element.hasSupportingImmunization()) {
for (Reference e : element.getSupportingImmunization())
composeReference("supportingImmunization", e);
}
@@ -40400,6 +42318,13 @@ public class XmlParser extends XmlParserBase {
if (element.hasRole()) {
composeCodeableConcept("role", element.getRole());
}
+ if (element.hasFunction()) {
+ for (CodeableConcept e : element.getFunction())
+ composeCodeableConcept("function", e);
+ }
+ if (element.hasDescriptionElement()) {
+ composeMarkdown("description", element.getDescriptionElement());
+ }
if (element.hasAllergenicIndicatorElement()) {
composeBoolean("allergenicIndicator", element.getAllergenicIndicatorElement());
}
@@ -40460,12 +42385,18 @@ public class XmlParser extends XmlParserBase {
if (element.hasPresentationHighLimit()) {
composeRatio("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()) {
+ composeString("concentrationText", element.getConcentrationTextElement());
+ }
if (element.hasMeasurementPointElement()) {
composeString("measurementPoint", element.getMeasurementPointElement());
}
@@ -41343,26 +43274,26 @@ public class XmlParser extends XmlParserBase {
for (Reference e : element.getIngredient())
composeReference("ingredient", e);
}
- if (element.hasCharacteristic()) {
- for (ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent e : element.getCharacteristic())
- composeManufacturedItemDefinitionCharacteristicComponent("characteristic", e);
+ if (element.hasProperty()) {
+ for (ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent e : element.getProperty())
+ composeManufacturedItemDefinitionPropertyComponent("property", e);
}
}
- protected void composeManufacturedItemDefinitionCharacteristicComponent(String name, ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent element) throws IOException {
+ protected void composeManufacturedItemDefinitionPropertyComponent(String name, ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent element) throws IOException {
if (element != null) {
composeElementAttributes(element);
xml.enter(FHIR_NS, name);
- composeManufacturedItemDefinitionCharacteristicComponentElements(element);
+ composeManufacturedItemDefinitionPropertyComponentElements(element);
composeElementClose(element);
xml.exit(FHIR_NS, name);
}
}
- protected void composeManufacturedItemDefinitionCharacteristicComponentElements(ManufacturedItemDefinition.ManufacturedItemDefinitionCharacteristicComponent element) throws IOException {
+ protected void composeManufacturedItemDefinitionPropertyComponentElements(ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent element) throws IOException {
composeBackboneElementElements(element);
- if (element.hasCode()) {
- composeCodeableConcept("code", element.getCode());
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
}
if (element.hasValue()) {
composeType("value", element.getValue());
@@ -41890,8 +43821,9 @@ public class XmlParser extends XmlParserBase {
protected void composeMedicationIngredientComponentElements(Medication.MedicationIngredientComponent element) throws IOException {
composeBackboneElementElements(element);
if (element.hasItem()) {
- composeType("item", element.getItem());
- } if (element.hasIsActiveElement()) {
+ composeCodeableReference("item", element.getItem());
+ }
+ if (element.hasIsActiveElement()) {
composeBoolean("isActive", element.getIsActiveElement());
}
if (element.hasStrength()) {
@@ -41961,8 +43893,9 @@ public class XmlParser extends XmlParserBase {
composeCodeableConcept("category", e);
}
if (element.hasMedication()) {
- composeType("medication", element.getMedication());
- } if (element.hasSubject()) {
+ composeCodeableReference("medication", element.getMedication());
+ }
+ if (element.hasSubject()) {
composeReference("subject", element.getSubject());
}
if (element.hasEncounter()) {
@@ -42083,14 +44016,16 @@ public class XmlParser extends XmlParserBase {
if (element.hasStatusElement())
composeEnumeration("status", element.getStatusElement(), new MedicationDispense.MedicationDispenseStatusCodesEnumFactory());
if (element.hasStatusReason()) {
- composeType("statusReason", element.getStatusReason());
- } if (element.hasCategory()) {
+ composeCodeableReference("statusReason", element.getStatusReason());
+ }
+ if (element.hasCategory()) {
for (CodeableConcept e : element.getCategory())
composeCodeableConcept("category", e);
}
if (element.hasMedication()) {
- composeType("medication", element.getMedication());
- } if (element.hasSubject()) {
+ composeCodeableReference("medication", element.getMedication());
+ }
+ if (element.hasSubject()) {
composeReference("subject", element.getSubject());
}
if (element.hasEncounter()) {
@@ -42360,8 +44295,9 @@ public class XmlParser extends XmlParserBase {
protected void composeMedicationKnowledgeIngredientComponentElements(MedicationKnowledge.MedicationKnowledgeIngredientComponent element) throws IOException {
composeBackboneElementElements(element);
if (element.hasItem()) {
- composeType("item", element.getItem());
- } if (element.hasIsActiveElement()) {
+ composeCodeableReference("item", element.getItem());
+ }
+ if (element.hasIsActiveElement()) {
composeBoolean("isActive", element.getIsActiveElement());
}
if (element.hasStrength()) {
@@ -42428,8 +44364,9 @@ public class XmlParser extends XmlParserBase {
composeMedicationKnowledgeAdministrationGuidelineDosageComponent("dosage", e);
}
if (element.hasIndication()) {
- composeType("indication", element.getIndication());
- } if (element.hasPatientCharacteristic()) {
+ composeCodeableReference("indication", element.getIndication());
+ }
+ if (element.hasPatientCharacteristic()) {
for (MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent e : element.getPatientCharacteristic())
composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent("patientCharacteristic", e);
}
@@ -42468,13 +44405,12 @@ public class XmlParser extends XmlParserBase {
protected void composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentElements(MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent element) throws IOException {
composeBackboneElementElements(element);
- if (element.hasCharacteristic()) {
- composeType("characteristic", element.getCharacteristic());
- } if (element.hasValue()) {
- for (StringType e : element.getValue())
- composeString("value", e);
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
}
- }
+ if (element.hasValue()) {
+ composeType("value", element.getValue());
+ } }
protected void composeMedicationKnowledgeMedicineClassificationComponent(String name, MedicationKnowledge.MedicationKnowledgeMedicineClassificationComponent element) throws IOException {
if (element != null) {
@@ -42672,8 +44608,9 @@ public class XmlParser extends XmlParserBase {
composeReference("informationSource", element.getInformationSource());
}
if (element.hasMedication()) {
- composeType("medication", element.getMedication());
- } if (element.hasSubject()) {
+ composeCodeableReference("medication", element.getMedication());
+ }
+ if (element.hasSubject()) {
composeReference("subject", element.getSubject());
}
if (element.hasEncounter()) {
@@ -42863,8 +44800,9 @@ public class XmlParser extends XmlParserBase {
composeCodeableConcept("category", e);
}
if (element.hasMedication()) {
- composeType("medication", element.getMedication());
- } if (element.hasSubject()) {
+ composeCodeableReference("medication", element.getMedication());
+ }
+ if (element.hasSubject()) {
composeReference("subject", element.getSubject());
}
if (element.hasEncounter()) {
@@ -42922,13 +44860,16 @@ public class XmlParser extends XmlParserBase {
composeCodeableConcept("type", element.getType());
}
if (element.hasDomain()) {
- composeCoding("domain", element.getDomain());
+ composeCodeableConcept("domain", element.getDomain());
}
if (element.hasVersionElement()) {
composeString("version", element.getVersionElement());
}
if (element.hasStatus()) {
- composeCoding("status", element.getStatus());
+ composeCodeableConcept("status", element.getStatus());
+ }
+ if (element.hasStatusDateElement()) {
+ composeDateTime("statusDate", element.getStatusDateElement());
}
if (element.hasDescriptionElement()) {
composeMarkdown("description", element.getDescriptionElement());
@@ -42956,6 +44897,10 @@ public class XmlParser extends XmlParserBase {
for (CodeableConcept e : element.getProductClassification())
composeCodeableConcept("productClassification", e);
}
+ if (element.hasCharacteristic()) {
+ for (CodeableConcept e : element.getCharacteristic())
+ composeCodeableConcept("characteristic", e);
+ }
if (element.hasMarketingStatus()) {
for (MarketingStatus e : element.getMarketingStatus())
composeMarketingStatus("marketingStatus", e);
@@ -43038,7 +44983,7 @@ public class XmlParser extends XmlParserBase {
composeString("productName", element.getProductNameElement());
}
if (element.hasType()) {
- composeCoding("type", element.getType());
+ composeCodeableConcept("type", element.getType());
}
if (element.hasNamePart()) {
for (MedicinalProductDefinition.MedicinalProductDefinitionNameNamePartComponent e : element.getNamePart())
@@ -43066,7 +45011,7 @@ public class XmlParser extends XmlParserBase {
composeString("part", element.getPartElement());
}
if (element.hasType()) {
- composeCoding("type", element.getType());
+ composeCodeableConcept("type", element.getType());
}
}
@@ -43108,7 +45053,7 @@ public class XmlParser extends XmlParserBase {
if (element.hasProduct()) {
composeType("product", element.getProduct());
} if (element.hasType()) {
- composeCoding("type", element.getType());
+ composeCodeableConcept("type", element.getType());
}
}
@@ -43125,8 +45070,9 @@ public class XmlParser extends XmlParserBase {
protected void composeMedicinalProductDefinitionManufacturingBusinessOperationComponentElements(MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent element) throws IOException {
composeBackboneElementElements(element);
if (element.hasType()) {
- composeType("type", element.getType());
- } if (element.hasEffectiveDate()) {
+ composeCodeableReference("type", element.getType());
+ }
+ if (element.hasEffectiveDate()) {
composePeriod("effectiveDate", element.getEffectiveDate());
}
if (element.hasManufacturer()) {
@@ -43846,6 +45792,14 @@ public class XmlParser extends XmlParserBase {
for (Identifier e : element.getIdentifier())
composeIdentifier("identifier", e);
}
+ if (element.hasInstantiatesCanonical()) {
+ for (CanonicalType e : element.getInstantiatesCanonical())
+ composeCanonical("instantiatesCanonical", e);
+ }
+ if (element.hasInstantiatesUri()) {
+ for (UriType e : element.getInstantiatesUri())
+ composeUri("instantiatesUri", e);
+ }
if (element.hasBasedOn()) {
for (Reference e : element.getBasedOn())
composeReference("basedOn", e);
@@ -43855,22 +45809,13 @@ public class XmlParser extends XmlParserBase {
composeReference("partOf", e);
}
if (element.hasStatusElement())
- composeEnumeration("status", element.getStatusElement(), new NutritionIntake.NutritionIntakeStatusCodesEnumFactory());
+ composeEnumeration("status", element.getStatusElement(), new Enumerations.EventStatusEnumFactory());
if (element.hasStatusReason()) {
for (CodeableConcept e : element.getStatusReason())
composeCodeableConcept("statusReason", e);
}
- if (element.hasCategory()) {
- for (CodeableConcept e : element.getCategory())
- composeCodeableConcept("category", e);
- }
- if (element.hasConsumedItem()) {
- for (NutritionIntake.NutritionIntakeConsumedItemComponent e : element.getConsumedItem())
- composeNutritionIntakeConsumedItemComponent("consumedItem", e);
- }
- if (element.hasIngredientLabel()) {
- for (NutritionIntake.NutritionIntakeIngredientLabelComponent e : element.getIngredientLabel())
- composeNutritionIntakeIngredientLabelComponent("ingredientLabel", e);
+ if (element.hasCode()) {
+ composeCodeableConcept("code", element.getCode());
}
if (element.hasSubject()) {
composeReference("subject", element.getSubject());
@@ -43878,21 +45823,35 @@ public class XmlParser extends XmlParserBase {
if (element.hasEncounter()) {
composeReference("encounter", element.getEncounter());
}
- if (element.hasEffective()) {
- composeType("effective", element.getEffective());
- } if (element.hasDateAssertedElement()) {
- composeDateTime("dateAsserted", element.getDateAssertedElement());
+ if (element.hasOccurrence()) {
+ composeType("occurrence", element.getOccurrence());
+ } if (element.hasRecordedElement()) {
+ composeDateTime("recorded", element.getRecordedElement());
}
- if (element.hasInformationSource()) {
- composeReference("informationSource", element.getInformationSource());
+ if (element.hasReported()) {
+ composeType("reported", element.getReported());
+ } if (element.hasConsumedItem()) {
+ for (NutritionIntake.NutritionIntakeConsumedItemComponent e : element.getConsumedItem())
+ composeNutritionIntakeConsumedItemComponent("consumedItem", e);
+ }
+ if (element.hasIngredientLabel()) {
+ for (NutritionIntake.NutritionIntakeIngredientLabelComponent e : element.getIngredientLabel())
+ composeNutritionIntakeIngredientLabelComponent("ingredientLabel", e);
+ }
+ if (element.hasPerformer()) {
+ for (NutritionIntake.NutritionIntakePerformerComponent e : element.getPerformer())
+ composeNutritionIntakePerformerComponent("performer", e);
+ }
+ if (element.hasLocation()) {
+ composeReference("location", element.getLocation());
}
if (element.hasDerivedFrom()) {
for (Reference e : element.getDerivedFrom())
composeReference("derivedFrom", e);
}
- if (element.hasReasonCode()) {
- for (CodeableReference e : element.getReasonCode())
- composeCodeableReference("reasonCode", e);
+ if (element.hasReason()) {
+ for (CodeableReference e : element.getReason())
+ composeCodeableReference("reason", e);
}
if (element.hasNote()) {
for (Annotation e : element.getNote())
@@ -43916,7 +45875,7 @@ public class XmlParser extends XmlParserBase {
composeCodeableConcept("type", element.getType());
}
if (element.hasNutritionProduct()) {
- composeCodeableConcept("nutritionProduct", element.getNutritionProduct());
+ composeCodeableReference("nutritionProduct", element.getNutritionProduct());
}
if (element.hasSchedule()) {
composeTiming("schedule", element.getSchedule());
@@ -43948,13 +45907,33 @@ public class XmlParser extends XmlParserBase {
protected void composeNutritionIntakeIngredientLabelComponentElements(NutritionIntake.NutritionIntakeIngredientLabelComponent element) throws IOException {
composeBackboneElementElements(element);
if (element.hasNutrient()) {
- composeCodeableConcept("nutrient", element.getNutrient());
+ composeCodeableReference("nutrient", element.getNutrient());
}
if (element.hasAmount()) {
composeQuantity("amount", element.getAmount());
}
}
+ protected void composeNutritionIntakePerformerComponent(String name, NutritionIntake.NutritionIntakePerformerComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeNutritionIntakePerformerComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeNutritionIntakePerformerComponentElements(NutritionIntake.NutritionIntakePerformerComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasFunction()) {
+ composeCodeableConcept("function", element.getFunction());
+ }
+ if (element.hasActor()) {
+ composeReference("actor", element.getActor());
+ }
+ }
+
protected void composeNutritionOrder(String name, NutritionOrder element) throws IOException {
if (element != null) {
composeResourceAttributes(element);
@@ -44198,6 +46177,147 @@ public class XmlParser extends XmlParserBase {
composeType("rate", element.getRate());
} }
+ protected void composeNutritionProduct(String name, NutritionProduct element) throws IOException {
+ if (element != null) {
+ composeResourceAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeNutritionProductElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeNutritionProductElements(NutritionProduct element) throws IOException {
+ composeDomainResourceElements(element);
+ if (element.hasStatusElement())
+ composeEnumeration("status", element.getStatusElement(), new NutritionProduct.NutritionProductStatusEnumFactory());
+ if (element.hasCategory()) {
+ for (CodeableConcept e : element.getCategory())
+ composeCodeableConcept("category", e);
+ }
+ if (element.hasCode()) {
+ composeCodeableConcept("code", element.getCode());
+ }
+ if (element.hasManufacturer()) {
+ for (Reference e : element.getManufacturer())
+ composeReference("manufacturer", e);
+ }
+ if (element.hasNutrient()) {
+ for (NutritionProduct.NutritionProductNutrientComponent e : element.getNutrient())
+ composeNutritionProductNutrientComponent("nutrient", e);
+ }
+ if (element.hasIngredient()) {
+ for (NutritionProduct.NutritionProductIngredientComponent e : element.getIngredient())
+ composeNutritionProductIngredientComponent("ingredient", e);
+ }
+ if (element.hasKnownAllergen()) {
+ for (CodeableReference e : element.getKnownAllergen())
+ composeCodeableReference("knownAllergen", e);
+ }
+ if (element.hasProductCharacteristic()) {
+ for (NutritionProduct.NutritionProductProductCharacteristicComponent e : element.getProductCharacteristic())
+ composeNutritionProductProductCharacteristicComponent("productCharacteristic", e);
+ }
+ if (element.hasInstance()) {
+ composeNutritionProductInstanceComponent("instance", element.getInstance());
+ }
+ if (element.hasNote()) {
+ for (Annotation e : element.getNote())
+ composeAnnotation("note", e);
+ }
+ }
+
+ protected void composeNutritionProductNutrientComponent(String name, NutritionProduct.NutritionProductNutrientComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeNutritionProductNutrientComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeNutritionProductNutrientComponentElements(NutritionProduct.NutritionProductNutrientComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasItem()) {
+ composeCodeableReference("item", element.getItem());
+ }
+ if (element.hasAmount()) {
+ for (Ratio e : element.getAmount())
+ composeRatio("amount", e);
+ }
+ }
+
+ protected void composeNutritionProductIngredientComponent(String name, NutritionProduct.NutritionProductIngredientComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeNutritionProductIngredientComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeNutritionProductIngredientComponentElements(NutritionProduct.NutritionProductIngredientComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasItem()) {
+ composeCodeableReference("item", element.getItem());
+ }
+ if (element.hasAmount()) {
+ for (Ratio e : element.getAmount())
+ composeRatio("amount", e);
+ }
+ }
+
+ protected void composeNutritionProductProductCharacteristicComponent(String name, NutritionProduct.NutritionProductProductCharacteristicComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeNutritionProductProductCharacteristicComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeNutritionProductProductCharacteristicComponentElements(NutritionProduct.NutritionProductProductCharacteristicComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
+ }
+ if (element.hasValue()) {
+ composeType("value", element.getValue());
+ } }
+
+ protected void composeNutritionProductInstanceComponent(String name, NutritionProduct.NutritionProductInstanceComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeNutritionProductInstanceComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeNutritionProductInstanceComponentElements(NutritionProduct.NutritionProductInstanceComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasQuantity()) {
+ composeQuantity("quantity", element.getQuantity());
+ }
+ if (element.hasIdentifier()) {
+ for (Identifier e : element.getIdentifier())
+ composeIdentifier("identifier", e);
+ }
+ if (element.hasLotNumberElement()) {
+ composeString("lotNumber", element.getLotNumberElement());
+ }
+ if (element.hasExpiryElement()) {
+ composeDateTime("expiry", element.getExpiryElement());
+ }
+ if (element.hasUseByElement()) {
+ composeDateTime("useBy", element.getUseByElement());
+ }
+ }
+
protected void composeObservation(String name, Observation element) throws IOException {
if (element != null) {
composeResourceAttributes(element);
@@ -44986,12 +47106,21 @@ public class XmlParser extends XmlParserBase {
for (Identifier e : element.getIdentifier())
composeIdentifier("identifier", e);
}
+ if (element.hasNameElement()) {
+ composeString("name", element.getNameElement());
+ }
if (element.hasSubject()) {
for (Reference e : element.getSubject())
composeReference("subject", e);
}
+ if (element.hasStatus()) {
+ composeCodeableConcept("status", element.getStatus());
+ }
+ if (element.hasStatusDateElement()) {
+ composeDateTime("statusDate", element.getStatusDateElement());
+ }
if (element.hasDescriptionElement()) {
- composeString("description", element.getDescriptionElement());
+ composeMarkdown("description", element.getDescriptionElement());
}
if (element.hasLegalStatusOfSupply()) {
composeCodeableConcept("legalStatusOfSupply", element.getLegalStatusOfSupply());
@@ -45000,6 +47129,10 @@ public class XmlParser extends XmlParserBase {
for (MarketingStatus e : element.getMarketingStatus())
composeMarketingStatus("marketingStatus", e);
}
+ if (element.hasCharacteristic()) {
+ for (CodeableConcept e : element.getCharacteristic())
+ composeCodeableConcept("characteristic", e);
+ }
if (element.hasCopackagedIndicatorElement()) {
composeBoolean("copackagedIndicator", element.getCopackagedIndicatorElement());
}
@@ -45059,8 +47192,8 @@ public class XmlParser extends XmlParserBase {
if (element.hasType()) {
composeCodeableConcept("type", element.getType());
}
- if (element.hasQuantity()) {
- composeQuantity("quantity", element.getQuantity());
+ if (element.hasQuantityElement()) {
+ composeInteger("quantity", element.getQuantityElement());
}
if (element.hasMaterial()) {
for (CodeableConcept e : element.getMaterial())
@@ -45078,9 +47211,9 @@ public class XmlParser extends XmlParserBase {
for (Reference e : element.getManufacturer())
composeReference("manufacturer", e);
}
- if (element.hasCharacteristic()) {
- for (PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent e : element.getCharacteristic())
- composePackagedProductDefinitionPackageCharacteristicComponent("characteristic", e);
+ if (element.hasProperty()) {
+ for (PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent e : element.getProperty())
+ composePackagedProductDefinitionPackagePropertyComponent("property", e);
}
if (element.hasContainedItem()) {
for (PackagedProductDefinition.PackagedProductDefinitionPackageContainedItemComponent e : element.getContainedItem())
@@ -45092,20 +47225,20 @@ public class XmlParser extends XmlParserBase {
}
}
- protected void composePackagedProductDefinitionPackageCharacteristicComponent(String name, PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent element) throws IOException {
+ protected void composePackagedProductDefinitionPackagePropertyComponent(String name, PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent element) throws IOException {
if (element != null) {
composeElementAttributes(element);
xml.enter(FHIR_NS, name);
- composePackagedProductDefinitionPackageCharacteristicComponentElements(element);
+ composePackagedProductDefinitionPackagePropertyComponentElements(element);
composeElementClose(element);
xml.exit(FHIR_NS, name);
}
}
- protected void composePackagedProductDefinitionPackageCharacteristicComponentElements(PackagedProductDefinition.PackagedProductDefinitionPackageCharacteristicComponent element) throws IOException {
+ protected void composePackagedProductDefinitionPackagePropertyComponentElements(PackagedProductDefinition.PackagedProductDefinitionPackagePropertyComponent element) throws IOException {
composeBackboneElementElements(element);
- if (element.hasCode()) {
- composeCodeableConcept("code", element.getCode());
+ if (element.hasType()) {
+ composeCodeableConcept("type", element.getType());
}
if (element.hasValue()) {
composeType("value", element.getValue());
@@ -45493,6 +47626,102 @@ public class XmlParser extends XmlParserBase {
}
}
+ protected void composePermission(String name, Permission element) throws IOException {
+ if (element != null) {
+ composeResourceAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composePermissionElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composePermissionElements(Permission element) throws IOException {
+ composeDomainResourceElements(element);
+ if (element.hasStatusElement())
+ composeEnumeration("status", element.getStatusElement(), new Permission.PermissionStatusEnumFactory());
+ if (element.hasIntent()) {
+ composeCodeableConcept("intent", element.getIntent());
+ }
+ if (element.hasAsserter()) {
+ composeReference("asserter", element.getAsserter());
+ }
+ if (element.hasAssertionDate()) {
+ for (DateTimeType e : element.getAssertionDate())
+ composeDateTime("assertionDate", e);
+ }
+ if (element.hasValidity()) {
+ composePeriod("validity", element.getValidity());
+ }
+ if (element.hasPurpose()) {
+ for (CodeableConcept e : element.getPurpose())
+ composeCodeableConcept("purpose", e);
+ }
+ if (element.hasDataScope()) {
+ for (Expression e : element.getDataScope())
+ composeExpression("dataScope", e);
+ }
+ if (element.hasProcessingActivity()) {
+ for (Permission.PermissionProcessingActivityComponent e : element.getProcessingActivity())
+ composePermissionProcessingActivityComponent("processingActivity", e);
+ }
+ if (element.hasJustification()) {
+ composePermissionJustificationComponent("justification", element.getJustification());
+ }
+ if (element.hasUsageLimitations()) {
+ for (CodeableConcept e : element.getUsageLimitations())
+ composeCodeableConcept("usageLimitations", e);
+ }
+ }
+
+ protected void composePermissionProcessingActivityComponent(String name, Permission.PermissionProcessingActivityComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composePermissionProcessingActivityComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composePermissionProcessingActivityComponentElements(Permission.PermissionProcessingActivityComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasPartyReference()) {
+ for (Reference e : element.getPartyReference())
+ composeReference("partyReference", e);
+ }
+ if (element.hasPartyCodeableConcept()) {
+ for (CodeableConcept e : element.getPartyCodeableConcept())
+ composeCodeableConcept("partyCodeableConcept", e);
+ }
+ if (element.hasPurpose()) {
+ for (CodeableConcept e : element.getPurpose())
+ composeCodeableConcept("purpose", e);
+ }
+ }
+
+ protected void composePermissionJustificationComponent(String name, Permission.PermissionJustificationComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composePermissionJustificationComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composePermissionJustificationComponentElements(Permission.PermissionJustificationComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasEvidence()) {
+ for (Reference e : element.getEvidence())
+ composeReference("evidence", e);
+ }
+ if (element.hasGrounds()) {
+ for (CodeableConcept e : element.getGrounds())
+ composeCodeableConcept("grounds", e);
+ }
+ }
+
protected void composePerson(String name, Person element) throws IOException {
if (element != null) {
composeResourceAttributes(element);
@@ -46699,6 +48928,11 @@ public class XmlParser extends XmlParserBase {
if (element.hasValidityPeriod()) {
composePeriod("validityPeriod", element.getValidityPeriod());
}
+ if (element.hasIndication()) {
+ composeType("indication", element.getIndication());
+ } if (element.hasIntendedUse()) {
+ composeCodeableConcept("intendedUse", element.getIntendedUse());
+ }
if (element.hasBasis()) {
for (CodeableConcept e : element.getBasis())
composeCodeableConcept("basis", e);
@@ -48544,7 +50778,7 @@ public class XmlParser extends XmlParserBase {
composeString("name", element.getNameElement());
}
if (element.hasStatusElement())
- composeEnumeration("status", element.getStatusElement(), new Subscription.SubscriptionStatusEnumFactory());
+ composeEnumeration("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory());
if (element.hasTopic()) {
composeReference("topic", element.getTopic());
}
@@ -48566,12 +50800,27 @@ public class XmlParser extends XmlParserBase {
for (CodeableConcept e : element.getError())
composeCodeableConcept("error", e);
}
- if (element.hasEventCountElement()) {
- composeUnsignedInt("eventCount", element.getEventCountElement());
+ if (element.hasChannelType()) {
+ composeCoding("channelType", element.getChannelType());
}
- if (element.hasChannel()) {
- composeSubscriptionChannelComponent("channel", element.getChannel());
+ if (element.hasEndpointElement()) {
+ composeUrl("endpoint", element.getEndpointElement());
}
+ if (element.hasHeader()) {
+ for (StringType e : element.getHeader())
+ composeString("header", e);
+ }
+ if (element.hasHeartbeatPeriodElement()) {
+ composeUnsignedInt("heartbeatPeriod", element.getHeartbeatPeriodElement());
+ }
+ if (element.hasTimeoutElement()) {
+ composeUnsignedInt("timeout", element.getTimeoutElement());
+ }
+ if (element.hasContentTypeElement()) {
+ composeCode("contentType", element.getContentTypeElement());
+ }
+ if (element.hasContentElement())
+ composeEnumeration("content", element.getContentElement(), new Subscription.SubscriptionPayloadContentEnumFactory());
}
protected void composeSubscriptionFilterByComponent(String name, Subscription.SubscriptionFilterByComponent element) throws IOException {
@@ -48586,63 +50835,204 @@ public class XmlParser extends XmlParserBase {
protected void composeSubscriptionFilterByComponentElements(Subscription.SubscriptionFilterByComponent element) throws IOException {
composeBackboneElementElements(element);
- if (element.hasNameElement()) {
- composeString("name", element.getNameElement());
+ if (element.hasSearchParamNameElement()) {
+ composeString("searchParamName", element.getSearchParamNameElement());
}
- if (element.hasMatchTypeElement())
- composeEnumeration("matchType", element.getMatchTypeElement(), new Subscription.SubscriptionFilterByMatchTypeEnumFactory());
+ if (element.hasSearchModifierElement())
+ composeEnumeration("searchModifier", element.getSearchModifierElement(), new Enumerations.SubscriptionSearchModifierEnumFactory());
if (element.hasValueElement()) {
composeString("value", element.getValueElement());
}
}
- protected void composeSubscriptionChannelComponent(String name, Subscription.SubscriptionChannelComponent element) throws IOException {
+ protected void composeSubscriptionStatus(String name, SubscriptionStatus element) throws IOException {
if (element != null) {
- composeElementAttributes(element);
+ composeResourceAttributes(element);
xml.enter(FHIR_NS, name);
- composeSubscriptionChannelComponentElements(element);
+ composeSubscriptionStatusElements(element);
composeElementClose(element);
xml.exit(FHIR_NS, name);
}
}
- protected void composeSubscriptionChannelComponentElements(Subscription.SubscriptionChannelComponent element) throws IOException {
- composeBackboneElementElements(element);
- if (element.hasType()) {
- composeCodeableConcept("type", element.getType());
+ protected void composeSubscriptionStatusElements(SubscriptionStatus element) throws IOException {
+ composeDomainResourceElements(element);
+ if (element.hasNotificationTypeElement())
+ composeEnumeration("notificationType", element.getNotificationTypeElement(), new SubscriptionStatus.SubscriptionNotificationTypeEnumFactory());
+ if (element.hasEventsSinceSubscriptionStartElement()) {
+ composeInteger64("eventsSinceSubscriptionStart", element.getEventsSinceSubscriptionStartElement());
}
- if (element.hasEndpointElement()) {
- composeUrl("endpoint", element.getEndpointElement());
+ if (element.hasEventsInNotificationElement()) {
+ composeInteger("eventsInNotification", element.getEventsInNotificationElement());
}
- if (element.hasHeader()) {
- for (StringType e : element.getHeader())
- composeString("header", e);
+ if (element.hasSubscription()) {
+ composeReference("subscription", element.getSubscription());
}
- if (element.hasHeartbeatPeriodElement()) {
- composeUnsignedInt("heartbeatPeriod", element.getHeartbeatPeriodElement());
- }
- if (element.hasPayload()) {
- composeSubscriptionChannelPayloadComponent("payload", element.getPayload());
+ if (element.hasStatusElement())
+ composeEnumeration("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory());
+ if (element.hasTopic()) {
+ composeReference("topic", element.getTopic());
}
}
- protected void composeSubscriptionChannelPayloadComponent(String name, Subscription.SubscriptionChannelPayloadComponent element) throws IOException {
+ protected void composeSubscriptionTopic(String name, SubscriptionTopic element) throws IOException {
if (element != null) {
- composeElementAttributes(element);
+ composeResourceAttributes(element);
xml.enter(FHIR_NS, name);
- composeSubscriptionChannelPayloadComponentElements(element);
+ composeSubscriptionTopicElements(element);
composeElementClose(element);
xml.exit(FHIR_NS, name);
}
}
- protected void composeSubscriptionChannelPayloadComponentElements(Subscription.SubscriptionChannelPayloadComponent element) throws IOException {
- composeBackboneElementElements(element);
- if (element.hasContentTypeElement()) {
- composeCode("contentType", element.getContentTypeElement());
+ protected void composeSubscriptionTopicElements(SubscriptionTopic 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.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.hasDateElement()) {
+ composeDateTime("date", element.getDateElement());
+ }
+ if (element.hasPublisher()) {
+ composeReference("publisher", element.getPublisher());
+ }
+ 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.hasResourceTrigger()) {
+ composeSubscriptionTopicResourceTriggerComponent("resourceTrigger", element.getResourceTrigger());
+ }
+ if (element.hasCanFilterBy()) {
+ for (SubscriptionTopic.SubscriptionTopicCanFilterByComponent e : element.getCanFilterBy())
+ composeSubscriptionTopicCanFilterByComponent("canFilterBy", e);
+ }
+ }
+
+ protected void composeSubscriptionTopicResourceTriggerComponent(String name, SubscriptionTopic.SubscriptionTopicResourceTriggerComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeSubscriptionTopicResourceTriggerComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeSubscriptionTopicResourceTriggerComponentElements(SubscriptionTopic.SubscriptionTopicResourceTriggerComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasDescriptionElement()) {
+ composeString("description", element.getDescriptionElement());
+ }
+ if (element.hasResourceType()) {
+ for (CodeType e : element.getResourceType())
+ composeCode("resourceType", e);
+ }
+ if (element.hasMethodCriteria())
+ for (Enumeration e : element.getMethodCriteria())
+ composeEnumeration("methodCriteria", e, new SubscriptionTopic.InteractionTriggerEnumFactory());
+ if (element.hasQueryCriteria()) {
+ composeSubscriptionTopicResourceTriggerQueryCriteriaComponent("queryCriteria", element.getQueryCriteria());
+ }
+ if (element.hasFhirPathCriteria()) {
+ for (StringType e : element.getFhirPathCriteria())
+ composeString("fhirPathCriteria", e);
+ }
+ }
+
+ protected void composeSubscriptionTopicResourceTriggerQueryCriteriaComponent(String name, SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeSubscriptionTopicResourceTriggerQueryCriteriaComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeSubscriptionTopicResourceTriggerQueryCriteriaComponentElements(SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasPreviousElement()) {
+ composeString("previous", element.getPreviousElement());
+ }
+ if (element.hasCurrentElement()) {
+ composeString("current", element.getCurrentElement());
+ }
+ if (element.hasRequireBothElement()) {
+ composeBoolean("requireBoth", element.getRequireBothElement());
+ }
+ }
+
+ protected void composeSubscriptionTopicCanFilterByComponent(String name, SubscriptionTopic.SubscriptionTopicCanFilterByComponent element) throws IOException {
+ if (element != null) {
+ composeElementAttributes(element);
+ xml.enter(FHIR_NS, name);
+ composeSubscriptionTopicCanFilterByComponentElements(element);
+ composeElementClose(element);
+ xml.exit(FHIR_NS, name);
+ }
+ }
+
+ protected void composeSubscriptionTopicCanFilterByComponentElements(SubscriptionTopic.SubscriptionTopicCanFilterByComponent element) throws IOException {
+ composeBackboneElementElements(element);
+ if (element.hasSearchParamNameElement()) {
+ composeString("searchParamName", element.getSearchParamNameElement());
+ }
+ if (element.hasSearchModifier())
+ for (Enumeration e : element.getSearchModifier())
+ composeEnumeration("searchModifier", e, new Enumerations.SubscriptionSearchModifierEnumFactory());
+ if (element.hasDocumentationElement()) {
+ composeMarkdown("documentation", element.getDocumentationElement());
}
- if (element.hasContentElement())
- composeEnumeration("content", element.getContentElement(), new Subscription.SubscriptionPayloadContentEnumFactory());
}
protected void composeSubstance(String name, Substance element) throws IOException {
@@ -48917,9 +51307,9 @@ public class XmlParser extends XmlParserBase {
if (element.hasMolecularWeight()) {
composeSubstanceDefinitionStructureIsotopeMolecularWeightComponent("molecularWeight", element.getMolecularWeight());
}
- if (element.hasSourceCoding()) {
- for (Coding e : element.getSourceCoding())
- composeCoding("sourceCoding", e);
+ if (element.hasTechnique()) {
+ for (CodeableConcept e : element.getTechnique())
+ composeCodeableConcept("technique", e);
}
if (element.hasSourceDocument()) {
for (Reference e : element.getSourceDocument())
@@ -49001,6 +51391,9 @@ public class XmlParser extends XmlParserBase {
if (element.hasRepresentationElement()) {
composeString("representation", element.getRepresentationElement());
}
+ if (element.hasFormat()) {
+ composeCodeableConcept("format", element.getFormat());
+ }
if (element.hasAttachment()) {
composeAttachment("attachment", element.getAttachment());
}
@@ -49279,6 +51672,9 @@ public class XmlParser extends XmlParserBase {
protected void composeSubstancePolymerElements(SubstancePolymer element) throws IOException {
composeDomainResourceElements(element);
+ if (element.hasIdentifier()) {
+ composeIdentifier("identifier", element.getIdentifier());
+ }
if (element.hasClass_()) {
composeCodeableConcept("class", element.getClass_());
}
@@ -49289,9 +51685,8 @@ public class XmlParser extends XmlParserBase {
for (CodeableConcept e : element.getCopolymerConnectivity())
composeCodeableConcept("copolymerConnectivity", e);
}
- if (element.hasModification()) {
- for (StringType e : element.getModification())
- composeString("modification", e);
+ if (element.hasModificationElement()) {
+ composeString("modification", element.getModificationElement());
}
if (element.hasMonomerSet()) {
for (SubstancePolymer.SubstancePolymerMonomerSetComponent e : element.getMonomerSet())
@@ -49336,11 +51731,11 @@ public class XmlParser extends XmlParserBase {
protected void composeSubstancePolymerMonomerSetStartingMaterialComponentElements(SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent element) throws IOException {
composeBackboneElementElements(element);
- if (element.hasMaterial()) {
- composeCodeableConcept("material", element.getMaterial());
+ if (element.hasCode()) {
+ composeCodeableConcept("code", element.getCode());
}
- if (element.hasType()) {
- composeCodeableConcept("type", element.getType());
+ if (element.hasCategory()) {
+ composeCodeableConcept("category", element.getCategory());
}
if (element.hasIsDefiningElement()) {
composeBoolean("isDefining", element.getIsDefiningElement());
@@ -49389,11 +51784,11 @@ public class XmlParser extends XmlParserBase {
protected void composeSubstancePolymerRepeatRepeatUnitComponentElements(SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent element) throws IOException {
composeBackboneElementElements(element);
- if (element.hasOrientationOfPolymerisation()) {
- composeCodeableConcept("orientationOfPolymerisation", element.getOrientationOfPolymerisation());
+ if (element.hasUnitElement()) {
+ composeString("unit", element.getUnitElement());
}
- if (element.hasRepeatUnitElement()) {
- composeString("repeatUnit", element.getRepeatUnitElement());
+ if (element.hasOrientation()) {
+ composeCodeableConcept("orientation", element.getOrientation());
}
if (element.hasAmount()) {
composeSubstanceAmount("amount", element.getAmount());
@@ -49446,6 +51841,9 @@ public class XmlParser extends XmlParserBase {
if (element.hasRepresentationElement()) {
composeString("representation", element.getRepresentationElement());
}
+ if (element.hasFormat()) {
+ composeCodeableConcept("format", element.getFormat());
+ }
if (element.hasAttachment()) {
composeAttachment("attachment", element.getAttachment());
}
@@ -49969,8 +52367,9 @@ public class XmlParser extends XmlParserBase {
if (element.hasPriorityElement())
composeEnumeration("priority", element.getPriorityElement(), new Enumerations.RequestPriorityEnumFactory());
if (element.hasItem()) {
- composeType("item", element.getItem());
- } if (element.hasQuantity()) {
+ composeCodeableReference("item", element.getItem());
+ }
+ if (element.hasQuantity()) {
composeQuantity("quantity", element.getQuantity());
}
if (element.hasParameter()) {
@@ -51290,165 +53689,6 @@ public class XmlParser extends XmlParserBase {
}
}
- protected void composeTopic(String name, Topic element) throws IOException {
- if (element != null) {
- composeResourceAttributes(element);
- xml.enter(FHIR_NS, name);
- composeTopicElements(element);
- composeElementClose(element);
- xml.exit(FHIR_NS, name);
- }
- }
-
- protected void composeTopicElements(Topic 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.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.hasDateElement()) {
- composeDateTime("date", element.getDateElement());
- }
- if (element.hasPublisher()) {
- composeReference("publisher", element.getPublisher());
- }
- 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.hasResourceTrigger()) {
- composeTopicResourceTriggerComponent("resourceTrigger", element.getResourceTrigger());
- }
- if (element.hasCanFilterBy()) {
- for (Topic.TopicCanFilterByComponent e : element.getCanFilterBy())
- composeTopicCanFilterByComponent("canFilterBy", e);
- }
- }
-
- protected void composeTopicResourceTriggerComponent(String name, Topic.TopicResourceTriggerComponent element) throws IOException {
- if (element != null) {
- composeElementAttributes(element);
- xml.enter(FHIR_NS, name);
- composeTopicResourceTriggerComponentElements(element);
- composeElementClose(element);
- xml.exit(FHIR_NS, name);
- }
- }
-
- protected void composeTopicResourceTriggerComponentElements(Topic.TopicResourceTriggerComponent element) throws IOException {
- composeBackboneElementElements(element);
- if (element.hasDescriptionElement()) {
- composeString("description", element.getDescriptionElement());
- }
- if (element.hasResourceType()) {
- for (CodeType e : element.getResourceType())
- composeCode("resourceType", e);
- }
- if (element.hasMethodCriteria())
- for (Enumeration e : element.getMethodCriteria())
- composeEnumeration("methodCriteria", e, new Topic.InteractionTriggerEnumFactory());
- if (element.hasQueryCriteria()) {
- composeTopicResourceTriggerQueryCriteriaComponent("queryCriteria", element.getQueryCriteria());
- }
- if (element.hasFhirPathCriteriaElement()) {
- composeString("fhirPathCriteria", element.getFhirPathCriteriaElement());
- }
- }
-
- protected void composeTopicResourceTriggerQueryCriteriaComponent(String name, Topic.TopicResourceTriggerQueryCriteriaComponent element) throws IOException {
- if (element != null) {
- composeElementAttributes(element);
- xml.enter(FHIR_NS, name);
- composeTopicResourceTriggerQueryCriteriaComponentElements(element);
- composeElementClose(element);
- xml.exit(FHIR_NS, name);
- }
- }
-
- protected void composeTopicResourceTriggerQueryCriteriaComponentElements(Topic.TopicResourceTriggerQueryCriteriaComponent element) throws IOException {
- composeBackboneElementElements(element);
- if (element.hasPreviousElement()) {
- composeString("previous", element.getPreviousElement());
- }
- if (element.hasCurrentElement()) {
- composeString("current", element.getCurrentElement());
- }
- if (element.hasRequireBothElement()) {
- composeBoolean("requireBoth", element.getRequireBothElement());
- }
- }
-
- protected void composeTopicCanFilterByComponent(String name, Topic.TopicCanFilterByComponent element) throws IOException {
- if (element != null) {
- composeElementAttributes(element);
- xml.enter(FHIR_NS, name);
- composeTopicCanFilterByComponentElements(element);
- composeElementClose(element);
- xml.exit(FHIR_NS, name);
- }
- }
-
- protected void composeTopicCanFilterByComponentElements(Topic.TopicCanFilterByComponent element) throws IOException {
- composeBackboneElementElements(element);
- if (element.hasNameElement()) {
- composeString("name", element.getNameElement());
- }
- if (element.hasMatchType())
- for (Enumeration e : element.getMatchType())
- composeEnumeration("matchType", e, new Topic.TopicFilterByMatchTypeEnumFactory());
- if (element.hasDocumentationElement()) {
- composeMarkdown("documentation", element.getDocumentationElement());
- }
- }
-
protected void composeValueSet(String name, ValueSet element) throws IOException {
if (element != null) {
composeResourceAttributes(element);
@@ -52113,6 +54353,8 @@ public class XmlParser extends XmlParserBase {
composeChargeItem("ChargeItem", (ChargeItem)resource);
} else if (resource instanceof ChargeItemDefinition) {
composeChargeItemDefinition("ChargeItemDefinition", (ChargeItemDefinition)resource);
+ } else if (resource instanceof Citation) {
+ composeCitation("Citation", (Citation)resource);
} else if (resource instanceof Claim) {
composeClaim("Claim", (Claim)resource);
} else if (resource instanceof ClaimResponse) {
@@ -52179,6 +54421,8 @@ public class XmlParser extends XmlParserBase {
composeEventDefinition("EventDefinition", (EventDefinition)resource);
} else if (resource instanceof Evidence) {
composeEvidence("Evidence", (Evidence)resource);
+ } else if (resource instanceof EvidenceFocus) {
+ composeEvidenceFocus("EvidenceFocus", (EvidenceFocus)resource);
} else if (resource instanceof EvidenceVariable) {
composeEvidenceVariable("EvidenceVariable", (EvidenceVariable)resource);
} else if (resource instanceof ExampleScenario) {
@@ -52255,6 +54499,8 @@ public class XmlParser extends XmlParserBase {
composeNutritionIntake("NutritionIntake", (NutritionIntake)resource);
} else if (resource instanceof NutritionOrder) {
composeNutritionOrder("NutritionOrder", (NutritionOrder)resource);
+ } else if (resource instanceof NutritionProduct) {
+ composeNutritionProduct("NutritionProduct", (NutritionProduct)resource);
} else if (resource instanceof Observation) {
composeObservation("Observation", (Observation)resource);
} else if (resource instanceof ObservationDefinition) {
@@ -52277,6 +54523,8 @@ public class XmlParser extends XmlParserBase {
composePaymentNotice("PaymentNotice", (PaymentNotice)resource);
} else if (resource instanceof PaymentReconciliation) {
composePaymentReconciliation("PaymentReconciliation", (PaymentReconciliation)resource);
+ } else if (resource instanceof Permission) {
+ composePermission("Permission", (Permission)resource);
} else if (resource instanceof Person) {
composePerson("Person", (Person)resource);
} else if (resource instanceof PlanDefinition) {
@@ -52323,6 +54571,10 @@ public class XmlParser extends XmlParserBase {
composeStructureMap("StructureMap", (StructureMap)resource);
} else if (resource instanceof Subscription) {
composeSubscription("Subscription", (Subscription)resource);
+ } else if (resource instanceof SubscriptionStatus) {
+ composeSubscriptionStatus("SubscriptionStatus", (SubscriptionStatus)resource);
+ } else if (resource instanceof SubscriptionTopic) {
+ composeSubscriptionTopic("SubscriptionTopic", (SubscriptionTopic)resource);
} else if (resource instanceof Substance) {
composeSubstance("Substance", (Substance)resource);
} else if (resource instanceof SubstanceDefinition) {
@@ -52349,8 +54601,6 @@ public class XmlParser extends XmlParserBase {
composeTestReport("TestReport", (TestReport)resource);
} else if (resource instanceof TestScript) {
composeTestScript("TestScript", (TestScript)resource);
- } else if (resource instanceof Topic) {
- composeTopic("Topic", (Topic)resource);
} else if (resource instanceof ValueSet) {
composeValueSet("ValueSet", (ValueSet)resource);
} else if (resource instanceof VerificationResult) {
@@ -52408,6 +54658,8 @@ public class XmlParser extends XmlParserBase {
composeChargeItem(name, (ChargeItem)resource);
} else if (resource instanceof ChargeItemDefinition) {
composeChargeItemDefinition(name, (ChargeItemDefinition)resource);
+ } else if (resource instanceof Citation) {
+ composeCitation(name, (Citation)resource);
} else if (resource instanceof Claim) {
composeClaim(name, (Claim)resource);
} else if (resource instanceof ClaimResponse) {
@@ -52474,6 +54726,8 @@ public class XmlParser extends XmlParserBase {
composeEventDefinition(name, (EventDefinition)resource);
} else if (resource instanceof Evidence) {
composeEvidence(name, (Evidence)resource);
+ } else if (resource instanceof EvidenceFocus) {
+ composeEvidenceFocus(name, (EvidenceFocus)resource);
} else if (resource instanceof EvidenceVariable) {
composeEvidenceVariable(name, (EvidenceVariable)resource);
} else if (resource instanceof ExampleScenario) {
@@ -52550,6 +54804,8 @@ public class XmlParser extends XmlParserBase {
composeNutritionIntake(name, (NutritionIntake)resource);
} else if (resource instanceof NutritionOrder) {
composeNutritionOrder(name, (NutritionOrder)resource);
+ } else if (resource instanceof NutritionProduct) {
+ composeNutritionProduct(name, (NutritionProduct)resource);
} else if (resource instanceof Observation) {
composeObservation(name, (Observation)resource);
} else if (resource instanceof ObservationDefinition) {
@@ -52572,6 +54828,8 @@ public class XmlParser extends XmlParserBase {
composePaymentNotice(name, (PaymentNotice)resource);
} else if (resource instanceof PaymentReconciliation) {
composePaymentReconciliation(name, (PaymentReconciliation)resource);
+ } else if (resource instanceof Permission) {
+ composePermission(name, (Permission)resource);
} else if (resource instanceof Person) {
composePerson(name, (Person)resource);
} else if (resource instanceof PlanDefinition) {
@@ -52618,6 +54876,10 @@ public class XmlParser extends XmlParserBase {
composeStructureMap(name, (StructureMap)resource);
} else if (resource instanceof Subscription) {
composeSubscription(name, (Subscription)resource);
+ } else if (resource instanceof SubscriptionStatus) {
+ composeSubscriptionStatus(name, (SubscriptionStatus)resource);
+ } else if (resource instanceof SubscriptionTopic) {
+ composeSubscriptionTopic(name, (SubscriptionTopic)resource);
} else if (resource instanceof Substance) {
composeSubstance(name, (Substance)resource);
} else if (resource instanceof SubstanceDefinition) {
@@ -52644,8 +54906,6 @@ public class XmlParser extends XmlParserBase {
composeTestReport(name, (TestReport)resource);
} else if (resource instanceof TestScript) {
composeTestScript(name, (TestScript)resource);
- } else if (resource instanceof Topic) {
- composeTopic(name, (Topic)resource);
} else if (resource instanceof ValueSet) {
composeValueSet(name, (ValueSet)resource);
} else if (resource instanceof VerificationResult) {
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 0bc33ab29..d0a8e0e6d 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 b8670908d..1d8213771 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
@@ -4392,7 +4392,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, 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, 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, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.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, 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, Topic.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, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceFocus.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_COMPOSED_OF = "composed-of";
/**
* Fluent Client search parameter constant for composed-of
@@ -4538,7 +4538,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, 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, 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, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.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, 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, Topic.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, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceFocus.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_DEPENDS_ON = "depends-on";
/**
* Fluent Client search parameter constant for depends-on
@@ -4564,7 +4564,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, 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, 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, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.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, 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, Topic.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, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceFocus.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_DERIVED_FROM = "derived-from";
/**
* Fluent Client search parameter constant for derived-from
@@ -4690,7 +4690,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, 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, 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, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.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, 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, Topic.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, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceFocus.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_PREDECESSOR = "predecessor";
/**
* Fluent Client search parameter constant for predecessor
@@ -4756,7 +4756,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, 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, 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, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.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, 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, Topic.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, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceFocus.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_SUCCESSOR = "successor";
/**
* Fluent Client search parameter constant for successor
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 e8404c46d..098bb3585 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 afe465e65..0509bde4a 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
@@ -74,18 +74,18 @@ import ca.uhn.fhir.model.api.annotation.Block;
public class AdministrableProductDefinition extends DomainResource {
@Block()
- public static class AdministrableProductDefinitionCharacteristicComponent extends BackboneElement implements IBaseBackboneElement {
+ public static class AdministrableProductDefinitionPropertyComponent extends BackboneElement implements IBaseBackboneElement {
/**
* A code expressing the type of characteristic.
*/
- @Child(name = "code", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true)
+ @Child(name = "type", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="A code expressing the type of characteristic", formalDefinition="A code expressing the type of characteristic." )
- protected CodeableConcept code;
+ protected CodeableConcept type;
/**
* A value for the characteristic.
*/
- @Child(name = "value", type = {Coding.class, Quantity.class, StringType.class, DateType.class, BooleanType.class, Attachment.class}, order=2, min=0, max=1, modifier=false, summary=true)
+ @Child(name = "value", type = {CodeableConcept.class, Quantity.class, DateType.class, BooleanType.class, Attachment.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="A value for the characteristic", formalDefinition="A value for the characteristic." )
protected DataType value;
@@ -96,44 +96,44 @@ public class AdministrableProductDefinition extends DomainResource {
@Description(shortDefinition="The status of characteristic e.g. assigned or pending", formalDefinition="The status of characteristic e.g. assigned or pending." )
protected CodeableConcept status;
- private static final long serialVersionUID = -343249058L;
+ private static final long serialVersionUID = -872048207L;
/**
* Constructor
*/
- public AdministrableProductDefinitionCharacteristicComponent() {
+ public AdministrableProductDefinitionPropertyComponent() {
super();
}
/**
* Constructor
*/
- public AdministrableProductDefinitionCharacteristicComponent(CodeableConcept code) {
+ public AdministrableProductDefinitionPropertyComponent(CodeableConcept type) {
super();
- this.setCode(code);
+ this.setType(type);
}
/**
- * @return {@link #code} (A code expressing the type of characteristic.)
+ * @return {@link #type} (A code expressing the type of characteristic.)
*/
- public CodeableConcept getCode() {
- if (this.code == null)
+ public CodeableConcept getType() {
+ if (this.type == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create AdministrableProductDefinitionCharacteristicComponent.code");
+ throw new Error("Attempt to auto-create AdministrableProductDefinitionPropertyComponent.type");
else if (Configuration.doAutoCreate())
- this.code = new CodeableConcept(); // cc
- return this.code;
+ this.type = new CodeableConcept(); // cc
+ return this.type;
}
- public boolean hasCode() {
- return this.code != null && !this.code.isEmpty();
+ public boolean hasType() {
+ return this.type != null && !this.type.isEmpty();
}
/**
- * @param value {@link #code} (A code expressing the type of characteristic.)
+ * @param value {@link #type} (A code expressing the type of characteristic.)
*/
- public AdministrableProductDefinitionCharacteristicComponent setCode(CodeableConcept value) {
- this.code = value;
+ public AdministrableProductDefinitionPropertyComponent setType(CodeableConcept value) {
+ this.type = value;
return this;
}
@@ -147,16 +147,16 @@ public class AdministrableProductDefinition extends DomainResource {
/**
* @return {@link #value} (A value for the characteristic.)
*/
- public Coding getValueCoding() throws FHIRException {
+ public CodeableConcept getValueCodeableConcept() throws FHIRException {
if (this.value == null)
- this.value = new Coding();
- if (!(this.value instanceof Coding))
- throw new FHIRException("Type mismatch: the type Coding was expected, but "+this.value.getClass().getName()+" was encountered");
- return (Coding) this.value;
+ 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 hasValueCoding() {
- return this != null && this.value instanceof Coding;
+ public boolean hasValueCodeableConcept() {
+ return this != null && this.value instanceof CodeableConcept;
}
/**
@@ -174,21 +174,6 @@ public class AdministrableProductDefinition extends DomainResource {
return this != null && this.value instanceof Quantity;
}
- /**
- * @return {@link #value} (A value for the characteristic.)
- */
- public StringType getValueStringType() throws FHIRException {
- if (this.value == null)
- this.value = new StringType();
- if (!(this.value instanceof StringType))
- throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.value.getClass().getName()+" was encountered");
- return (StringType) this.value;
- }
-
- public boolean hasValueStringType() {
- return this != null && this.value instanceof StringType;
- }
-
/**
* @return {@link #value} (A value for the characteristic.)
*/
@@ -241,9 +226,9 @@ public class AdministrableProductDefinition extends DomainResource {
/**
* @param value {@link #value} (A value for the characteristic.)
*/
- public AdministrableProductDefinitionCharacteristicComponent setValue(DataType value) {
- if (value != null && !(value instanceof Coding || value instanceof Quantity || value instanceof StringType || value instanceof DateType || value instanceof BooleanType || value instanceof Attachment))
- throw new Error("Not the right type for AdministrableProductDefinition.characteristic.value[x]: "+value.fhirType());
+ public AdministrableProductDefinitionPropertyComponent setValue(DataType value) {
+ if (value != null && !(value instanceof CodeableConcept || value instanceof Quantity || value instanceof DateType || value instanceof BooleanType || value instanceof Attachment))
+ throw new Error("Not the right type for AdministrableProductDefinition.property.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@@ -254,7 +239,7 @@ public class AdministrableProductDefinition extends DomainResource {
public CodeableConcept getStatus() {
if (this.status == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create AdministrableProductDefinitionCharacteristicComponent.status");
+ throw new Error("Attempt to auto-create AdministrableProductDefinitionPropertyComponent.status");
else if (Configuration.doAutoCreate())
this.status = new CodeableConcept(); // cc
return this.status;
@@ -267,27 +252,26 @@ public class AdministrableProductDefinition extends DomainResource {
/**
* @param value {@link #status} (The status of characteristic e.g. assigned or pending.)
*/
- public AdministrableProductDefinitionCharacteristicComponent setStatus(CodeableConcept value) {
+ public AdministrableProductDefinitionPropertyComponent setStatus(CodeableConcept value) {
this.status = value;
return this;
}
protected void listChildren(List children) {
super.listChildren(children);
- children.add(new Property("code", "CodeableConcept", "A code expressing the type of characteristic.", 0, 1, code));
- children.add(new Property("value[x]", "Coding|Quantity|string|date|boolean|Attachment", "A value for the characteristic.", 0, 1, value));
+ children.add(new Property("type", "CodeableConcept", "A code expressing the type of characteristic.", 0, 1, type));
+ children.add(new Property("value[x]", "CodeableConcept|Quantity|date|boolean|Attachment", "A value for the characteristic.", 0, 1, value));
children.add(new Property("status", "CodeableConcept", "The status of characteristic e.g. assigned or pending.", 0, 1, status));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
- case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code expressing the type of characteristic.", 0, 1, code);
- case -1410166417: /*value[x]*/ return new Property("value[x]", "Coding|Quantity|string|date|boolean|Attachment", "A value for the characteristic.", 0, 1, value);
- case 111972721: /*value*/ return new Property("value[x]", "Coding|Quantity|string|date|boolean|Attachment", "A value for the characteristic.", 0, 1, value);
- case -1887705029: /*valueCoding*/ return new Property("value[x]", "Coding", "A value for the characteristic.", 0, 1, value);
+ case 3575610: /*type*/ return new Property("type", "CodeableConcept", "A code expressing the type of characteristic.", 0, 1, type);
+ case -1410166417: /*value[x]*/ return new Property("value[x]", "CodeableConcept|Quantity|date|boolean|Attachment", "A value for the characteristic.", 0, 1, value);
+ case 111972721: /*value*/ return new Property("value[x]", "CodeableConcept|Quantity|date|boolean|Attachment", "A value for the characteristic.", 0, 1, value);
+ case 924902896: /*valueCodeableConcept*/ return new Property("value[x]", "CodeableConcept", "A value for the characteristic.", 0, 1, value);
case -2029823716: /*valueQuantity*/ return new Property("value[x]", "Quantity", "A value for the characteristic.", 0, 1, value);
- case -1424603934: /*valueString*/ return new Property("value[x]", "string", "A value for the characteristic.", 0, 1, value);
case -766192449: /*valueDate*/ return new Property("value[x]", "date", "A value for the characteristic.", 0, 1, value);
case 733421943: /*valueBoolean*/ return new Property("value[x]", "boolean", "A value for the characteristic.", 0, 1, value);
case -475566732: /*valueAttachment*/ return new Property("value[x]", "Attachment", "A value for the characteristic.", 0, 1, value);
@@ -300,7 +284,7 @@ public class AdministrableProductDefinition 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}; // CodeableConcept
+ 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}; // DataType
case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // CodeableConcept
default: return super.getProperty(hash, name, checkValid);
@@ -311,8 +295,8 @@ public class AdministrableProductDefinition extends DomainResource {
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
- case 3059181: // code
- this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
+ case 3575610: // type
+ this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 111972721: // value
this.value = TypeConvertor.castToType(value); // DataType
@@ -327,8 +311,8 @@ public class AdministrableProductDefinition extends DomainResource {
@Override
public Base setProperty(String name, Base value) throws FHIRException {
- if (name.equals("code")) {
- this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
+ if (name.equals("type")) {
+ this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("value[x]")) {
this.value = TypeConvertor.castToType(value); // DataType
} else if (name.equals("status")) {
@@ -341,7 +325,7 @@ public class AdministrableProductDefinition extends DomainResource {
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
- case 3059181: return getCode();
+ case 3575610: return getType();
case -1410166417: return getValue();
case 111972721: return getValue();
case -892481550: return getStatus();
@@ -353,8 +337,8 @@ public class AdministrableProductDefinition extends DomainResource {
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
- case 3059181: /*code*/ return new String[] {"CodeableConcept"};
- case 111972721: /*value*/ return new String[] {"Coding", "Quantity", "string", "date", "boolean", "Attachment"};
+ case 3575610: /*type*/ return new String[] {"CodeableConcept"};
+ case 111972721: /*value*/ return new String[] {"CodeableConcept", "Quantity", "date", "boolean", "Attachment"};
case -892481550: /*status*/ return new String[] {"CodeableConcept"};
default: return super.getTypesForProperty(hash, name);
}
@@ -363,22 +347,18 @@ public class AdministrableProductDefinition extends DomainResource {
@Override
public Base addChild(String name) throws FHIRException {
- if (name.equals("code")) {
- this.code = new CodeableConcept();
- return this.code;
+ if (name.equals("type")) {
+ this.type = new CodeableConcept();
+ return this.type;
}
- else if (name.equals("valueCoding")) {
- this.value = new Coding();
+ else if (name.equals("valueCodeableConcept")) {
+ this.value = new CodeableConcept();
return this.value;
}
else if (name.equals("valueQuantity")) {
this.value = new Quantity();
return this.value;
}
- else if (name.equals("valueString")) {
- this.value = new StringType();
- return this.value;
- }
else if (name.equals("valueDate")) {
this.value = new DateType();
return this.value;
@@ -399,15 +379,15 @@ public class AdministrableProductDefinition extends DomainResource {
return super.addChild(name);
}
- public AdministrableProductDefinitionCharacteristicComponent copy() {
- AdministrableProductDefinitionCharacteristicComponent dst = new AdministrableProductDefinitionCharacteristicComponent();
+ public AdministrableProductDefinitionPropertyComponent copy() {
+ AdministrableProductDefinitionPropertyComponent dst = new AdministrableProductDefinitionPropertyComponent();
copyValues(dst);
return dst;
}
- public void copyValues(AdministrableProductDefinitionCharacteristicComponent dst) {
+ public void copyValues(AdministrableProductDefinitionPropertyComponent dst) {
super.copyValues(dst);
- dst.code = code == null ? null : code.copy();
+ dst.type = type == null ? null : type.copy();
dst.value = value == null ? null : value.copy();
dst.status = status == null ? null : status.copy();
}
@@ -416,10 +396,10 @@ public class AdministrableProductDefinition extends DomainResource {
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
- if (!(other_ instanceof AdministrableProductDefinitionCharacteristicComponent))
+ if (!(other_ instanceof AdministrableProductDefinitionPropertyComponent))
return false;
- AdministrableProductDefinitionCharacteristicComponent o = (AdministrableProductDefinitionCharacteristicComponent) other_;
- return compareDeep(code, o.code, true) && compareDeep(value, o.value, true) && compareDeep(status, o.status, true)
+ AdministrableProductDefinitionPropertyComponent o = (AdministrableProductDefinitionPropertyComponent) other_;
+ return compareDeep(type, o.type, true) && compareDeep(value, o.value, true) && compareDeep(status, o.status, true)
;
}
@@ -427,18 +407,18 @@ public class AdministrableProductDefinition extends DomainResource {
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
- if (!(other_ instanceof AdministrableProductDefinitionCharacteristicComponent))
+ if (!(other_ instanceof AdministrableProductDefinitionPropertyComponent))
return false;
- AdministrableProductDefinitionCharacteristicComponent o = (AdministrableProductDefinitionCharacteristicComponent) other_;
+ AdministrableProductDefinitionPropertyComponent o = (AdministrableProductDefinitionPropertyComponent) other_;
return true;
}
public boolean isEmpty() {
- return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, value, status);
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, value, status);
}
public String fhirType() {
- return "AdministrableProductDefinition.characteristic";
+ return "AdministrableProductDefinition.property";
}
@@ -1495,9 +1475,9 @@ public class AdministrableProductDefinition extends DomainResource {
/**
* Characteristics e.g. a products onset of action.
*/
- @Child(name = "characteristic", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
+ @Child(name = "property", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Characteristics e.g. a products onset of action", formalDefinition="Characteristics e.g. a products onset of action." )
- protected List characteristic;
+ protected List property;
/**
* The path by which the pharmaceutical product is taken into or makes contact with the body.
@@ -1506,7 +1486,7 @@ public class AdministrableProductDefinition extends DomainResource {
@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." )
protected List routeOfAdministration;
- private static final long serialVersionUID = 1618278928L;
+ private static final long serialVersionUID = -1072766896L;
/**
* Constructor
@@ -1838,56 +1818,56 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
- * @return {@link #characteristic} (Characteristics e.g. a products onset of action.)
+ * @return {@link #property} (Characteristics e.g. a products onset of action.)
*/
- public List getCharacteristic() {
- if (this.characteristic == null)
- this.characteristic = new ArrayList();
- return this.characteristic;
+ public List getProperty() {
+ if (this.property == null)
+ this.property = new ArrayList();
+ return this.property;
}
/**
* @return Returns a reference to this
for easy method chaining
*/
- public AdministrableProductDefinition setCharacteristic(List theCharacteristic) {
- this.characteristic = theCharacteristic;
+ public AdministrableProductDefinition setProperty(List theProperty) {
+ this.property = theProperty;
return this;
}
- public boolean hasCharacteristic() {
- if (this.characteristic == null)
+ public boolean hasProperty() {
+ if (this.property == null)
return false;
- for (AdministrableProductDefinitionCharacteristicComponent item : this.characteristic)
+ for (AdministrableProductDefinitionPropertyComponent item : this.property)
if (!item.isEmpty())
return true;
return false;
}
- public AdministrableProductDefinitionCharacteristicComponent addCharacteristic() { //3
- AdministrableProductDefinitionCharacteristicComponent t = new AdministrableProductDefinitionCharacteristicComponent();
- if (this.characteristic == null)
- this.characteristic = new ArrayList();
- this.characteristic.add(t);
+ public AdministrableProductDefinitionPropertyComponent addProperty() { //3
+ AdministrableProductDefinitionPropertyComponent t = new AdministrableProductDefinitionPropertyComponent();
+ if (this.property == null)
+ this.property = new ArrayList();
+ this.property.add(t);
return t;
}
- public AdministrableProductDefinition addCharacteristic(AdministrableProductDefinitionCharacteristicComponent t) { //3
+ public AdministrableProductDefinition addProperty(AdministrableProductDefinitionPropertyComponent t) { //3
if (t == null)
return this;
- if (this.characteristic == null)
- this.characteristic = new ArrayList();
- this.characteristic.add(t);
+ if (this.property == null)
+ this.property = new ArrayList();
+ this.property.add(t);
return this;
}
/**
- * @return The first repetition of repeating field {@link #characteristic}, creating it if it does not already exist {3}
+ * @return The first repetition of repeating field {@link #property}, creating it if it does not already exist {3}
*/
- public AdministrableProductDefinitionCharacteristicComponent getCharacteristicFirstRep() {
- if (getCharacteristic().isEmpty()) {
- addCharacteristic();
+ public AdministrableProductDefinitionPropertyComponent getPropertyFirstRep() {
+ if (getProperty().isEmpty()) {
+ addProperty();
}
- return getCharacteristic().get(0);
+ return getProperty().get(0);
}
/**
@@ -1952,7 +1932,7 @@ public class AdministrableProductDefinition extends DomainResource {
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("characteristic", "", "Characteristics e.g. a products onset of action.", 0, java.lang.Integer.MAX_VALUE, characteristic));
+ 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));
}
@@ -1966,7 +1946,7 @@ public class AdministrableProductDefinition extends DomainResource {
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 366313883: /*characteristic*/ return new Property("characteristic", "", "Characteristics e.g. a products onset of action.", 0, java.lang.Integer.MAX_VALUE, characteristic);
+ 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);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
@@ -1983,7 +1963,7 @@ public class AdministrableProductDefinition extends DomainResource {
case 588380494: /*producedFrom*/ return this.producedFrom == null ? new Base[0] : this.producedFrom.toArray(new Base[this.producedFrom.size()]); // Reference
case -206409263: /*ingredient*/ return this.ingredient == null ? new Base[0] : this.ingredient.toArray(new Base[this.ingredient.size()]); // Reference
case -1335157162: /*device*/ return this.device == null ? new Base[0] : this.device.toArray(new Base[this.device.size()]); // Reference
- case 366313883: /*characteristic*/ return this.characteristic == null ? new Base[0] : this.characteristic.toArray(new Base[this.characteristic.size()]); // AdministrableProductDefinitionCharacteristicComponent
+ case -993141291: /*property*/ return this.property == null ? new Base[0] : this.property.toArray(new Base[this.property.size()]); // AdministrableProductDefinitionPropertyComponent
case 1742084734: /*routeOfAdministration*/ return this.routeOfAdministration == null ? new Base[0] : this.routeOfAdministration.toArray(new Base[this.routeOfAdministration.size()]); // AdministrableProductDefinitionRouteOfAdministrationComponent
default: return super.getProperty(hash, name, checkValid);
}
@@ -2014,8 +1994,8 @@ public class AdministrableProductDefinition extends DomainResource {
case -1335157162: // device
this.getDevice().add(TypeConvertor.castToReference(value)); // Reference
return value;
- case 366313883: // characteristic
- this.getCharacteristic().add((AdministrableProductDefinitionCharacteristicComponent) value); // AdministrableProductDefinitionCharacteristicComponent
+ case -993141291: // property
+ this.getProperty().add((AdministrableProductDefinitionPropertyComponent) value); // AdministrableProductDefinitionPropertyComponent
return value;
case 1742084734: // routeOfAdministration
this.getRouteOfAdministration().add((AdministrableProductDefinitionRouteOfAdministrationComponent) value); // AdministrableProductDefinitionRouteOfAdministrationComponent
@@ -2041,8 +2021,8 @@ public class AdministrableProductDefinition extends DomainResource {
this.getIngredient().add(TypeConvertor.castToReference(value));
} else if (name.equals("device")) {
this.getDevice().add(TypeConvertor.castToReference(value));
- } else if (name.equals("characteristic")) {
- this.getCharacteristic().add((AdministrableProductDefinitionCharacteristicComponent) value);
+ } else if (name.equals("property")) {
+ this.getProperty().add((AdministrableProductDefinitionPropertyComponent) value);
} else if (name.equals("routeOfAdministration")) {
this.getRouteOfAdministration().add((AdministrableProductDefinitionRouteOfAdministrationComponent) value);
} else
@@ -2060,7 +2040,7 @@ public class AdministrableProductDefinition extends DomainResource {
case 588380494: return addProducedFrom();
case -206409263: return addIngredient();
case -1335157162: return addDevice();
- case 366313883: return addCharacteristic();
+ case -993141291: return addProperty();
case 1742084734: return addRouteOfAdministration();
default: return super.makeProperty(hash, name);
}
@@ -2077,7 +2057,7 @@ public class AdministrableProductDefinition extends DomainResource {
case 588380494: /*producedFrom*/ return new String[] {"Reference"};
case -206409263: /*ingredient*/ return new String[] {"Reference"};
case -1335157162: /*device*/ return new String[] {"Reference"};
- case 366313883: /*characteristic*/ return new String[] {};
+ case -993141291: /*property*/ return new String[] {};
case 1742084734: /*routeOfAdministration*/ return new String[] {};
default: return super.getTypesForProperty(hash, name);
}
@@ -2109,8 +2089,8 @@ public class AdministrableProductDefinition extends DomainResource {
else if (name.equals("device")) {
return addDevice();
}
- else if (name.equals("characteristic")) {
- return addCharacteristic();
+ else if (name.equals("property")) {
+ return addProperty();
}
else if (name.equals("routeOfAdministration")) {
return addRouteOfAdministration();
@@ -2159,10 +2139,10 @@ public class AdministrableProductDefinition extends DomainResource {
for (Reference i : device)
dst.device.add(i.copy());
};
- if (characteristic != null) {
- dst.characteristic = new ArrayList();
- for (AdministrableProductDefinitionCharacteristicComponent i : characteristic)
- dst.characteristic.add(i.copy());
+ if (property != null) {
+ dst.property = new ArrayList();
+ for (AdministrableProductDefinitionPropertyComponent i : property)
+ dst.property.add(i.copy());
};
if (routeOfAdministration != null) {
dst.routeOfAdministration = new ArrayList();
@@ -2184,7 +2164,7 @@ public class AdministrableProductDefinition extends DomainResource {
AdministrableProductDefinition o = (AdministrableProductDefinition) other_;
return compareDeep(identifier, o.identifier, true) && compareDeep(subject, o.subject, true) && compareDeep(administrableDoseForm, o.administrableDoseForm, true)
&& compareDeep(unitOfPresentation, o.unitOfPresentation, true) && compareDeep(producedFrom, o.producedFrom, true)
- && compareDeep(ingredient, o.ingredient, true) && compareDeep(device, o.device, true) && compareDeep(characteristic, o.characteristic, true)
+ && compareDeep(ingredient, o.ingredient, true) && compareDeep(device, o.device, true) && compareDeep(property, o.property, true)
&& compareDeep(routeOfAdministration, o.routeOfAdministration, true);
}
@@ -2200,7 +2180,7 @@ public class AdministrableProductDefinition extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, subject, administrableDoseForm
- , unitOfPresentation, producedFrom, ingredient, device, characteristic, routeOfAdministration
+ , unitOfPresentation, producedFrom, ingredient, device, property, routeOfAdministration
);
}
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 b93dfb37d..4caa070b2 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
@@ -1798,10 +1798,10 @@ public class AdverseEvent extends DomainResource {
protected List identifier;
/**
- * The current state of the data entry of the adverse event or potential adverse event.
+ * The current state of the adverse event or potential adverse event.
*/
@Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true)
- @Description(shortDefinition="in-progress | completed | entered-in-error | unknown", formalDefinition="The current state of the data entry of the adverse event or potential adverse event." )
+ @Description(shortDefinition="in-progress | completed | entered-in-error | unknown", formalDefinition="The current state of the adverse event or potential adverse event." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/adverse-event-status")
protected Enumeration status;
@@ -1817,7 +1817,7 @@ public class AdverseEvent extends DomainResource {
* The overall type of event, intended for search and filtering purposes.
*/
@Child(name = "category", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
- @Description(shortDefinition="product-problem | product-quality | product-use-error | wrong-dose | incorrect-prescribing-information | wrong-technique | wrong-route-of-administration | wrong-rate | wrong-duration | wrong-time | expired-drug | medical-device-use-error | problem-different-manufacturer | unsafe-physical-environment", formalDefinition="The overall type of event, intended for search and filtering purposes." )
+ @Description(shortDefinition="wrong-patient | procedure-mishap | medication-mishap | device | unsafe-physical-environment | hospital-aquired-infection | wrong-body-site", formalDefinition="The overall type of event, intended for search and filtering purposes." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/adverse-event-category")
protected List category;
@@ -1837,10 +1837,10 @@ public class AdverseEvent extends DomainResource {
protected Reference subject;
/**
- * The Encounter during which AdverseEvent was created or to which the creation of this record is tightly associated.
+ * The Encounter associated with the start of the AdverseEvent.
*/
@Child(name = "encounter", type = {Encounter.class}, order=6, min=0, max=1, modifier=false, summary=true)
- @Description(shortDefinition="The Encounter during which this AdverseEvent was created", formalDefinition="The Encounter during which AdverseEvent was created or to which the creation of this record is tightly associated." )
+ @Description(shortDefinition="The Encounter associated with the start of the AdverseEvent", formalDefinition="The Encounter associated with the start of the AdverseEvent." )
protected Reference encounter;
/**
@@ -2023,7 +2023,7 @@ public class AdverseEvent extends DomainResource {
}
/**
- * @return {@link #status} (The current state of the data entry of the adverse event or potential adverse event.). 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 adverse event or potential adverse event.). 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)
@@ -2043,7 +2043,7 @@ public class AdverseEvent extends DomainResource {
}
/**
- * @param value {@link #status} (The current state of the data entry of the adverse event or potential adverse event.). 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 adverse event or potential adverse event.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public AdverseEvent setStatusElement(Enumeration value) {
this.status = value;
@@ -2051,14 +2051,14 @@ public class AdverseEvent extends DomainResource {
}
/**
- * @return The current state of the data entry of the adverse event or potential adverse event.
+ * @return The current state of the adverse event or potential adverse event.
*/
public AdverseEventStatus getStatus() {
return this.status == null ? null : this.status.getValue();
}
/**
- * @param value The current state of the data entry of the adverse event or potential adverse event.
+ * @param value The current state of the adverse event or potential adverse event.
*/
public AdverseEvent setStatus(AdverseEventStatus value) {
if (this.status == null)
@@ -2214,7 +2214,7 @@ public class AdverseEvent extends DomainResource {
}
/**
- * @return {@link #encounter} (The Encounter during which AdverseEvent was created or to which the creation of this record is tightly associated.)
+ * @return {@link #encounter} (The Encounter associated with the start of the AdverseEvent.)
*/
public Reference getEncounter() {
if (this.encounter == null)
@@ -2230,7 +2230,7 @@ public class AdverseEvent extends DomainResource {
}
/**
- * @param value {@link #encounter} (The Encounter during which AdverseEvent was created or to which the creation of this record is tightly associated.)
+ * @param value {@link #encounter} (The Encounter associated with the start of the AdverseEvent.)
*/
public AdverseEvent setEncounter(Reference value) {
this.encounter = value;
@@ -2924,12 +2924,12 @@ public class AdverseEvent extends DomainResource {
protected void listChildren(List children) {
super.listChildren(children);
children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this adverse event 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("status", "code", "The current state of the data entry of the adverse event or potential adverse event.", 0, 1, status));
+ children.add(new Property("status", "code", "The current state of the adverse event or potential adverse event.", 0, 1, status));
children.add(new Property("actuality", "code", "Whether the event actually happened, or just had the potential to. Note that this is independent of whether anyone was affected or harmed or how severely.", 0, 1, actuality));
children.add(new Property("category", "CodeableConcept", "The overall type of event, intended for search and filtering purposes.", 0, java.lang.Integer.MAX_VALUE, category));
children.add(new Property("code", "CodeableConcept", "Specific event that occurred or that was averted, such as patient fall, wrong organ removed, or wrong blood transfused.", 0, 1, code));
children.add(new Property("subject", "Reference(Patient|Group|Practitioner|RelatedPerson)", "This subject or group impacted by the event.", 0, 1, subject));
- children.add(new Property("encounter", "Reference(Encounter)", "The Encounter during which AdverseEvent was created or to which the creation of this record is tightly associated.", 0, 1, encounter));
+ children.add(new Property("encounter", "Reference(Encounter)", "The Encounter associated with the start of the AdverseEvent.", 0, 1, encounter));
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));
@@ -2951,12 +2951,12 @@ public class AdverseEvent extends DomainResource {
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers assigned to this adverse event 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 -892481550: /*status*/ return new Property("status", "code", "The current state of the data entry of the adverse event or potential adverse event.", 0, 1, status);
+ case -892481550: /*status*/ return new Property("status", "code", "The current state of the adverse event or potential adverse event.", 0, 1, status);
case 528866400: /*actuality*/ return new Property("actuality", "code", "Whether the event actually happened, or just had the potential to. Note that this is independent of whether anyone was affected or harmed or how severely.", 0, 1, actuality);
case 50511102: /*category*/ return new Property("category", "CodeableConcept", "The overall type of event, intended for search and filtering purposes.", 0, java.lang.Integer.MAX_VALUE, category);
case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Specific event that occurred or that was averted, such as patient fall, wrong organ removed, or wrong blood transfused.", 0, 1, code);
case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Practitioner|RelatedPerson)", "This subject or group impacted by the event.", 0, 1, subject);
- case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The Encounter during which AdverseEvent was created or to which the creation of this record is tightly associated.", 0, 1, encounter);
+ case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The Encounter associated with the start of the AdverseEvent.", 0, 1, encounter);
case -2022646513: /*occurrence[x]*/ return new Property("occurrence[x]", "dateTime|Period|Timing", "The date (and perhaps time) when the adverse event occurred.", 0, 1, occurrence);
case 1687874001: /*occurrence*/ return new Property("occurrence[x]", "dateTime|Period|Timing", "The date (and perhaps time) when the adverse event occurred.", 0, 1, occurrence);
case -298443636: /*occurrenceDateTime*/ return new Property("occurrence[x]", "dateTime", "The date (and perhaps time) when the adverse event occurred.", 0, 1, occurrence);
@@ -3434,17 +3434,17 @@ public class AdverseEvent extends DomainResource {
/**
* Search parameter: category
*
- * Description: product-problem | product-quality | product-use-error | wrong-dose | incorrect-prescribing-information | wrong-technique | wrong-route-of-administration | wrong-rate | wrong-duration | wrong-time | expired-drug | medical-device-use-error | problem-different-manufacturer | unsafe-physical-environment
+ * Description: wrong-patient | procedure-mishap | medication-mishap | device | unsafe-physical-environment | hospital-aquired-infection | wrong-body-site
* Type: token
* Path: AdverseEvent.category
*
*/
- @SearchParamDefinition(name="category", path="AdverseEvent.category", description="product-problem | product-quality | product-use-error | wrong-dose | incorrect-prescribing-information | wrong-technique | wrong-route-of-administration | wrong-rate | wrong-duration | wrong-time | expired-drug | medical-device-use-error | problem-different-manufacturer | unsafe-physical-environment", type="token" )
+ @SearchParamDefinition(name="category", path="AdverseEvent.category", description="wrong-patient | procedure-mishap | medication-mishap | device | unsafe-physical-environment | hospital-aquired-infection | wrong-body-site", type="token" )
public static final String SP_CATEGORY = "category";
/**
* Fluent Client search parameter constant for category
*
- * Description: product-problem | product-quality | product-use-error | wrong-dose | incorrect-prescribing-information | wrong-technique | wrong-route-of-administration | wrong-rate | wrong-duration | wrong-time | expired-drug | medical-device-use-error | problem-different-manufacturer | unsafe-physical-environment
+ * Description: wrong-patient | procedure-mishap | medication-mishap | device | unsafe-physical-environment | hospital-aquired-infection | wrong-body-site
* Type: token
* Path: AdverseEvent.category
*
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 1a3c18949..50aa795d4 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
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 e6fbb3dc3..2b34dc88a 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
@@ -2530,10 +2530,10 @@ public class AllergyIntolerance extends DomainResource {
* [ServiceRequest](servicerequest.html): What is being requested/ordered
* Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationUsage.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.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
*
*/
- @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationUsage.medication as CodeableConcept) | 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" )
+ @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
@@ -2556,7 +2556,7 @@ public class AllergyIntolerance extends DomainResource {
* [ServiceRequest](servicerequest.html): What is being requested/ordered
* Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationUsage.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.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
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE);
@@ -2585,10 +2585,10 @@ public class AllergyIntolerance extends DomainResource {
* [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 | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ * 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 | 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" )
+ @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
@@ -2614,7 +2614,7 @@ public class AllergyIntolerance extends DomainResource {
* [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 | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ * 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);
@@ -2742,10 +2742,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.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) | 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.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) | 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
@@ -2786,7 +2786,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.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) | 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);
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 e0f020ac2..bf85a7d61 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 f82eb6190..ee09c0755 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
@@ -2843,7 +2843,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, 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, 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, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.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, 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, Topic.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, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceFocus.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_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 4da09bbbb..01c2bb280 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 3d074c2e5..35a597cf1 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
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 fad5a3d6b..8b6f3bdc1 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
@@ -353,130 +353,6 @@ public class AuditEvent extends DomainResource {
}
}
- public enum AuditEventOutcome {
- /**
- * The operation completed successfully (whether with warnings or not).
- */
- _0,
- /**
- * The action was not successful due to some kind of minor failure (often equivalent to an HTTP 400 response).
- */
- _4,
- /**
- * The action was not successful due to some kind of unexpected error (often equivalent to an HTTP 500 response).
- */
- _8,
- /**
- * An error of such magnitude occurred that the system is no longer available for use (i.e. the system died).
- */
- _12,
- /**
- * added to help the parsers with the generic types
- */
- NULL;
- public static AuditEventOutcome fromCode(String codeString) throws FHIRException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("0".equals(codeString))
- return _0;
- if ("4".equals(codeString))
- return _4;
- if ("8".equals(codeString))
- return _8;
- if ("12".equals(codeString))
- return _12;
- if (Configuration.isAcceptInvalidEnums())
- return null;
- else
- throw new FHIRException("Unknown AuditEventOutcome code '"+codeString+"'");
- }
- public String toCode() {
- switch (this) {
- case _0: return "0";
- case _4: return "4";
- case _8: return "8";
- case _12: return "12";
- default: return "?";
- }
- }
- public String getSystem() {
- switch (this) {
- case _0: return "http://hl7.org/fhir/audit-event-outcome";
- case _4: return "http://hl7.org/fhir/audit-event-outcome";
- case _8: return "http://hl7.org/fhir/audit-event-outcome";
- case _12: return "http://hl7.org/fhir/audit-event-outcome";
- default: return "?";
- }
- }
- public String getDefinition() {
- switch (this) {
- case _0: return "The operation completed successfully (whether with warnings or not).";
- case _4: return "The action was not successful due to some kind of minor failure (often equivalent to an HTTP 400 response).";
- case _8: return "The action was not successful due to some kind of unexpected error (often equivalent to an HTTP 500 response).";
- case _12: return "An error of such magnitude occurred that the system is no longer available for use (i.e. the system died).";
- default: return "?";
- }
- }
- public String getDisplay() {
- switch (this) {
- case _0: return "Success";
- case _4: return "Minor failure";
- case _8: return "Serious failure";
- case _12: return "Major failure";
- default: return "?";
- }
- }
- }
-
- public static class AuditEventOutcomeEnumFactory implements EnumFactory {
- public AuditEventOutcome fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- if (codeString == null || "".equals(codeString))
- return null;
- if ("0".equals(codeString))
- return AuditEventOutcome._0;
- if ("4".equals(codeString))
- return AuditEventOutcome._4;
- if ("8".equals(codeString))
- return AuditEventOutcome._8;
- if ("12".equals(codeString))
- return AuditEventOutcome._12;
- throw new IllegalArgumentException("Unknown AuditEventOutcome 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 ("0".equals(codeString))
- return new Enumeration(this, AuditEventOutcome._0);
- if ("4".equals(codeString))
- return new Enumeration(this, AuditEventOutcome._4);
- if ("8".equals(codeString))
- return new Enumeration(this, AuditEventOutcome._8);
- if ("12".equals(codeString))
- return new Enumeration(this, AuditEventOutcome._12);
- throw new FHIRException("Unknown AuditEventOutcome code '"+codeString+"'");
- }
- public String toCode(AuditEventOutcome code) {
- if (code == AuditEventOutcome._0)
- return "0";
- if (code == AuditEventOutcome._4)
- return "4";
- if (code == AuditEventOutcome._8)
- return "8";
- if (code == AuditEventOutcome._12)
- return "12";
- return "?";
- }
- public String toSystem(AuditEventOutcome code) {
- return code.getSystem();
- }
- }
-
public enum AuditEventSeverity {
/**
* System is unusable.
@@ -2943,24 +2819,17 @@ public class AuditEvent extends DomainResource {
protected InstantType recorded;
/**
- * Indicates whether the event succeeded or failed.
+ * Indicates whether the event succeeded or failed. A free text descripiton can be given in outcome.text.
*/
- @Child(name = "outcome", type = {CodeType.class}, order=6, min=0, max=1, modifier=false, summary=true)
- @Description(shortDefinition="Whether the event succeeded or failed", formalDefinition="Indicates whether the event succeeded or failed." )
+ @Child(name = "outcome", type = {CodeableConcept.class}, order=6, min=0, max=1, modifier=false, summary=true)
+ @Description(shortDefinition="Whether the event succeeded or failed", formalDefinition="Indicates whether the event succeeded or failed. A free text descripiton can be given in outcome.text." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/audit-event-outcome")
- protected Enumeration outcome;
-
- /**
- * A free text description of the outcome of the event.
- */
- @Child(name = "outcomeDesc", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=true)
- @Description(shortDefinition="Description of the event outcome", formalDefinition="A free text description of the outcome of the event." )
- protected StringType outcomeDesc;
+ protected CodeableConcept outcome;
/**
* The purposeOfUse (reason) that was used during the event being recorded.
*/
- @Child(name = "purposeOfEvent", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
+ @Child(name = "purposeOfEvent", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The purposeOfUse of the event", formalDefinition="The purposeOfUse (reason) that was used during the event being recorded." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-PurposeOfUse")
protected List purposeOfEvent;
@@ -2968,25 +2837,25 @@ public class AuditEvent extends DomainResource {
/**
* An actor taking an active role in the event or activity that is logged.
*/
- @Child(name = "agent", type = {}, order=9, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Child(name = "agent", type = {}, order=8, 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=10, min=1, max=1, modifier=false, summary=false)
+ @Child(name = "source", type = {}, order=9, 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=11, 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="Data or objects used", formalDefinition="Specific instances of data or objects that have been accessed." )
protected List entity;
- private static final long serialVersionUID = 778790159L;
+ private static final long serialVersionUID = -446219294L;
/**
* Constructor
@@ -3251,103 +3120,29 @@ public class AuditEvent extends DomainResource {
}
/**
- * @return {@link #outcome} (Indicates whether the event succeeded or failed.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
+ * @return {@link #outcome} (Indicates whether the event succeeded or failed. A free text descripiton can be given in outcome.text.)
*/
- public Enumeration getOutcomeElement() {
+ public CodeableConcept getOutcome() {
if (this.outcome == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create AuditEvent.outcome");
else if (Configuration.doAutoCreate())
- this.outcome = new Enumeration(new AuditEventOutcomeEnumFactory()); // bb
+ this.outcome = new CodeableConcept(); // cc
return this.outcome;
}
- public boolean hasOutcomeElement() {
- return this.outcome != null && !this.outcome.isEmpty();
- }
-
public boolean hasOutcome() {
return this.outcome != null && !this.outcome.isEmpty();
}
/**
- * @param value {@link #outcome} (Indicates whether the event succeeded or failed.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
+ * @param value {@link #outcome} (Indicates whether the event succeeded or failed. A free text descripiton can be given in outcome.text.)
*/
- public AuditEvent setOutcomeElement(Enumeration value) {
+ public AuditEvent setOutcome(CodeableConcept value) {
this.outcome = value;
return this;
}
- /**
- * @return Indicates whether the event succeeded or failed.
- */
- public AuditEventOutcome getOutcome() {
- return this.outcome == null ? null : this.outcome.getValue();
- }
-
- /**
- * @param value Indicates whether the event succeeded or failed.
- */
- public AuditEvent setOutcome(AuditEventOutcome value) {
- if (value == null)
- this.outcome = null;
- else {
- if (this.outcome == null)
- this.outcome = new Enumeration(new AuditEventOutcomeEnumFactory());
- this.outcome.setValue(value);
- }
- return this;
- }
-
- /**
- * @return {@link #outcomeDesc} (A free text description of the outcome of the event.). This is the underlying object with id, value and extensions. The accessor "getOutcomeDesc" gives direct access to the value
- */
- public StringType getOutcomeDescElement() {
- if (this.outcomeDesc == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create AuditEvent.outcomeDesc");
- else if (Configuration.doAutoCreate())
- this.outcomeDesc = new StringType(); // bb
- return this.outcomeDesc;
- }
-
- public boolean hasOutcomeDescElement() {
- return this.outcomeDesc != null && !this.outcomeDesc.isEmpty();
- }
-
- public boolean hasOutcomeDesc() {
- return this.outcomeDesc != null && !this.outcomeDesc.isEmpty();
- }
-
- /**
- * @param value {@link #outcomeDesc} (A free text description of the outcome of the event.). This is the underlying object with id, value and extensions. The accessor "getOutcomeDesc" gives direct access to the value
- */
- public AuditEvent setOutcomeDescElement(StringType value) {
- this.outcomeDesc = value;
- return this;
- }
-
- /**
- * @return A free text description of the outcome of the event.
- */
- public String getOutcomeDesc() {
- return this.outcomeDesc == null ? null : this.outcomeDesc.getValue();
- }
-
- /**
- * @param value A free text description of the outcome of the event.
- */
- public AuditEvent setOutcomeDesc(String value) {
- if (Utilities.noString(value))
- this.outcomeDesc = null;
- else {
- if (this.outcomeDesc == null)
- this.outcomeDesc = new StringType();
- this.outcomeDesc.setValue(value);
- }
- return this;
- }
-
/**
* @return {@link #purposeOfEvent} (The purposeOfUse (reason) that was used during the event being recorded.)
*/
@@ -3539,8 +3334,7 @@ public class AuditEvent extends DomainResource {
children.add(new Property("severity", "code", "Indicates and enables segmentation of various severity including debugging from critical.", 0, 1, severity));
children.add(new Property("period", "Period", "The period during which the activity occurred.", 0, 1, period));
children.add(new Property("recorded", "instant", "The time when the event was recorded.", 0, 1, recorded));
- children.add(new Property("outcome", "code", "Indicates whether the event succeeded or failed.", 0, 1, outcome));
- children.add(new Property("outcomeDesc", "string", "A free text description of the outcome of the event.", 0, 1, outcomeDesc));
+ 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("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));
@@ -3556,8 +3350,7 @@ public class AuditEvent extends DomainResource {
case 1478300413: /*severity*/ return new Property("severity", "code", "Indicates and enables segmentation of various severity including debugging from critical.", 0, 1, severity);
case -991726143: /*period*/ return new Property("period", "Period", "The period during which the activity occurred.", 0, 1, period);
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", "code", "Indicates whether the event succeeded or failed.", 0, 1, outcome);
- case 1062502659: /*outcomeDesc*/ return new Property("outcomeDesc", "string", "A free text description of the outcome of the event.", 0, 1, outcomeDesc);
+ 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 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);
@@ -3576,8 +3369,7 @@ public class AuditEvent extends DomainResource {
case 1478300413: /*severity*/ return this.severity == null ? new Base[0] : new Base[] {this.severity}; // Enumeration
case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period
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}; // Enumeration
- case 1062502659: /*outcomeDesc*/ return this.outcomeDesc == null ? new Base[0] : new Base[] {this.outcomeDesc}; // StringType
+ 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 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
@@ -3611,11 +3403,7 @@ public class AuditEvent extends DomainResource {
this.recorded = TypeConvertor.castToInstant(value); // InstantType
return value;
case -1106507950: // outcome
- value = new AuditEventOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value));
- this.outcome = (Enumeration) value; // Enumeration
- return value;
- case 1062502659: // outcomeDesc
- this.outcomeDesc = TypeConvertor.castToString(value); // StringType
+ this.outcome = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case -341917691: // purposeOfEvent
this.getPurposeOfEvent().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
@@ -3651,10 +3439,7 @@ public class AuditEvent extends DomainResource {
} else if (name.equals("recorded")) {
this.recorded = TypeConvertor.castToInstant(value); // InstantType
} else if (name.equals("outcome")) {
- value = new AuditEventOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value));
- this.outcome = (Enumeration) value; // Enumeration
- } else if (name.equals("outcomeDesc")) {
- this.outcomeDesc = TypeConvertor.castToString(value); // StringType
+ this.outcome = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("purposeOfEvent")) {
this.getPurposeOfEvent().add(TypeConvertor.castToCodeableConcept(value));
} else if (name.equals("agent")) {
@@ -3677,8 +3462,7 @@ public class AuditEvent extends DomainResource {
case 1478300413: return getSeverityElement();
case -991726143: return getPeriod();
case -799233872: return getRecordedElement();
- case -1106507950: return getOutcomeElement();
- case 1062502659: return getOutcomeDescElement();
+ case -1106507950: return getOutcome();
case -341917691: return addPurposeOfEvent();
case 92750597: return addAgent();
case -896505829: return getSource();
@@ -3697,8 +3481,7 @@ public class AuditEvent extends DomainResource {
case 1478300413: /*severity*/ return new String[] {"code"};
case -991726143: /*period*/ return new String[] {"Period"};
case -799233872: /*recorded*/ return new String[] {"instant"};
- case -1106507950: /*outcome*/ return new String[] {"code"};
- case 1062502659: /*outcomeDesc*/ return new String[] {"string"};
+ case -1106507950: /*outcome*/ return new String[] {"CodeableConcept"};
case -341917691: /*purposeOfEvent*/ return new String[] {"CodeableConcept"};
case 92750597: /*agent*/ return new String[] {};
case -896505829: /*source*/ return new String[] {};
@@ -3731,10 +3514,8 @@ public class AuditEvent extends DomainResource {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.recorded");
}
else if (name.equals("outcome")) {
- throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcome");
- }
- else if (name.equals("outcomeDesc")) {
- throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcomeDesc");
+ this.outcome = new CodeableConcept();
+ return this.outcome;
}
else if (name.equals("purposeOfEvent")) {
return addPurposeOfEvent();
@@ -3777,7 +3558,6 @@ public class AuditEvent extends DomainResource {
dst.period = period == null ? null : period.copy();
dst.recorded = recorded == null ? null : recorded.copy();
dst.outcome = outcome == null ? null : outcome.copy();
- dst.outcomeDesc = outcomeDesc == null ? null : outcomeDesc.copy();
if (purposeOfEvent != null) {
dst.purposeOfEvent = new ArrayList();
for (CodeableConcept i : purposeOfEvent)
@@ -3809,7 +3589,7 @@ public class AuditEvent extends DomainResource {
AuditEvent o = (AuditEvent) other_;
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(outcomeDesc, o.outcomeDesc, true) && compareDeep(purposeOfEvent, o.purposeOfEvent, 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)
;
}
@@ -3822,13 +3602,12 @@ public class AuditEvent extends DomainResource {
return false;
AuditEvent o = (AuditEvent) other_;
return compareValues(action, o.action, true) && compareValues(severity, o.severity, true) && compareValues(recorded, o.recorded, true)
- && compareValues(outcome, o.outcome, true) && compareValues(outcomeDesc, o.outcomeDesc, true);
+ ;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, subtype, action, severity
- , period, recorded, outcome, outcomeDesc, purposeOfEvent, agent, source, entity
- );
+ , period, recorded, outcome, purposeOfEvent, agent, source, entity);
}
@Override
@@ -4050,7 +3829,7 @@ public class AuditEvent extends DomainResource {
* 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, 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, 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, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.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, 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, Topic.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
+ @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, EvidenceFocus.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
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 e1358639b..782d7a4f1 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 a8d557f71..e4dc1d2d4 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 14c625004..291608df7 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
@@ -603,7 +603,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, 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, 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, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.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, 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, Topic.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, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceFocus.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_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 424f11dff..19c351114 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 410338858..cb06c593e 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 e9c9f8f05..15caa2474 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
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 0979f9a58..ada559351 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
@@ -112,6 +112,10 @@ public class Bundle extends Resource implements IBaseBundle {
* 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.
*/
COLLECTION,
+ /**
+ * The bundle has been generated by a Subscription to communicate information to a client.
+ */
+ SUBSCRIPTIONNOTIFICATION,
/**
* added to help the parsers with the generic types
*/
@@ -137,6 +141,8 @@ public class Bundle extends Resource implements IBaseBundle {
return SEARCHSET;
if ("collection".equals(codeString))
return COLLECTION;
+ if ("subscription-notification".equals(codeString))
+ return SUBSCRIPTIONNOTIFICATION;
if (Configuration.isAcceptInvalidEnums())
return null;
else
@@ -153,6 +159,7 @@ public class Bundle extends Resource implements IBaseBundle {
case HISTORY: return "history";
case SEARCHSET: return "searchset";
case COLLECTION: return "collection";
+ case SUBSCRIPTIONNOTIFICATION: return "subscription-notification";
default: return "?";
}
}
@@ -167,6 +174,7 @@ public class Bundle extends Resource implements IBaseBundle {
case HISTORY: return "http://hl7.org/fhir/bundle-type";
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";
default: return "?";
}
}
@@ -181,6 +189,7 @@ public class Bundle extends Resource implements IBaseBundle {
case HISTORY: return "The bundle is a list of resources from a history interaction on a server.";
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.";
default: return "?";
}
}
@@ -195,6 +204,7 @@ public class Bundle extends Resource implements IBaseBundle {
case HISTORY: return "History List";
case SEARCHSET: return "Search Results";
case COLLECTION: return "Collection";
+ case SUBSCRIPTIONNOTIFICATION: return "Subscription Notification";
default: return "?";
}
}
@@ -223,6 +233,8 @@ public class Bundle extends Resource implements IBaseBundle {
return BundleType.SEARCHSET;
if ("collection".equals(codeString))
return BundleType.COLLECTION;
+ if ("subscription-notification".equals(codeString))
+ return BundleType.SUBSCRIPTIONNOTIFICATION;
throw new IllegalArgumentException("Unknown BundleType code '"+codeString+"'");
}
public Enumeration fromType(Base code) throws FHIRException {
@@ -251,6 +263,8 @@ public class Bundle extends Resource implements IBaseBundle {
return new Enumeration(this, BundleType.SEARCHSET);
if ("collection".equals(codeString))
return new Enumeration(this, BundleType.COLLECTION);
+ if ("subscription-notification".equals(codeString))
+ return new Enumeration(this, BundleType.SUBSCRIPTIONNOTIFICATION);
throw new FHIRException("Unknown BundleType code '"+codeString+"'");
}
public String toCode(BundleType code) {
@@ -272,6 +286,8 @@ public class Bundle extends Resource implements IBaseBundle {
return "searchset";
if (code == BundleType.COLLECTION)
return "collection";
+ if (code == BundleType.SUBSCRIPTIONNOTIFICATION)
+ return "subscription-notification";
return "?";
}
public String toSystem(BundleType code) {
@@ -2547,7 +2563,7 @@ public class Bundle extends Resource implements IBaseBundle {
* Indicates the purpose of this bundle - how it is intended to be used.
*/
@Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true)
- @Description(shortDefinition="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection", formalDefinition="Indicates the purpose of this bundle - how it is intended to be used." )
+ @Description(shortDefinition="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection | subscription-notification", formalDefinition="Indicates the purpose of this bundle - how it is intended to be used." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/bundle-type")
protected Enumeration type;
@@ -3210,17 +3226,17 @@ public class Bundle extends Resource implements IBaseBundle {
/**
* Search parameter: type
*
- * Description: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
+ * Description: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection | subscription-notification
* Type: token
* Path: Bundle.type
*
*/
- @SearchParamDefinition(name="type", path="Bundle.type", description="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection", type="token" )
+ @SearchParamDefinition(name="type", path="Bundle.type", description="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection | subscription-notification", type="token" )
public static final String SP_TYPE = "type";
/**
* Fluent Client search parameter constant for type
*
- * Description: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
+ * Description: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection | subscription-notification
* Type: token
* Path: Bundle.type
*
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 9adf51299..d3bc10453 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 4b4a74410..051d0d7e8 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 efc0d4f52..976d345d6 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 e033926cd..aae9ad081 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
@@ -1045,9 +1045,10 @@ public class CarePlan extends DomainResource {
/**
* Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.
*/
- @Child(name = "location", type = {Location.class}, order=11, min=0, max=1, modifier=false, summary=false)
+ @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 activity will occur; e.g. home, hospital, specific clinic, etc." )
- protected Reference location;
+ @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType")
+ protected CodeableReference location;
/**
* 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.
@@ -1092,7 +1093,7 @@ public class CarePlan extends DomainResource {
@Description(shortDefinition="Extra info describing activity to perform", formalDefinition="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." )
protected StringType description;
- private static final long serialVersionUID = 24430165L;
+ private static final long serialVersionUID = -1258570436L;
/**
* Constructor
@@ -1593,12 +1594,12 @@ public class CarePlan extends DomainResource {
/**
* @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 CarePlanActivityDetailComponent.location");
else if (Configuration.doAutoCreate())
- this.location = new Reference(); // cc
+ this.location = new CodeableReference(); // cc
return this.location;
}
@@ -1609,7 +1610,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(Reference value) {
+ public CarePlanActivityDetailComponent setLocation(CodeableReference value) {
this.location = value;
return this;
}
@@ -1878,7 +1879,7 @@ public class CarePlan extends DomainResource {
children.add(new Property("statusReason", "CodeableConcept", "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.", 0, 1, statusReason));
children.add(new Property("doNotPerform", "boolean", "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.", 0, 1, doNotPerform));
children.add(new Property("scheduled[x]", "Timing|Period|string", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, scheduled));
- 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("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("reported[x]", "boolean|Reference(Patient|RelatedPerson|Practitioner|PractitionerRole|Organization)", "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.", 0, 1, reported));
children.add(new Property("performer", "Reference(Practitioner|PractitionerRole|Organization|RelatedPerson|Patient|CareTeam|HealthcareService|Device)", "Identifies who's expected to be involved in the activity.", 0, java.lang.Integer.MAX_VALUE, performer));
children.add(new Property("product[x]", "CodeableConcept|Reference(Medication|Substance)", "Identifies the food, drug or other product to be consumed or supplied in the activity.", 0, 1, product));
@@ -1904,7 +1905,7 @@ public class CarePlan extends DomainResource {
case 998483799: /*scheduledTiming*/ return new Property("scheduled[x]", "Timing", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, scheduled);
case 880422094: /*scheduledPeriod*/ return new Property("scheduled[x]", "Period", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, scheduled);
case 980162334: /*scheduledString*/ return new Property("scheduled[x]", "string", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, scheduled);
- 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 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 -241505587: /*reported[x]*/ return new Property("reported[x]", "boolean|Reference(Patient|RelatedPerson|Practitioner|PractitionerRole|Organization)", "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.", 0, 1, reported);
case -427039533: /*reported*/ return new Property("reported[x]", "boolean|Reference(Patient|RelatedPerson|Practitioner|PractitionerRole|Organization)", "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.", 0, 1, reported);
case 1219992533: /*reportedBoolean*/ return new Property("reported[x]", "boolean", "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.", 0, 1, reported);
@@ -1935,7 +1936,7 @@ public class CarePlan extends DomainResource {
case 2051346646: /*statusReason*/ return this.statusReason == null ? new Base[0] : new Base[] {this.statusReason}; // CodeableConcept
case -1788508167: /*doNotPerform*/ return this.doNotPerform == null ? new Base[0] : new Base[] {this.doNotPerform}; // BooleanType
case -160710483: /*scheduled*/ return this.scheduled == null ? new Base[0] : new Base[] {this.scheduled}; // 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 -427039533: /*reported*/ return this.reported == null ? new Base[0] : new Base[] {this.reported}; // DataType
case 481140686: /*performer*/ return this.performer == null ? new Base[0] : this.performer.toArray(new Base[this.performer.size()]); // Reference
case -309474065: /*product*/ return this.product == null ? new Base[0] : new Base[] {this.product}; // DataType
@@ -1983,7 +1984,7 @@ public class CarePlan extends DomainResource {
this.scheduled = TypeConvertor.castToType(value); // DataType
return value;
case 1901043637: // location
- this.location = TypeConvertor.castToReference(value); // Reference
+ this.location = TypeConvertor.castToCodeableReference(value); // CodeableReference
return value;
case -427039533: // reported
this.reported = TypeConvertor.castToType(value); // DataType
@@ -2033,7 +2034,7 @@ public class CarePlan extends DomainResource {
} else if (name.equals("scheduled[x]")) {
this.scheduled = 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("reported[x]")) {
this.reported = TypeConvertor.castToType(value); // DataType
} else if (name.equals("performer")) {
@@ -2092,7 +2093,7 @@ public class CarePlan extends DomainResource {
case 2051346646: /*statusReason*/ return new String[] {"CodeableConcept"};
case -1788508167: /*doNotPerform*/ return new String[] {"boolean"};
case -160710483: /*scheduled*/ return new String[] {"Timing", "Period", "string"};
- case 1901043637: /*location*/ return new String[] {"Reference"};
+ case 1901043637: /*location*/ return new String[] {"CodeableReference"};
case -427039533: /*reported*/ return new String[] {"boolean", "Reference"};
case 481140686: /*performer*/ return new String[] {"Reference"};
case -309474065: /*product*/ return new String[] {"CodeableConcept", "Reference"};
@@ -2148,7 +2149,7 @@ public class CarePlan extends DomainResource {
return this.scheduled;
}
else if (name.equals("location")) {
- this.location = new Reference();
+ this.location = new CodeableReference();
return this.location;
}
else if (name.equals("reportedBoolean")) {
@@ -4073,26 +4074,6 @@ public class CarePlan extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVITY_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVITY_CODE);
- /**
- * Search parameter: activity-date
- *
- * Description: Specified date occurs within period specified by CarePlan.activity.detail.scheduled[x]
- * Type: date
- * Path: CarePlan.activity.detail.scheduled
- *
- */
- @SearchParamDefinition(name="activity-date", path="CarePlan.activity.detail.scheduled", description="Specified date occurs within period specified by CarePlan.activity.detail.scheduled[x]", type="date" )
- public static final String SP_ACTIVITY_DATE = "activity-date";
- /**
- * Fluent Client search parameter constant for activity-date
- *
- * Description: Specified date occurs within period specified by CarePlan.activity.detail.scheduled[x]
- * Type: date
- * Path: CarePlan.activity.detail.scheduled
- *
- */
- public static final ca.uhn.fhir.rest.gclient.DateClientParam ACTIVITY_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_ACTIVITY_DATE);
-
/**
* Search parameter: activity-reference
*
@@ -4119,6 +4100,46 @@ public class CarePlan extends DomainResource {
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ACTIVITY_REFERENCE = new ca.uhn.fhir.model.api.Include("CarePlan:activity-reference").toLocked();
+ /**
+ * Search parameter: activity-scheduled-date
+ *
+ * Description: Specified date occurs within period specified by CarePlan.activity.detail.scheduled[x]
+ * Type: date
+ * Path: CarePlan.activity.detail.scheduled.as(Timing) | CarePlan.activity.detail.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" )
+ 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]
+ * Type: date
+ * Path: CarePlan.activity.detail.scheduled.as(Timing) | CarePlan.activity.detail.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);
+
+ /**
+ * Search parameter: activity-scheduled-string
+ *
+ * Description: When activity is to occur
+ * Type: string
+ * Path: CarePlan.activity.detail.scheduled.as(string)
+ *
+ */
+ @SearchParamDefinition(name="activity-scheduled-string", path="CarePlan.activity.detail.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)
+ *
+ */
+ public static final ca.uhn.fhir.rest.gclient.StringClientParam ACTIVITY_SCHEDULED_STRING = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ACTIVITY_SCHEDULED_STRING);
+
/**
* Search parameter: based-on
*
@@ -4483,10 +4504,10 @@ public class CarePlan extends DomainResource {
* [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 | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ * 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 | 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" )
+ @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
@@ -4512,7 +4533,7 @@ public class CarePlan extends DomainResource {
* [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 | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ * 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);
@@ -4640,10 +4661,10 @@ public class CarePlan 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.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) | 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.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) | 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
@@ -4684,7 +4705,7 @@ public class CarePlan 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.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) | 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);
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 9eb2cb0c2..589855740 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
@@ -1582,10 +1582,10 @@ public class CareTeam extends DomainResource {
* [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 | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ * 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 | 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" )
+ @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
@@ -1611,7 +1611,7 @@ public class CareTeam extends DomainResource {
* [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 | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ * 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);
@@ -1739,10 +1739,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.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) | 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.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) | 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
@@ -1783,7 +1783,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.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) | 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);
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 b88b502b8..6c4959d57 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 f8dc21bb9..96f39bbc3 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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 6c87371e8..50705fd3b 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
@@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
-// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
+// Generated on Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
import java.util.ArrayList;
import java.util.Date;
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
new file mode 100644
index 000000000..841ab059d
--- /dev/null
+++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Citation.java
@@ -0,0 +1,10139 @@
+package org.hl7.fhir.r5.model;
+
+
+/*
+ * #%L
+ * org.hl7.fhir.r5
+ * %%
+ * Copyright (C) 2014 - 2019 Health Level 7
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the \"License\");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an \"AS IS\" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
+
+/*
+ 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 Mon, May 11, 2020 09:58+1000 for FHIR vcurrent
+
+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;
+
+/**
+ * The Citation.
+ */
+@ResourceDef(name="Citation", profile="http://hl7.org/fhir/StructureDefinition/Citation")
+public class Citation extends MetadataResource {
+
+ @Block()
+ public static class CitationVariantCitationComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * Used to describe the reason for the variant citation, such as version or subpart specification.
+ */
+ @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")
+ protected CodeableConcept type;
+
+ /**
+ * Used to describe the specific variation, such as version number or subpart specification.
+ */
+ @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;
+
+ /**
+ * 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;
+
+ /**
+ * Constructor
+ */
+ public CitationVariantCitationComponent() {
+ super();
+ }
+
+ /**
+ * @return {@link #type} (Used to describe the reason for the variant citation, such as version or subpart specification.)
+ */
+ public CodeableConcept getType() {
+ if (this.type == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationVariantCitationComponent.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 describe the reason for the variant citation, such as version or subpart specification.)
+ */
+ public CitationVariantCitationComponent 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
+ */
+ public StringType getValueElement() {
+ if (this.value == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationVariantCitationComponent.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} (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
+ */
+ public CitationVariantCitationComponent setValueElement(StringType value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * @return Used to describe the specific variation, such as version number or subpart specification.
+ */
+ 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.
+ */
+ public CitationVariantCitationComponent 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;
+ }
+
+ /**
+ * @return {@link #baseCitation} (Base citation.)
+ */
+ public Reference getBaseCitation() {
+ if (this.baseCitation == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationVariantCitationComponent.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} (Base citation.)
+ */
+ public CitationVariantCitationComponent 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));
+ }
+
+ @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);
+ 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
+ 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 3575610: // type
+ this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
+ return value;
+ 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("type")) {
+ this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
+ } else 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 3575610: return getType();
+ 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 3575610: /*type*/ return new String[] {"CodeableConcept"};
+ 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("type")) {
+ this.type = new CodeableConcept();
+ return this.type;
+ }
+ else if (name.equals("value")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.variantCitation.value");
+ }
+ else if (name.equals("baseCitation")) {
+ this.baseCitation = new Reference();
+ return this.baseCitation;
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationVariantCitationComponent copy() {
+ CitationVariantCitationComponent dst = new CitationVariantCitationComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationVariantCitationComponent dst) {
+ super.copyValues(dst);
+ dst.type = type == null ? null : type.copy();
+ 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 CitationVariantCitationComponent))
+ return false;
+ CitationVariantCitationComponent o = (CitationVariantCitationComponent) other_;
+ return compareDeep(type, o.type, true) && 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 CitationVariantCitationComponent))
+ return false;
+ CitationVariantCitationComponent o = (CitationVariantCitationComponent) other_;
+ return compareValues(value, o.value, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, value, baseCitation
+ );
+ }
+
+ public String fhirType() {
+ return "Citation.variantCitation";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationJournalComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID.
+ */
+ @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;
+
+ /**
+ * Place of publication of the journal.
+ */
+ @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;
+
+ /**
+ * 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 CitationJournalJournalIssueComponent journalIssue;
+
+ /**
+ * 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;
+
+ /**
+ * Constructor
+ */
+ public CitationJournalComponent() {
+ super();
+ }
+
+ /**
+ * @return {@link #identifier} (Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID.)
+ */
+ 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 CitationJournalComponent 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 CitationJournalComponent 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 #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
+ */
+ 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();
+ }
+
+ /**
+ * @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
+ */
+ public CitationJournalComponent setCountryElement(StringType value) {
+ this.country = value;
+ return this;
+ }
+
+ /**
+ * @return Place of publication of the journal.
+ */
+ public String getCountry() {
+ return this.country == null ? null : this.country.getValue();
+ }
+
+ /**
+ * @param value Place of publication of the journal.
+ */
+ 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;
+ }
+
+ /**
+ * @return {@link #journalIssue} (The specific issue in which the cited article resides.)
+ */
+ 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 boolean hasJournalIssue() {
+ return this.journalIssue != null && !this.journalIssue.isEmpty();
+ }
+
+ /**
+ * @param value {@link #journalIssue} (The specific issue in which the cited article resides.)
+ */
+ 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);
+ }
+ 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));
+ }
+
+ @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);
+ 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 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
+ 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 957831062: // country
+ this.country = TypeConvertor.castToString(value); // StringType
+ return value;
+ case -716835870: // journalIssue
+ this.journalIssue = (CitationJournalJournalIssueComponent) value; // CitationJournalJournalIssueComponent
+ return value;
+ case 110371416: // title
+ this.title = 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("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
+ } 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 957831062: return getCountryElement();
+ case -716835870: return getJournalIssue();
+ case 110371416: return getTitleElement();
+ 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 957831062: /*country*/ return new String[] {"string"};
+ case -716835870: /*journalIssue*/ return new String[] {};
+ case 110371416: /*title*/ return new String[] {"string"};
+ default: return super.getTypesForProperty(hash, name);
+ }
+
+ }
+
+ @Override
+ public Base addChild(String name) throws FHIRException {
+ if (name.equals("identifier")) {
+ return addIdentifier();
+ }
+ else if (name.equals("country")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.country");
+ }
+ else if (name.equals("journalIssue")) {
+ this.journalIssue = new CitationJournalJournalIssueComponent();
+ return this.journalIssue;
+ }
+ else if (name.equals("title")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.title");
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationJournalComponent copy() {
+ CitationJournalComponent dst = new CitationJournalComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationJournalComponent dst) {
+ super.copyValues(dst);
+ if (identifier != null) {
+ dst.identifier = new ArrayList();
+ for (Identifier i : identifier)
+ dst.identifier.add(i.copy());
+ };
+ dst.country = country == null ? null : country.copy();
+ dst.journalIssue = journalIssue == null ? null : journalIssue.copy();
+ dst.title = title == null ? null : title.copy();
+ }
+
+ @Override
+ public boolean equalsDeep(Base other_) {
+ if (!super.equalsDeep(other_))
+ return false;
+ if (!(other_ instanceof CitationJournalComponent))
+ 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);
+ }
+
+ @Override
+ public boolean equalsShallow(Base other_) {
+ if (!super.equalsShallow(other_))
+ return false;
+ if (!(other_ instanceof CitationJournalComponent))
+ return false;
+ CitationJournalComponent o = (CitationJournalComponent) other_;
+ return compareValues(country, o.country, true) && compareValues(title, o.title, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, country, journalIssue
+ , title);
+ }
+
+ public String fhirType() {
+ return "Citation.journal";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationJournalJournalIssueComponent 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 = {StringType.class}, 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 StringType publicationDate;
+
+ private static final long serialVersionUID = -1343937439L;
+
+ /**
+ * 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.). This is the underlying object with id, value and extensions. The accessor "getPublicationDate" gives direct access to the value
+ */
+ public StringType getPublicationDateElement() {
+ if (this.publicationDate == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationJournalJournalIssueComponent.publicationDate");
+ else if (Configuration.doAutoCreate())
+ this.publicationDate = new StringType(); // bb
+ return this.publicationDate;
+ }
+
+ public boolean hasPublicationDateElement() {
+ return this.publicationDate != null && !this.publicationDate.isEmpty();
+ }
+
+ public boolean hasPublicationDate() {
+ return this.publicationDate != null && !this.publicationDate.isEmpty();
+ }
+
+ /**
+ * @param value {@link #publicationDate} (Date on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getPublicationDate" gives direct access to the value
+ */
+ public CitationJournalJournalIssueComponent setPublicationDateElement(StringType value) {
+ this.publicationDate = value;
+ return this;
+ }
+
+ /**
+ * @return Date on which the issue of the journal was published.
+ */
+ public String getPublicationDate() {
+ return this.publicationDate == null ? null : this.publicationDate.getValue();
+ }
+
+ /**
+ * @param value Date on which the issue of the journal was published.
+ */
+ public CitationJournalJournalIssueComponent setPublicationDate(String value) {
+ if (Utilities.noString(value))
+ this.publicationDate = null;
+ else {
+ if (this.publicationDate == null)
+ this.publicationDate = new StringType();
+ this.publicationDate.setValue(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", "string", "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", "string", "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}; // StringType
+ 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 = 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("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 = 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 612116418: return getCitedMedium();
+ case -810883302: return getVolumeElement();
+ case 100509913: return getIssueElement();
+ case 1470566394: return getPublicationDateElement();
+ 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[] {"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")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.journalIssue.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) && compareValues(publicationDate, o.publicationDate, 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 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;
+ 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
+ */
+ 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);
+ }
+
+ }
+
+ @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.
+ */
+ @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 CitationPaginationComponent() {
+ 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 CitationPaginationComponent.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 CitationPaginationComponent 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 CitationPaginationComponent 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 CitationPaginationComponent.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 CitationPaginationComponent 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 CitationPaginationComponent 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 CitationPaginationComponent.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 CitationPaginationComponent 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 CitationPaginationComponent 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.pagination.pageString");
+ }
+ else if (name.equals("firstPage")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.pagination.firstPage");
+ }
+ else if (name.equals("lastPage")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.pagination.lastPage");
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationPaginationComponent copy() {
+ CitationPaginationComponent dst = new CitationPaginationComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationPaginationComponent 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 CitationPaginationComponent))
+ return false;
+ CitationPaginationComponent o = (CitationPaginationComponent) 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 CitationPaginationComponent))
+ return false;
+ CitationPaginationComponent o = (CitationPaginationComponent) 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.pagination";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationArticleUrlComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * Code the reason for different URLs, eg abstract and full-text.
+ */
+ @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")
+ protected CodeableConcept type;
+
+ /**
+ * The specific URL.
+ */
+ @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 CitationAuthorListComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * Indicates if the list includes all authors, else “et al” should be appended for display.
+ */
+ @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, else “et al” should be appended for display", formalDefinition="Indicates if the list includes all authors, else “et al” should be appended for display." )
+ protected BooleanType complete;
+
+ /**
+ * An individual entity named in the author list.
+ */
+ @Child(name = "author", type = {}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="An individual entity named in the author list", formalDefinition="An individual entity named in the author list." )
+ protected List author;
+
+ private static final long serialVersionUID = -204175482L;
+
+ /**
+ * Constructor
+ */
+ public CitationAuthorListComponent() {
+ super();
+ }
+
+ /**
+ * Constructor
+ */
+ public CitationAuthorListComponent(CitationAuthorListAuthorComponent author) {
+ super();
+ this.addAuthor(author);
+ }
+
+ /**
+ * @return {@link #complete} (Indicates if the list includes all authors, else “et al” should be appended for display.). 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 CitationAuthorListComponent.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, else “et al” should be appended for display.). This is the underlying object with id, value and extensions. The accessor "getComplete" gives direct access to the value
+ */
+ public CitationAuthorListComponent setCompleteElement(BooleanType value) {
+ this.complete = value;
+ return this;
+ }
+
+ /**
+ * @return Indicates if the list includes all authors, else “et al” should be appended for display.
+ */
+ public boolean getComplete() {
+ return this.complete == null || this.complete.isEmpty() ? false : this.complete.getValue();
+ }
+
+ /**
+ * @param value Indicates if the list includes all authors, else “et al” should be appended for display.
+ */
+ public CitationAuthorListComponent setComplete(boolean value) {
+ if (this.complete == null)
+ this.complete = new BooleanType();
+ this.complete.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #author} (An individual entity named in the author list.)
+ */
+ 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 CitationAuthorListComponent setAuthor(List theAuthor) {
+ this.author = theAuthor;
+ return this;
+ }
+
+ public boolean hasAuthor() {
+ if (this.author == null)
+ return false;
+ for (CitationAuthorListAuthorComponent item : this.author)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ public CitationAuthorListAuthorComponent addAuthor() { //3
+ CitationAuthorListAuthorComponent t = new CitationAuthorListAuthorComponent();
+ if (this.author == null)
+ this.author = new ArrayList();
+ this.author.add(t);
+ return t;
+ }
+
+ public CitationAuthorListComponent addAuthor(CitationAuthorListAuthorComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.author == null)
+ this.author = new ArrayList();
+ this.author.add(t);
+ return this;
+ }
+
+ /**
+ * @return The first repetition of repeating field {@link #author}, creating it if it does not already exist {3}
+ */
+ public CitationAuthorListAuthorComponent getAuthorFirstRep() {
+ if (getAuthor().isEmpty()) {
+ addAuthor();
+ }
+ return getAuthor().get(0);
+ }
+
+ protected void listChildren(List children) {
+ super.listChildren(children);
+ children.add(new Property("complete", "boolean", "Indicates if the list includes all authors, else “et al” should be appended for display.", 0, 1, complete));
+ children.add(new Property("author", "", "An individual entity named in the author list.", 0, java.lang.Integer.MAX_VALUE, author));
+ }
+
+ @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, else “et al” should be appended for display.", 0, 1, complete);
+ case -1406328437: /*author*/ return new Property("author", "", "An individual entity named in the author list.", 0, java.lang.Integer.MAX_VALUE, author);
+ 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 -1406328437: /*author*/ return this.author == null ? new Base[0] : this.author.toArray(new Base[this.author.size()]); // CitationAuthorListAuthorComponent
+ 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 -1406328437: // author
+ this.getAuthor().add((CitationAuthorListAuthorComponent) value); // CitationAuthorListAuthorComponent
+ 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("author")) {
+ this.getAuthor().add((CitationAuthorListAuthorComponent) 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 -1406328437: return addAuthor();
+ 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 -1406328437: /*author*/ 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.authorList.complete");
+ }
+ else if (name.equals("author")) {
+ return addAuthor();
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationAuthorListComponent copy() {
+ CitationAuthorListComponent dst = new CitationAuthorListComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationAuthorListComponent dst) {
+ super.copyValues(dst);
+ dst.complete = complete == null ? null : complete.copy();
+ if (author != null) {
+ dst.author = new ArrayList();
+ for (CitationAuthorListAuthorComponent i : author)
+ dst.author.add(i.copy());
+ };
+ }
+
+ @Override
+ public boolean equalsDeep(Base other_) {
+ if (!super.equalsDeep(other_))
+ return false;
+ if (!(other_ instanceof CitationAuthorListComponent))
+ return false;
+ CitationAuthorListComponent o = (CitationAuthorListComponent) other_;
+ return compareDeep(complete, o.complete, true) && compareDeep(author, o.author, true);
+ }
+
+ @Override
+ public boolean equalsShallow(Base other_) {
+ if (!super.equalsShallow(other_))
+ return false;
+ if (!(other_ instanceof CitationAuthorListComponent))
+ return false;
+ CitationAuthorListComponent o = (CitationAuthorListComponent) other_;
+ return compareValues(complete, o.complete, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(complete, author);
+ }
+
+ public String fhirType() {
+ return "Citation.authorList";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationAuthorListAuthorComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * Surname or single name.
+ */
+ @Child(name = "lastName", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Surname or single name", formalDefinition="Surname or single name." )
+ protected StringType lastName;
+
+ /**
+ * Remainder of name except for suffix.
+ */
+ @Child(name = "foreName", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Remainder of name except for suffix", formalDefinition="Remainder of name except for suffix." )
+ protected StringType foreName;
+
+ /**
+ * Eg 2nd, 3rd, Jr, Sr.
+ */
+ @Child(name = "suffix", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Eg 2nd, 3rd, Jr, Sr", formalDefinition="Eg 2nd, 3rd, Jr, Sr." )
+ protected StringType suffix;
+
+ /**
+ * Initials for forename.
+ */
+ @Child(name = "initials", type = {StringType.class}, order=4, 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=5, 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;
+
+ /**
+ * Author identifier, eg ORCID.
+ */
+ @Child(name = "identifier", type = {Identifier.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="Author identifier, eg ORCID", formalDefinition="Author identifier, eg ORCID." )
+ protected List identifier;
+
+ /**
+ * Organizational affiliation.
+ */
+ @Child(name = "affiliationInfo", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="Organizational affiliation", formalDefinition="Organizational affiliation." )
+ protected List affiliationInfo;
+
+ /**
+ * Physical mailing address for the author.
+ */
+ @Child(name = "address", type = {StringType.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="Physical mailing address for the author", formalDefinition="Physical mailing address for the author." )
+ protected List address;
+
+ /**
+ * Email or telephone contact methods for the author.
+ */
+ @Child(name = "telecom", type = {ContactPoint.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="Email or telephone contact methods for the author", formalDefinition="Email or telephone contact methods for the author." )
+ protected List telecom;
+
+ /**
+ * 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 = 1461164632L;
+
+ /**
+ * Constructor
+ */
+ public CitationAuthorListAuthorComponent() {
+ super();
+ }
+
+ /**
+ * @return {@link #lastName} (Surname or single name.). This is the underlying object with id, value and extensions. The accessor "getLastName" gives direct access to the value
+ */
+ public StringType getLastNameElement() {
+ if (this.lastName == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationAuthorListAuthorComponent.lastName");
+ else if (Configuration.doAutoCreate())
+ this.lastName = new StringType(); // bb
+ return this.lastName;
+ }
+
+ public boolean hasLastNameElement() {
+ return this.lastName != null && !this.lastName.isEmpty();
+ }
+
+ public boolean hasLastName() {
+ return this.lastName != null && !this.lastName.isEmpty();
+ }
+
+ /**
+ * @param value {@link #lastName} (Surname or single name.). This is the underlying object with id, value and extensions. The accessor "getLastName" gives direct access to the value
+ */
+ public CitationAuthorListAuthorComponent setLastNameElement(StringType value) {
+ this.lastName = value;
+ return this;
+ }
+
+ /**
+ * @return Surname or single name.
+ */
+ public String getLastName() {
+ return this.lastName == null ? null : this.lastName.getValue();
+ }
+
+ /**
+ * @param value Surname or single name.
+ */
+ public CitationAuthorListAuthorComponent setLastName(String value) {
+ if (Utilities.noString(value))
+ this.lastName = null;
+ else {
+ if (this.lastName == null)
+ this.lastName = new StringType();
+ this.lastName.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #foreName} (Remainder of name except for suffix.). This is the underlying object with id, value and extensions. The accessor "getForeName" gives direct access to the value
+ */
+ public StringType getForeNameElement() {
+ if (this.foreName == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationAuthorListAuthorComponent.foreName");
+ else if (Configuration.doAutoCreate())
+ this.foreName = new StringType(); // bb
+ return this.foreName;
+ }
+
+ public boolean hasForeNameElement() {
+ return this.foreName != null && !this.foreName.isEmpty();
+ }
+
+ public boolean hasForeName() {
+ return this.foreName != null && !this.foreName.isEmpty();
+ }
+
+ /**
+ * @param value {@link #foreName} (Remainder of name except for suffix.). This is the underlying object with id, value and extensions. The accessor "getForeName" gives direct access to the value
+ */
+ public CitationAuthorListAuthorComponent setForeNameElement(StringType value) {
+ this.foreName = value;
+ return this;
+ }
+
+ /**
+ * @return Remainder of name except for suffix.
+ */
+ public String getForeName() {
+ return this.foreName == null ? null : this.foreName.getValue();
+ }
+
+ /**
+ * @param value Remainder of name except for suffix.
+ */
+ public CitationAuthorListAuthorComponent setForeName(String value) {
+ if (Utilities.noString(value))
+ this.foreName = null;
+ else {
+ if (this.foreName == null)
+ this.foreName = new StringType();
+ this.foreName.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #suffix} (Eg 2nd, 3rd, Jr, Sr.). This is the underlying object with id, value and extensions. The accessor "getSuffix" gives direct access to the value
+ */
+ public StringType getSuffixElement() {
+ if (this.suffix == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationAuthorListAuthorComponent.suffix");
+ else if (Configuration.doAutoCreate())
+ this.suffix = new StringType(); // bb
+ return this.suffix;
+ }
+
+ public boolean hasSuffixElement() {
+ return this.suffix != null && !this.suffix.isEmpty();
+ }
+
+ public boolean hasSuffix() {
+ return this.suffix != null && !this.suffix.isEmpty();
+ }
+
+ /**
+ * @param value {@link #suffix} (Eg 2nd, 3rd, Jr, Sr.). This is the underlying object with id, value and extensions. The accessor "getSuffix" gives direct access to the value
+ */
+ public CitationAuthorListAuthorComponent setSuffixElement(StringType value) {
+ this.suffix = value;
+ return this;
+ }
+
+ /**
+ * @return Eg 2nd, 3rd, Jr, Sr.
+ */
+ public String getSuffix() {
+ return this.suffix == null ? null : this.suffix.getValue();
+ }
+
+ /**
+ * @param value Eg 2nd, 3rd, Jr, Sr.
+ */
+ public CitationAuthorListAuthorComponent setSuffix(String value) {
+ if (Utilities.noString(value))
+ this.suffix = null;
+ else {
+ if (this.suffix == null)
+ this.suffix = new StringType();
+ this.suffix.setValue(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 CitationAuthorListAuthorComponent.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 CitationAuthorListAuthorComponent 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 CitationAuthorListAuthorComponent 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 CitationAuthorListAuthorComponent.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 CitationAuthorListAuthorComponent 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 CitationAuthorListAuthorComponent 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} (Author identifier, eg ORCID.)
+ */
+ 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 CitationAuthorListAuthorComponent 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 CitationAuthorListAuthorComponent 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} (Organizational affiliation.)
+ */
+ 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 CitationAuthorListAuthorComponent setAffiliationInfo(List theAffiliationInfo) {
+ this.affiliationInfo = theAffiliationInfo;
+ return this;
+ }
+
+ public boolean hasAffiliationInfo() {
+ if (this.affiliationInfo == null)
+ return false;
+ for (CitationAuthorListAuthorAffiliationInfoComponent item : this.affiliationInfo)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ public CitationAuthorListAuthorAffiliationInfoComponent addAffiliationInfo() { //3
+ CitationAuthorListAuthorAffiliationInfoComponent t = new CitationAuthorListAuthorAffiliationInfoComponent();
+ if (this.affiliationInfo == null)
+ this.affiliationInfo = new ArrayList();
+ this.affiliationInfo.add(t);
+ return t;
+ }
+
+ public CitationAuthorListAuthorComponent addAffiliationInfo(CitationAuthorListAuthorAffiliationInfoComponent 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 CitationAuthorListAuthorAffiliationInfoComponent getAffiliationInfoFirstRep() {
+ if (getAffiliationInfo().isEmpty()) {
+ addAffiliationInfo();
+ }
+ return getAffiliationInfo().get(0);
+ }
+
+ /**
+ * @return {@link #address} (Physical mailing address for the author.)
+ */
+ 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 CitationAuthorListAuthorComponent setAddress(List theAddress) {
+ this.address = theAddress;
+ return this;
+ }
+
+ public boolean hasAddress() {
+ if (this.address == null)
+ return false;
+ for (StringType item : this.address)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #address} (Physical mailing address for the author.)
+ */
+ public StringType addAddressElement() {//2
+ StringType t = new StringType();
+ if (this.address == null)
+ this.address = new ArrayList();
+ this.address.add(t);
+ return t;
+ }
+
+ /**
+ * @param value {@link #address} (Physical mailing address for the author.)
+ */
+ public CitationAuthorListAuthorComponent addAddress(String value) { //1
+ StringType t = new StringType();
+ t.setValue(value);
+ if (this.address == null)
+ this.address = new ArrayList();
+ this.address.add(t);
+ return this;
+ }
+
+ /**
+ * @param value {@link #address} (Physical mailing address for the author.)
+ */
+ public boolean hasAddress(String value) {
+ if (this.address == null)
+ return false;
+ for (StringType v : this.address)
+ if (v.getValue().equals(value)) // string
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #telecom} (Email or telephone contact methods for the author.)
+ */
+ 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 CitationAuthorListAuthorComponent 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 CitationAuthorListAuthorComponent 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 #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 CitationAuthorListAuthorComponent.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 CitationAuthorListAuthorComponent 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 CitationAuthorListAuthorComponent 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 CitationAuthorListAuthorComponent.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 CitationAuthorListAuthorComponent 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 CitationAuthorListAuthorComponent 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("lastName", "string", "Surname or single name.", 0, 1, lastName));
+ children.add(new Property("foreName", "string", "Remainder of name except for suffix.", 0, 1, foreName));
+ children.add(new Property("suffix", "string", "Eg 2nd, 3rd, Jr, Sr.", 0, 1, suffix));
+ 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", "Author identifier, eg ORCID.", 0, java.lang.Integer.MAX_VALUE, identifier));
+ children.add(new Property("affiliationInfo", "", "Organizational affiliation.", 0, java.lang.Integer.MAX_VALUE, affiliationInfo));
+ children.add(new Property("address", "string", "Physical mailing address for the author.", 0, java.lang.Integer.MAX_VALUE, address));
+ children.add(new Property("telecom", "ContactPoint", "Email or telephone contact methods for the author.", 0, java.lang.Integer.MAX_VALUE, telecom));
+ 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 -1459599807: /*lastName*/ return new Property("lastName", "string", "Surname or single name.", 0, 1, lastName);
+ case 466107751: /*foreName*/ return new Property("foreName", "string", "Remainder of name except for suffix.", 0, 1, foreName);
+ case -891422895: /*suffix*/ return new Property("suffix", "string", "Eg 2nd, 3rd, Jr, Sr.", 0, 1, suffix);
+ 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", "Author identifier, eg ORCID.", 0, java.lang.Integer.MAX_VALUE, identifier);
+ case -215129154: /*affiliationInfo*/ return new Property("affiliationInfo", "", "Organizational affiliation.", 0, java.lang.Integer.MAX_VALUE, affiliationInfo);
+ case -1147692044: /*address*/ return new Property("address", "string", "Physical mailing address for the author.", 0, java.lang.Integer.MAX_VALUE, address);
+ case -1429363305: /*telecom*/ return new Property("telecom", "ContactPoint", "Email or telephone contact methods for the author.", 0, java.lang.Integer.MAX_VALUE, telecom);
+ 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 -1459599807: /*lastName*/ return this.lastName == null ? new Base[0] : new Base[] {this.lastName}; // StringType
+ case 466107751: /*foreName*/ return this.foreName == null ? new Base[0] : new Base[] {this.foreName}; // StringType
+ case -891422895: /*suffix*/ return this.suffix == null ? new Base[0] : new Base[] {this.suffix}; // StringType
+ 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()]); // CitationAuthorListAuthorAffiliationInfoComponent
+ case -1147692044: /*address*/ return this.address == null ? new Base[0] : this.address.toArray(new Base[this.address.size()]); // StringType
+ case -1429363305: /*telecom*/ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint
+ 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 -1459599807: // lastName
+ this.lastName = TypeConvertor.castToString(value); // StringType
+ return value;
+ case 466107751: // foreName
+ this.foreName = TypeConvertor.castToString(value); // StringType
+ return value;
+ case -891422895: // suffix
+ this.suffix = TypeConvertor.castToString(value); // StringType
+ 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((CitationAuthorListAuthorAffiliationInfoComponent) value); // CitationAuthorListAuthorAffiliationInfoComponent
+ return value;
+ case -1147692044: // address
+ this.getAddress().add(TypeConvertor.castToString(value)); // StringType
+ return value;
+ case -1429363305: // telecom
+ this.getTelecom().add(TypeConvertor.castToContactPoint(value)); // ContactPoint
+ 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("lastName")) {
+ this.lastName = TypeConvertor.castToString(value); // StringType
+ } else if (name.equals("foreName")) {
+ this.foreName = TypeConvertor.castToString(value); // StringType
+ } else if (name.equals("suffix")) {
+ this.suffix = TypeConvertor.castToString(value); // StringType
+ } 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((CitationAuthorListAuthorAffiliationInfoComponent) value);
+ } else if (name.equals("address")) {
+ this.getAddress().add(TypeConvertor.castToString(value));
+ } else if (name.equals("telecom")) {
+ this.getTelecom().add(TypeConvertor.castToContactPoint(value));
+ } 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 -1459599807: return getLastNameElement();
+ case 466107751: return getForeNameElement();
+ case -891422895: return getSuffixElement();
+ case 269062575: return getInitialsElement();
+ case 502871833: return getCollectiveNameElement();
+ case -1618432855: return addIdentifier();
+ case -215129154: return addAffiliationInfo();
+ case -1147692044: return addAddressElement();
+ case -1429363305: return addTelecom();
+ 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 -1459599807: /*lastName*/ return new String[] {"string"};
+ case 466107751: /*foreName*/ return new String[] {"string"};
+ case -891422895: /*suffix*/ return new String[] {"string"};
+ 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[] {"string"};
+ case -1429363305: /*telecom*/ return new String[] {"ContactPoint"};
+ 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("lastName")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.authorList.author.lastName");
+ }
+ else if (name.equals("foreName")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.authorList.author.foreName");
+ }
+ else if (name.equals("suffix")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.authorList.author.suffix");
+ }
+ else if (name.equals("initials")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.authorList.author.initials");
+ }
+ else if (name.equals("collectiveName")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.authorList.author.collectiveName");
+ }
+ else if (name.equals("identifier")) {
+ return addIdentifier();
+ }
+ else if (name.equals("affiliationInfo")) {
+ return addAffiliationInfo();
+ }
+ else if (name.equals("address")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.authorList.author.address");
+ }
+ else if (name.equals("telecom")) {
+ return addTelecom();
+ }
+ else if (name.equals("correspondingAuthor")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.authorList.author.correspondingAuthor");
+ }
+ else if (name.equals("listOrder")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.authorList.author.listOrder");
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationAuthorListAuthorComponent copy() {
+ CitationAuthorListAuthorComponent dst = new CitationAuthorListAuthorComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationAuthorListAuthorComponent dst) {
+ super.copyValues(dst);
+ dst.lastName = lastName == null ? null : lastName.copy();
+ dst.foreName = foreName == null ? null : foreName.copy();
+ dst.suffix = suffix == null ? null : suffix.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 (CitationAuthorListAuthorAffiliationInfoComponent i : affiliationInfo)
+ dst.affiliationInfo.add(i.copy());
+ };
+ if (address != null) {
+ dst.address = new ArrayList();
+ for (StringType i : address)
+ dst.address.add(i.copy());
+ };
+ if (telecom != null) {
+ dst.telecom = new ArrayList();
+ for (ContactPoint i : telecom)
+ dst.telecom.add(i.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 CitationAuthorListAuthorComponent))
+ return false;
+ CitationAuthorListAuthorComponent o = (CitationAuthorListAuthorComponent) other_;
+ return compareDeep(lastName, o.lastName, true) && compareDeep(foreName, o.foreName, true) && compareDeep(suffix, o.suffix, 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(correspondingAuthor, o.correspondingAuthor, true)
+ && compareDeep(listOrder, o.listOrder, true);
+ }
+
+ @Override
+ public boolean equalsShallow(Base other_) {
+ if (!super.equalsShallow(other_))
+ return false;
+ if (!(other_ instanceof CitationAuthorListAuthorComponent))
+ return false;
+ CitationAuthorListAuthorComponent o = (CitationAuthorListAuthorComponent) other_;
+ return compareValues(lastName, o.lastName, true) && compareValues(foreName, o.foreName, true) && compareValues(suffix, o.suffix, true)
+ && compareValues(initials, o.initials, true) && compareValues(collectiveName, o.collectiveName, true)
+ && compareValues(address, o.address, true) && compareValues(correspondingAuthor, o.correspondingAuthor, true)
+ && compareValues(listOrder, o.listOrder, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(lastName, foreName, suffix
+ , initials, collectiveName, identifier, affiliationInfo, address, telecom, correspondingAuthor
+ , listOrder);
+ }
+
+ public String fhirType() {
+ return "Citation.authorList.author";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationAuthorListAuthorAffiliationInfoComponent 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.
+ */
+ @Child(name = "role", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Role", formalDefinition="Role." )
+ 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 CitationAuthorListAuthorAffiliationInfoComponent() {
+ 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 CitationAuthorListAuthorAffiliationInfoComponent.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 CitationAuthorListAuthorAffiliationInfoComponent 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 CitationAuthorListAuthorAffiliationInfoComponent 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.). 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 CitationAuthorListAuthorAffiliationInfoComponent.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.). This is the underlying object with id, value and extensions. The accessor "getRole" gives direct access to the value
+ */
+ public CitationAuthorListAuthorAffiliationInfoComponent setRoleElement(StringType value) {
+ this.role = value;
+ return this;
+ }
+
+ /**
+ * @return Role.
+ */
+ public String getRole() {
+ return this.role == null ? null : this.role.getValue();
+ }
+
+ /**
+ * @param value Role.
+ */
+ public CitationAuthorListAuthorAffiliationInfoComponent 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 CitationAuthorListAuthorAffiliationInfoComponent 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 CitationAuthorListAuthorAffiliationInfoComponent 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.", 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.", 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.authorList.author.affiliationInfo.affiliation");
+ }
+ else if (name.equals("role")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.authorList.author.affiliationInfo.role");
+ }
+ else if (name.equals("identifier")) {
+ return addIdentifier();
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationAuthorListAuthorAffiliationInfoComponent copy() {
+ CitationAuthorListAuthorAffiliationInfoComponent dst = new CitationAuthorListAuthorAffiliationInfoComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationAuthorListAuthorAffiliationInfoComponent 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 CitationAuthorListAuthorAffiliationInfoComponent))
+ return false;
+ CitationAuthorListAuthorAffiliationInfoComponent o = (CitationAuthorListAuthorAffiliationInfoComponent) 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 CitationAuthorListAuthorAffiliationInfoComponent))
+ return false;
+ CitationAuthorListAuthorAffiliationInfoComponent o = (CitationAuthorListAuthorAffiliationInfoComponent) 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.authorList.author.affiliationInfo";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationAuthorStringComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * Used to code the producer or rule for creating the display string.
+ */
+ @Child(name = "source", type = {CodeableConcept.class}, order=1, 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/author-string-source")
+ protected CodeableConcept source;
+
+ /**
+ * The display string for the author list.
+ */
+ @Child(name = "value", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="The display string for the author list", formalDefinition="The display string for the author list." )
+ protected StringType value;
+
+ private static final long serialVersionUID = -1218527170L;
+
+ /**
+ * Constructor
+ */
+ public CitationAuthorStringComponent() {
+ super();
+ }
+
+ /**
+ * Constructor
+ */
+ public CitationAuthorStringComponent(String value) {
+ super();
+ this.setValue(value);
+ }
+
+ /**
+ * @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 CitationAuthorStringComponent.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 CitationAuthorStringComponent setSource(CodeableConcept value) {
+ this.source = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #value} (The display string for the author list.). 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 CitationAuthorStringComponent.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 display string for the author list.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
+ */
+ public CitationAuthorStringComponent setValueElement(StringType value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * @return The display string for the author list.
+ */
+ public String getValue() {
+ return this.value == null ? null : this.value.getValue();
+ }
+
+ /**
+ * @param value The display string for the author list.
+ */
+ public CitationAuthorStringComponent 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("source", "CodeableConcept", "Used to code the producer or rule for creating the display string.", 0, 1, source));
+ children.add(new Property("value", "string", "The display string for the author list.", 0, 1, value));
+ }
+
+ @Override
+ public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
+ switch (_hash) {
+ 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", "string", "The display string for the author list.", 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 -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}; // StringType
+ default: return super.getProperty(hash, name, checkValid);
+ }
+
+ }
+
+ @Override
+ public Base setProperty(int hash, String name, Base value) throws FHIRException {
+ switch (hash) {
+ case -896505829: // source
+ this.source = 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("source")) {
+ this.source = 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 -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 -896505829: /*source*/ 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("source")) {
+ this.source = new CodeableConcept();
+ return this.source;
+ }
+ else if (name.equals("value")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.authorString.value");
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationAuthorStringComponent copy() {
+ CitationAuthorStringComponent dst = new CitationAuthorStringComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationAuthorStringComponent dst) {
+ super.copyValues(dst);
+ 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 CitationAuthorStringComponent))
+ return false;
+ CitationAuthorStringComponent o = (CitationAuthorStringComponent) other_;
+ return 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 CitationAuthorStringComponent))
+ return false;
+ CitationAuthorStringComponent o = (CitationAuthorStringComponent) other_;
+ return compareValues(value, o.value, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(source, value);
+ }
+
+ public String fhirType() {
+ return "Citation.authorString";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationContributorListComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * Indicates if the list includes all 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 contributors", formalDefinition="Indicates if the list includes all contributors." )
+ protected BooleanType complete;
+
+ /**
+ * An individual entity named in the contributor list.
+ */
+ @Child(name = "contributor", type = {}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="An individual entity named in the contributor list", formalDefinition="An individual entity named in the contributor list." )
+ protected List contributor;
+
+ private static final long serialVersionUID = 1922271126L;
+
+ /**
+ * Constructor
+ */
+ public CitationContributorListComponent() {
+ super();
+ }
+
+ /**
+ * Constructor
+ */
+ public CitationContributorListComponent(CitationContributorListContributorComponent contributor) {
+ super();
+ this.addContributor(contributor);
+ }
+
+ /**
+ * @return {@link #complete} (Indicates if the list includes all 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 CitationContributorListComponent.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 contributors.). This is the underlying object with id, value and extensions. The accessor "getComplete" gives direct access to the value
+ */
+ public CitationContributorListComponent setCompleteElement(BooleanType value) {
+ this.complete = value;
+ return this;
+ }
+
+ /**
+ * @return Indicates if the list includes all contributors.
+ */
+ public boolean getComplete() {
+ return this.complete == null || this.complete.isEmpty() ? false : this.complete.getValue();
+ }
+
+ /**
+ * @param value Indicates if the list includes all contributors.
+ */
+ public CitationContributorListComponent setComplete(boolean value) {
+ if (this.complete == null)
+ this.complete = new BooleanType();
+ this.complete.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #contributor} (An individual entity named in the contributor list.)
+ */
+ public List getContributor() {
+ if (this.contributor == null)
+ this.contributor = new ArrayList();
+ return this.contributor;
+ }
+
+ /**
+ * @return Returns a reference to this
for easy method chaining
+ */
+ public CitationContributorListComponent setContributor(List theContributor) {
+ this.contributor = theContributor;
+ return this;
+ }
+
+ public boolean hasContributor() {
+ if (this.contributor == null)
+ return false;
+ for (CitationContributorListContributorComponent item : this.contributor)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ public CitationContributorListContributorComponent addContributor() { //3
+ CitationContributorListContributorComponent t = new CitationContributorListContributorComponent();
+ if (this.contributor == null)
+ this.contributor = new ArrayList();
+ this.contributor.add(t);
+ return t;
+ }
+
+ public CitationContributorListComponent addContributor(CitationContributorListContributorComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.contributor == null)
+ this.contributor = new ArrayList();
+ this.contributor.add(t);
+ return this;
+ }
+
+ /**
+ * @return The first repetition of repeating field {@link #contributor}, creating it if it does not already exist {3}
+ */
+ public CitationContributorListContributorComponent getContributorFirstRep() {
+ if (getContributor().isEmpty()) {
+ addContributor();
+ }
+ return getContributor().get(0);
+ }
+
+ protected void listChildren(List children) {
+ super.listChildren(children);
+ children.add(new Property("complete", "boolean", "Indicates if the list includes all contributors.", 0, 1, complete));
+ children.add(new Property("contributor", "", "An individual entity named in the contributor list.", 0, java.lang.Integer.MAX_VALUE, contributor));
+ }
+
+ @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 contributors.", 0, 1, complete);
+ case -1895276325: /*contributor*/ return new Property("contributor", "", "An individual entity named in the contributor list.", 0, java.lang.Integer.MAX_VALUE, contributor);
+ 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 -1895276325: /*contributor*/ return this.contributor == null ? new Base[0] : this.contributor.toArray(new Base[this.contributor.size()]); // CitationContributorListContributorComponent
+ 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 -1895276325: // contributor
+ this.getContributor().add((CitationContributorListContributorComponent) value); // CitationContributorListContributorComponent
+ 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("contributor")) {
+ this.getContributor().add((CitationContributorListContributorComponent) 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 -1895276325: return addContributor();
+ 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 -1895276325: /*contributor*/ 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.contributorList.complete");
+ }
+ else if (name.equals("contributor")) {
+ return addContributor();
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationContributorListComponent copy() {
+ CitationContributorListComponent dst = new CitationContributorListComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationContributorListComponent dst) {
+ super.copyValues(dst);
+ dst.complete = complete == null ? null : complete.copy();
+ if (contributor != null) {
+ dst.contributor = new ArrayList();
+ for (CitationContributorListContributorComponent i : contributor)
+ dst.contributor.add(i.copy());
+ };
+ }
+
+ @Override
+ public boolean equalsDeep(Base other_) {
+ if (!super.equalsDeep(other_))
+ return false;
+ if (!(other_ instanceof CitationContributorListComponent))
+ return false;
+ CitationContributorListComponent o = (CitationContributorListComponent) other_;
+ return compareDeep(complete, o.complete, true) && compareDeep(contributor, o.contributor, true)
+ ;
+ }
+
+ @Override
+ public boolean equalsShallow(Base other_) {
+ if (!super.equalsShallow(other_))
+ return false;
+ if (!(other_ instanceof CitationContributorListComponent))
+ return false;
+ CitationContributorListComponent o = (CitationContributorListComponent) other_;
+ return compareValues(complete, o.complete, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(complete, contributor);
+ }
+
+ public String fhirType() {
+ return "Citation.contributorList";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationContributorListContributorComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * Surname or single name.
+ */
+ @Child(name = "lastName", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Surname or single name", formalDefinition="Surname or single name." )
+ protected StringType lastName;
+
+ /**
+ * Remainder of name except for suffix.
+ */
+ @Child(name = "foreName", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Remainder of name except for suffix", formalDefinition="Remainder of name except for suffix." )
+ protected StringType foreName;
+
+ /**
+ * Eg 2nd, 3rd, Jr, Sr.
+ */
+ @Child(name = "suffix", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Eg 2nd, 3rd, Jr, Sr", formalDefinition="Eg 2nd, 3rd, Jr, Sr." )
+ protected StringType suffix;
+
+ /**
+ * Initials for forename.
+ */
+ @Child(name = "initials", type = {StringType.class}, order=4, 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 a contributor.
+ */
+ @Child(name = "collectiveName", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Used for collective or corporate name as a contributor", formalDefinition="Used for collective or corporate name as a contributor." )
+ protected StringType collectiveName;
+
+ /**
+ * Contributor identifier, eg ORCID.
+ */
+ @Child(name = "identifier", type = {Identifier.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="Contributor identifier, eg ORCID", formalDefinition="Contributor identifier, eg ORCID." )
+ protected List identifier;
+
+ /**
+ * The specific contributions.
+ */
+ @Child(name = "contribution", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="The specific contributions", formalDefinition="The specific contributions." )
+ @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-contribution")
+ protected List contribution;
+
+ /**
+ * Organizational affiliation.
+ */
+ @Child(name = "affiliationInfo", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="Organizational affiliation", formalDefinition="Organizational affiliation." )
+ protected List affiliationInfo;
+
+ /**
+ * Used to code order of contributors.
+ */
+ @Child(name = "listOrder", type = {PositiveIntType.class}, order=9, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Used to code order of contributors", formalDefinition="Used to code order of contributors." )
+ protected PositiveIntType listOrder;
+
+ private static final long serialVersionUID = 160410057L;
+
+ /**
+ * Constructor
+ */
+ public CitationContributorListContributorComponent() {
+ super();
+ }
+
+ /**
+ * @return {@link #lastName} (Surname or single name.). This is the underlying object with id, value and extensions. The accessor "getLastName" gives direct access to the value
+ */
+ public StringType getLastNameElement() {
+ if (this.lastName == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationContributorListContributorComponent.lastName");
+ else if (Configuration.doAutoCreate())
+ this.lastName = new StringType(); // bb
+ return this.lastName;
+ }
+
+ public boolean hasLastNameElement() {
+ return this.lastName != null && !this.lastName.isEmpty();
+ }
+
+ public boolean hasLastName() {
+ return this.lastName != null && !this.lastName.isEmpty();
+ }
+
+ /**
+ * @param value {@link #lastName} (Surname or single name.). This is the underlying object with id, value and extensions. The accessor "getLastName" gives direct access to the value
+ */
+ public CitationContributorListContributorComponent setLastNameElement(StringType value) {
+ this.lastName = value;
+ return this;
+ }
+
+ /**
+ * @return Surname or single name.
+ */
+ public String getLastName() {
+ return this.lastName == null ? null : this.lastName.getValue();
+ }
+
+ /**
+ * @param value Surname or single name.
+ */
+ public CitationContributorListContributorComponent setLastName(String value) {
+ if (Utilities.noString(value))
+ this.lastName = null;
+ else {
+ if (this.lastName == null)
+ this.lastName = new StringType();
+ this.lastName.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #foreName} (Remainder of name except for suffix.). This is the underlying object with id, value and extensions. The accessor "getForeName" gives direct access to the value
+ */
+ public StringType getForeNameElement() {
+ if (this.foreName == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationContributorListContributorComponent.foreName");
+ else if (Configuration.doAutoCreate())
+ this.foreName = new StringType(); // bb
+ return this.foreName;
+ }
+
+ public boolean hasForeNameElement() {
+ return this.foreName != null && !this.foreName.isEmpty();
+ }
+
+ public boolean hasForeName() {
+ return this.foreName != null && !this.foreName.isEmpty();
+ }
+
+ /**
+ * @param value {@link #foreName} (Remainder of name except for suffix.). This is the underlying object with id, value and extensions. The accessor "getForeName" gives direct access to the value
+ */
+ public CitationContributorListContributorComponent setForeNameElement(StringType value) {
+ this.foreName = value;
+ return this;
+ }
+
+ /**
+ * @return Remainder of name except for suffix.
+ */
+ public String getForeName() {
+ return this.foreName == null ? null : this.foreName.getValue();
+ }
+
+ /**
+ * @param value Remainder of name except for suffix.
+ */
+ public CitationContributorListContributorComponent setForeName(String value) {
+ if (Utilities.noString(value))
+ this.foreName = null;
+ else {
+ if (this.foreName == null)
+ this.foreName = new StringType();
+ this.foreName.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #suffix} (Eg 2nd, 3rd, Jr, Sr.). This is the underlying object with id, value and extensions. The accessor "getSuffix" gives direct access to the value
+ */
+ public StringType getSuffixElement() {
+ if (this.suffix == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationContributorListContributorComponent.suffix");
+ else if (Configuration.doAutoCreate())
+ this.suffix = new StringType(); // bb
+ return this.suffix;
+ }
+
+ public boolean hasSuffixElement() {
+ return this.suffix != null && !this.suffix.isEmpty();
+ }
+
+ public boolean hasSuffix() {
+ return this.suffix != null && !this.suffix.isEmpty();
+ }
+
+ /**
+ * @param value {@link #suffix} (Eg 2nd, 3rd, Jr, Sr.). This is the underlying object with id, value and extensions. The accessor "getSuffix" gives direct access to the value
+ */
+ public CitationContributorListContributorComponent setSuffixElement(StringType value) {
+ this.suffix = value;
+ return this;
+ }
+
+ /**
+ * @return Eg 2nd, 3rd, Jr, Sr.
+ */
+ public String getSuffix() {
+ return this.suffix == null ? null : this.suffix.getValue();
+ }
+
+ /**
+ * @param value Eg 2nd, 3rd, Jr, Sr.
+ */
+ public CitationContributorListContributorComponent setSuffix(String value) {
+ if (Utilities.noString(value))
+ this.suffix = null;
+ else {
+ if (this.suffix == null)
+ this.suffix = new StringType();
+ this.suffix.setValue(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 CitationContributorListContributorComponent.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 CitationContributorListContributorComponent 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 CitationContributorListContributorComponent 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 a contributor.). 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 CitationContributorListContributorComponent.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 a contributor.). This is the underlying object with id, value and extensions. The accessor "getCollectiveName" gives direct access to the value
+ */
+ public CitationContributorListContributorComponent setCollectiveNameElement(StringType value) {
+ this.collectiveName = value;
+ return this;
+ }
+
+ /**
+ * @return Used for collective or corporate name as a contributor.
+ */
+ public String getCollectiveName() {
+ return this.collectiveName == null ? null : this.collectiveName.getValue();
+ }
+
+ /**
+ * @param value Used for collective or corporate name as a contributor.
+ */
+ public CitationContributorListContributorComponent 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} (Contributor identifier, eg ORCID.)
+ */
+ 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 CitationContributorListContributorComponent 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 CitationContributorListContributorComponent 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 #contribution} (The specific contributions.)
+ */
+ 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 CitationContributorListContributorComponent 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 CitationContributorListContributorComponent 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 #affiliationInfo} (Organizational affiliation.)
+ */
+ 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 CitationContributorListContributorComponent setAffiliationInfo(List theAffiliationInfo) {
+ this.affiliationInfo = theAffiliationInfo;
+ return this;
+ }
+
+ public boolean hasAffiliationInfo() {
+ if (this.affiliationInfo == null)
+ return false;
+ for (CitationContributorListContributorAffiliationInfoComponent item : this.affiliationInfo)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ public CitationContributorListContributorAffiliationInfoComponent addAffiliationInfo() { //3
+ CitationContributorListContributorAffiliationInfoComponent t = new CitationContributorListContributorAffiliationInfoComponent();
+ if (this.affiliationInfo == null)
+ this.affiliationInfo = new ArrayList();
+ this.affiliationInfo.add(t);
+ return t;
+ }
+
+ public CitationContributorListContributorComponent addAffiliationInfo(CitationContributorListContributorAffiliationInfoComponent 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 CitationContributorListContributorAffiliationInfoComponent getAffiliationInfoFirstRep() {
+ if (getAffiliationInfo().isEmpty()) {
+ addAffiliationInfo();
+ }
+ return getAffiliationInfo().get(0);
+ }
+
+ /**
+ * @return {@link #listOrder} (Used to code order of contributors.). 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 CitationContributorListContributorComponent.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 contributors.). This is the underlying object with id, value and extensions. The accessor "getListOrder" gives direct access to the value
+ */
+ public CitationContributorListContributorComponent setListOrderElement(PositiveIntType value) {
+ this.listOrder = value;
+ return this;
+ }
+
+ /**
+ * @return Used to code order of contributors.
+ */
+ public int getListOrder() {
+ return this.listOrder == null || this.listOrder.isEmpty() ? 0 : this.listOrder.getValue();
+ }
+
+ /**
+ * @param value Used to code order of contributors.
+ */
+ public CitationContributorListContributorComponent 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("lastName", "string", "Surname or single name.", 0, 1, lastName));
+ children.add(new Property("foreName", "string", "Remainder of name except for suffix.", 0, 1, foreName));
+ children.add(new Property("suffix", "string", "Eg 2nd, 3rd, Jr, Sr.", 0, 1, suffix));
+ 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 a contributor.", 0, 1, collectiveName));
+ children.add(new Property("identifier", "Identifier", "Contributor identifier, eg ORCID.", 0, java.lang.Integer.MAX_VALUE, identifier));
+ children.add(new Property("contribution", "CodeableConcept", "The specific contributions.", 0, java.lang.Integer.MAX_VALUE, contribution));
+ children.add(new Property("affiliationInfo", "", "Organizational affiliation.", 0, java.lang.Integer.MAX_VALUE, affiliationInfo));
+ children.add(new Property("listOrder", "positiveInt", "Used to code order of contributors.", 0, 1, listOrder));
+ }
+
+ @Override
+ public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
+ switch (_hash) {
+ case -1459599807: /*lastName*/ return new Property("lastName", "string", "Surname or single name.", 0, 1, lastName);
+ case 466107751: /*foreName*/ return new Property("foreName", "string", "Remainder of name except for suffix.", 0, 1, foreName);
+ case -891422895: /*suffix*/ return new Property("suffix", "string", "Eg 2nd, 3rd, Jr, Sr.", 0, 1, suffix);
+ 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 a contributor.", 0, 1, collectiveName);
+ case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Contributor identifier, eg ORCID.", 0, java.lang.Integer.MAX_VALUE, identifier);
+ case 1375970320: /*contribution*/ return new Property("contribution", "CodeableConcept", "The specific contributions.", 0, java.lang.Integer.MAX_VALUE, contribution);
+ case -215129154: /*affiliationInfo*/ return new Property("affiliationInfo", "", "Organizational affiliation.", 0, java.lang.Integer.MAX_VALUE, affiliationInfo);
+ case -1238918832: /*listOrder*/ return new Property("listOrder", "positiveInt", "Used to code order of contributors.", 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 -1459599807: /*lastName*/ return this.lastName == null ? new Base[0] : new Base[] {this.lastName}; // StringType
+ case 466107751: /*foreName*/ return this.foreName == null ? new Base[0] : new Base[] {this.foreName}; // StringType
+ case -891422895: /*suffix*/ return this.suffix == null ? new Base[0] : new Base[] {this.suffix}; // StringType
+ 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 1375970320: /*contribution*/ return this.contribution == null ? new Base[0] : this.contribution.toArray(new Base[this.contribution.size()]); // CodeableConcept
+ case -215129154: /*affiliationInfo*/ return this.affiliationInfo == null ? new Base[0] : this.affiliationInfo.toArray(new Base[this.affiliationInfo.size()]); // CitationContributorListContributorAffiliationInfoComponent
+ 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 -1459599807: // lastName
+ this.lastName = TypeConvertor.castToString(value); // StringType
+ return value;
+ case 466107751: // foreName
+ this.foreName = TypeConvertor.castToString(value); // StringType
+ return value;
+ case -891422895: // suffix
+ this.suffix = TypeConvertor.castToString(value); // StringType
+ 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 1375970320: // contribution
+ this.getContribution().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
+ return value;
+ case -215129154: // affiliationInfo
+ this.getAffiliationInfo().add((CitationContributorListContributorAffiliationInfoComponent) value); // CitationContributorListContributorAffiliationInfoComponent
+ 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("lastName")) {
+ this.lastName = TypeConvertor.castToString(value); // StringType
+ } else if (name.equals("foreName")) {
+ this.foreName = TypeConvertor.castToString(value); // StringType
+ } else if (name.equals("suffix")) {
+ this.suffix = TypeConvertor.castToString(value); // StringType
+ } 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("contribution")) {
+ this.getContribution().add(TypeConvertor.castToCodeableConcept(value));
+ } else if (name.equals("affiliationInfo")) {
+ this.getAffiliationInfo().add((CitationContributorListContributorAffiliationInfoComponent) value);
+ } 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 -1459599807: return getLastNameElement();
+ case 466107751: return getForeNameElement();
+ case -891422895: return getSuffixElement();
+ case 269062575: return getInitialsElement();
+ case 502871833: return getCollectiveNameElement();
+ case -1618432855: return addIdentifier();
+ case 1375970320: return addContribution();
+ case -215129154: return addAffiliationInfo();
+ case -1238918832: return getListOrderElement();
+ default: return super.makeProperty(hash, name);
+ }
+
+ }
+
+ @Override
+ public String[] getTypesForProperty(int hash, String name) throws FHIRException {
+ switch (hash) {
+ case -1459599807: /*lastName*/ return new String[] {"string"};
+ case 466107751: /*foreName*/ return new String[] {"string"};
+ case -891422895: /*suffix*/ return new String[] {"string"};
+ case 269062575: /*initials*/ return new String[] {"string"};
+ case 502871833: /*collectiveName*/ return new String[] {"string"};
+ case -1618432855: /*identifier*/ return new String[] {"Identifier"};
+ case 1375970320: /*contribution*/ return new String[] {"CodeableConcept"};
+ case -215129154: /*affiliationInfo*/ return new String[] {};
+ case -1238918832: /*listOrder*/ return new String[] {"positiveInt"};
+ default: return super.getTypesForProperty(hash, name);
+ }
+
+ }
+
+ @Override
+ public Base addChild(String name) throws FHIRException {
+ if (name.equals("lastName")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorList.contributor.lastName");
+ }
+ else if (name.equals("foreName")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorList.contributor.foreName");
+ }
+ else if (name.equals("suffix")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorList.contributor.suffix");
+ }
+ else if (name.equals("initials")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorList.contributor.initials");
+ }
+ else if (name.equals("collectiveName")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorList.contributor.collectiveName");
+ }
+ else if (name.equals("identifier")) {
+ return addIdentifier();
+ }
+ else if (name.equals("contribution")) {
+ return addContribution();
+ }
+ else if (name.equals("affiliationInfo")) {
+ return addAffiliationInfo();
+ }
+ else if (name.equals("listOrder")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorList.contributor.listOrder");
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationContributorListContributorComponent copy() {
+ CitationContributorListContributorComponent dst = new CitationContributorListContributorComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationContributorListContributorComponent dst) {
+ super.copyValues(dst);
+ dst.lastName = lastName == null ? null : lastName.copy();
+ dst.foreName = foreName == null ? null : foreName.copy();
+ dst.suffix = suffix == null ? null : suffix.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 (contribution != null) {
+ dst.contribution = new ArrayList();
+ for (CodeableConcept i : contribution)
+ dst.contribution.add(i.copy());
+ };
+ if (affiliationInfo != null) {
+ dst.affiliationInfo = new ArrayList();
+ for (CitationContributorListContributorAffiliationInfoComponent i : affiliationInfo)
+ dst.affiliationInfo.add(i.copy());
+ };
+ dst.listOrder = listOrder == null ? null : listOrder.copy();
+ }
+
+ @Override
+ public boolean equalsDeep(Base other_) {
+ if (!super.equalsDeep(other_))
+ return false;
+ if (!(other_ instanceof CitationContributorListContributorComponent))
+ return false;
+ CitationContributorListContributorComponent o = (CitationContributorListContributorComponent) other_;
+ return compareDeep(lastName, o.lastName, true) && compareDeep(foreName, o.foreName, true) && compareDeep(suffix, o.suffix, true)
+ && compareDeep(initials, o.initials, true) && compareDeep(collectiveName, o.collectiveName, true)
+ && compareDeep(identifier, o.identifier, true) && compareDeep(contribution, o.contribution, true)
+ && compareDeep(affiliationInfo, o.affiliationInfo, true) && compareDeep(listOrder, o.listOrder, true)
+ ;
+ }
+
+ @Override
+ public boolean equalsShallow(Base other_) {
+ if (!super.equalsShallow(other_))
+ return false;
+ if (!(other_ instanceof CitationContributorListContributorComponent))
+ return false;
+ CitationContributorListContributorComponent o = (CitationContributorListContributorComponent) other_;
+ return compareValues(lastName, o.lastName, true) && compareValues(foreName, o.foreName, true) && compareValues(suffix, o.suffix, true)
+ && compareValues(initials, o.initials, true) && compareValues(collectiveName, o.collectiveName, true)
+ && compareValues(listOrder, o.listOrder, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(lastName, foreName, suffix
+ , initials, collectiveName, identifier, contribution, affiliationInfo, listOrder
+ );
+ }
+
+ public String fhirType() {
+ return "Citation.contributorList.contributor";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationContributorListContributorAffiliationInfoComponent 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.
+ */
+ @Child(name = "role", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Role", formalDefinition="Role." )
+ 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 CitationContributorListContributorAffiliationInfoComponent() {
+ 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 CitationContributorListContributorAffiliationInfoComponent.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 CitationContributorListContributorAffiliationInfoComponent 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 CitationContributorListContributorAffiliationInfoComponent 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.). 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 CitationContributorListContributorAffiliationInfoComponent.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.). This is the underlying object with id, value and extensions. The accessor "getRole" gives direct access to the value
+ */
+ public CitationContributorListContributorAffiliationInfoComponent setRoleElement(StringType value) {
+ this.role = value;
+ return this;
+ }
+
+ /**
+ * @return Role.
+ */
+ public String getRole() {
+ return this.role == null ? null : this.role.getValue();
+ }
+
+ /**
+ * @param value Role.
+ */
+ public CitationContributorListContributorAffiliationInfoComponent 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 CitationContributorListContributorAffiliationInfoComponent 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 CitationContributorListContributorAffiliationInfoComponent 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.", 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.", 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.contributorList.contributor.affiliationInfo.affiliation");
+ }
+ else if (name.equals("role")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorList.contributor.affiliationInfo.role");
+ }
+ else if (name.equals("identifier")) {
+ return addIdentifier();
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationContributorListContributorAffiliationInfoComponent copy() {
+ CitationContributorListContributorAffiliationInfoComponent dst = new CitationContributorListContributorAffiliationInfoComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationContributorListContributorAffiliationInfoComponent 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 CitationContributorListContributorAffiliationInfoComponent))
+ return false;
+ CitationContributorListContributorAffiliationInfoComponent o = (CitationContributorListContributorAffiliationInfoComponent) 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 CitationContributorListContributorAffiliationInfoComponent))
+ return false;
+ CitationContributorListContributorAffiliationInfoComponent o = (CitationContributorListContributorAffiliationInfoComponent) 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.contributorList.contributor.affiliationInfo";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationAlternativeFormComponent 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 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 the article is published", formalDefinition="Language in which 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;
+
+ private static final long serialVersionUID = -991805122L;
+
+ /**
+ * 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 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 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;
+ }
+
+ 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 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));
+ }
+
+ @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 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);
+ 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
+ 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;
+ 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
+ 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();
+ 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[] {};
+ 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
+ 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();
+ }
+
+ @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)
+ ;
+ }
+
+ @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);
+ }
+
+ public String fhirType() {
+ return "Citation.alternativeForm";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationAlternativeFormJournalIssueComponent 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 = {StringType.class}, 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 StringType publicationDate;
+
+ private static final long serialVersionUID = -1343937439L;
+
+ /**
+ * Constructor
+ */
+ public CitationAlternativeFormJournalIssueComponent() {
+ 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 CitationAlternativeFormJournalIssueComponent.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 CitationAlternativeFormJournalIssueComponent 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 CitationAlternativeFormJournalIssueComponent.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 CitationAlternativeFormJournalIssueComponent 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 CitationAlternativeFormJournalIssueComponent 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 CitationAlternativeFormJournalIssueComponent.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 CitationAlternativeFormJournalIssueComponent 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 CitationAlternativeFormJournalIssueComponent 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.). This is the underlying object with id, value and extensions. The accessor "getPublicationDate" gives direct access to the value
+ */
+ public StringType getPublicationDateElement() {
+ if (this.publicationDate == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssueComponent.publicationDate");
+ else if (Configuration.doAutoCreate())
+ this.publicationDate = new StringType(); // bb
+ return this.publicationDate;
+ }
+
+ public boolean hasPublicationDateElement() {
+ return this.publicationDate != null && !this.publicationDate.isEmpty();
+ }
+
+ public boolean hasPublicationDate() {
+ return this.publicationDate != null && !this.publicationDate.isEmpty();
+ }
+
+ /**
+ * @param value {@link #publicationDate} (Date on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getPublicationDate" gives direct access to the value
+ */
+ public CitationAlternativeFormJournalIssueComponent setPublicationDateElement(StringType value) {
+ this.publicationDate = value;
+ return this;
+ }
+
+ /**
+ * @return Date on which the issue of the journal was published.
+ */
+ public String getPublicationDate() {
+ return this.publicationDate == null ? null : this.publicationDate.getValue();
+ }
+
+ /**
+ * @param value Date on which the issue of the journal was published.
+ */
+ public CitationAlternativeFormJournalIssueComponent setPublicationDate(String value) {
+ if (Utilities.noString(value))
+ this.publicationDate = null;
+ else {
+ if (this.publicationDate == null)
+ this.publicationDate = new StringType();
+ this.publicationDate.setValue(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", "string", "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", "string", "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}; // StringType
+ 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 = 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("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 = 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 612116418: return getCitedMedium();
+ case -810883302: return getVolumeElement();
+ case 100509913: return getIssueElement();
+ case 1470566394: return getPublicationDateElement();
+ 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[] {"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.alternativeForm.journalIssue.volume");
+ }
+ else if (name.equals("issue")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.journalIssue.issue");
+ }
+ else if (name.equals("publicationDate")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.journalIssue.publicationDate");
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationAlternativeFormJournalIssueComponent copy() {
+ CitationAlternativeFormJournalIssueComponent dst = new CitationAlternativeFormJournalIssueComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationAlternativeFormJournalIssueComponent 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 CitationAlternativeFormJournalIssueComponent))
+ return false;
+ CitationAlternativeFormJournalIssueComponent o = (CitationAlternativeFormJournalIssueComponent) 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 CitationAlternativeFormJournalIssueComponent))
+ return false;
+ CitationAlternativeFormJournalIssueComponent o = (CitationAlternativeFormJournalIssueComponent) other_;
+ return compareValues(volume, o.volume, true) && compareValues(issue, o.issue, true) && compareValues(publicationDate, o.publicationDate, true)
+ ;
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(citedMedium, volume, issue
+ , publicationDate);
+ }
+
+ public String fhirType() {
+ return "Citation.alternativeForm.journalIssue";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationAlternativeFormPaginationComponent 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 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)
+ ;
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(medlineState, owner, pmid
+ , pmidVersion, dateCreated, dateCompleted, dateRevised, pubMedPubDate, publicationState
+ , relatedArticle);
+ }
+
+ public String fhirType() {
+ return "Citation.medlinePubMed";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationMedlinePubMedPubMedPubDateComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * PubMed Publication Status.
+ */
+ @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;
+
+ /**
+ * PubMed Publication Date.
+ */
+ @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;
+
+ private static final long serialVersionUID = 1620940147L;
+
+ /**
+ * Constructor
+ */
+ public CitationMedlinePubMedPubMedPubDateComponent() {
+ super();
+ }
+
+ /**
+ * @return {@link #publicationState} (PubMed Publication Status.)
+ */
+ public CodeableConcept getPublicationState() {
+ if (this.publicationState == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationMedlinePubMedPubMedPubDateComponent.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} (PubMed Publication Status.)
+ */
+ public CitationMedlinePubMedPubMedPubDateComponent setPublicationState(CodeableConcept value) {
+ this.publicationState = 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
+ */
+ 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();
+ }
+
+ /**
+ * @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
+ */
+ public CitationMedlinePubMedPubMedPubDateComponent setDateElement(DateTimeType value) {
+ this.date = value;
+ return this;
+ }
+
+ /**
+ * @return PubMed Publication Date.
+ */
+ public Date getDate() {
+ return this.date == null ? null : this.date.getValue();
+ }
+
+ /**
+ * @param value PubMed Publication Date.
+ */
+ public CitationMedlinePubMedPubMedPubDateComponent setDate(Date value) {
+ if (value == null)
+ this.date = null;
+ else {
+ if (this.date == null)
+ this.date = new DateTimeType();
+ this.date.setValue(value);
+ }
+ return this;
+ }
+
+ 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));
+ }
+
+ @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);
+ default: return super.getNamedProperty(_hash, _name, _checkValid);
+ }
+
+ }
+
+ @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
+ default: return super.getProperty(hash, name, checkValid);
+ }
+
+ }
+
+ @Override
+ public Base setProperty(int hash, String name, Base value) throws FHIRException {
+ switch (hash) {
+ case -1642680891: // publicationState
+ this.publicationState = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
+ return value;
+ case 3076014: // date
+ this.date = 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("publicationState")) {
+ this.publicationState = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
+ } else if (name.equals("date")) {
+ this.date = 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 -1642680891: return getPublicationState();
+ case 3076014: return getDateElement();
+ default: return super.makeProperty(hash, name);
+ }
+
+ }
+
+ @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"};
+ default: return super.getTypesForProperty(hash, name);
+ }
+
+ }
+
+ @Override
+ public Base addChild(String name) throws FHIRException {
+ if (name.equals("publicationState")) {
+ this.publicationState = new CodeableConcept();
+ return this.publicationState;
+ }
+ else if (name.equals("date")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.medlinePubMed.pubMedPubDate.date");
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationMedlinePubMedPubMedPubDateComponent copy() {
+ CitationMedlinePubMedPubMedPubDateComponent dst = new CitationMedlinePubMedPubMedPubDateComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationMedlinePubMedPubMedPubDateComponent dst) {
+ super.copyValues(dst);
+ dst.publicationState = publicationState == null ? null : publicationState.copy();
+ dst.date = date == null ? null : date.copy();
+ }
+
+ @Override
+ public boolean equalsDeep(Base other_) {
+ if (!super.equalsDeep(other_))
+ return false;
+ if (!(other_ instanceof CitationMedlinePubMedPubMedPubDateComponent))
+ return false;
+ CitationMedlinePubMedPubMedPubDateComponent o = (CitationMedlinePubMedPubMedPubDateComponent) other_;
+ return compareDeep(publicationState, o.publicationState, true) && compareDeep(date, o.date, true)
+ ;
+ }
+
+ @Override
+ public boolean equalsShallow(Base other_) {
+ if (!super.equalsShallow(other_))
+ return false;
+ if (!(other_ instanceof CitationMedlinePubMedPubMedPubDateComponent))
+ return false;
+ CitationMedlinePubMedPubMedPubDateComponent o = (CitationMedlinePubMedPubMedPubDateComponent) other_;
+ return compareValues(date, o.date, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(publicationState, date);
+ }
+
+ public String fhirType() {
+ return "Citation.medlinePubMed.pubMedPubDate";
+
+ }
+
+ }
+
+ @Block()
+ public static class CitationMedlinePubMedRelatedArticleComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * Citation Resource for related article.
+ */
+ @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;
+
+ /**
+ * Citation string for related article.
+ */
+ @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;
+
+ /**
+ * Identifier for related article.
+ */
+ @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." )
+ protected List identifier;
+
+ private static final long serialVersionUID = -704722480L;
+
+ /**
+ * Constructor
+ */
+ public CitationMedlinePubMedRelatedArticleComponent() {
+ super();
+ }
+
+ /**
+ * @return {@link #citationReference} (Citation Resource for related article.)
+ */
+ public Reference getCitationReference() {
+ if (this.citationReference == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationMedlinePubMedRelatedArticleComponent.citationReference");
+ else if (Configuration.doAutoCreate())
+ this.citationReference = new Reference(); // cc
+ return this.citationReference;
+ }
+
+ public boolean hasCitationReference() {
+ return this.citationReference != null && !this.citationReference.isEmpty();
+ }
+
+ /**
+ * @param value {@link #citationReference} (Citation Resource for related article.)
+ */
+ public CitationMedlinePubMedRelatedArticleComponent setCitationReference(Reference value) {
+ this.citationReference = 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
+ */
+ public MarkdownType getCitationMarkdownElement() {
+ if (this.citationMarkdown == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create CitationMedlinePubMedRelatedArticleComponent.citationMarkdown");
+ else if (Configuration.doAutoCreate())
+ this.citationMarkdown = new MarkdownType(); // bb
+ return this.citationMarkdown;
+ }
+
+ public boolean hasCitationMarkdownElement() {
+ return this.citationMarkdown != null && !this.citationMarkdown.isEmpty();
+ }
+
+ public boolean hasCitationMarkdown() {
+ return this.citationMarkdown != null && !this.citationMarkdown.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
+ */
+ public CitationMedlinePubMedRelatedArticleComponent setCitationMarkdownElement(MarkdownType value) {
+ this.citationMarkdown = value;
+ return this;
+ }
+
+ /**
+ * @return Citation string for related article.
+ */
+ public String getCitationMarkdown() {
+ return this.citationMarkdown == null ? null : this.citationMarkdown.getValue();
+ }
+
+ /**
+ * @param value Citation string for related article.
+ */
+ public CitationMedlinePubMedRelatedArticleComponent setCitationMarkdown(String value) {
+ if (value == null)
+ this.citationMarkdown = null;
+ else {
+ if (this.citationMarkdown == null)
+ this.citationMarkdown = new MarkdownType();
+ this.citationMarkdown.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #identifier} (Identifier for related article.)
+ */
+ 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 CitationMedlinePubMedRelatedArticleComponent 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 CitationMedlinePubMedRelatedArticleComponent 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("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));
+ }
+
+ @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);
+ default: return super.getNamedProperty(_hash, _name, _checkValid);
+ }
+
+ }
+
+ @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 -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 87795748: // citationReference
+ this.citationReference = TypeConvertor.castToReference(value); // Reference
+ return value;
+ case 279614710: // citationMarkdown
+ this.citationMarkdown = TypeConvertor.castToMarkdown(value); // MarkdownType
+ 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("citationReference")) {
+ this.citationReference = TypeConvertor.castToReference(value); // Reference
+ } else if (name.equals("citationMarkdown")) {
+ this.citationMarkdown = TypeConvertor.castToMarkdown(value); // MarkdownType
+ } 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 87795748: return getCitationReference();
+ case 279614710: return getCitationMarkdownElement();
+ case -1618432855: return addIdentifier();
+ default: return super.makeProperty(hash, name);
+ }
+
+ }
+
+ @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 -1618432855: /*identifier*/ return new String[] {"Identifier"};
+ default: return super.getTypesForProperty(hash, name);
+ }
+
+ }
+
+ @Override
+ public Base addChild(String name) throws FHIRException {
+ if (name.equals("citationReference")) {
+ this.citationReference = new Reference();
+ return this.citationReference;
+ }
+ else if (name.equals("citationMarkdown")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.medlinePubMed.relatedArticle.citationMarkdown");
+ }
+ else if (name.equals("identifier")) {
+ return addIdentifier();
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public CitationMedlinePubMedRelatedArticleComponent copy() {
+ CitationMedlinePubMedRelatedArticleComponent dst = new CitationMedlinePubMedRelatedArticleComponent();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(CitationMedlinePubMedRelatedArticleComponent dst) {
+ super.copyValues(dst);
+ dst.citationReference = citationReference == null ? null : citationReference.copy();
+ dst.citationMarkdown = citationMarkdown == null ? null : citationMarkdown.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 CitationMedlinePubMedRelatedArticleComponent))
+ return false;
+ CitationMedlinePubMedRelatedArticleComponent o = (CitationMedlinePubMedRelatedArticleComponent) other_;
+ return compareDeep(citationReference, o.citationReference, true) && compareDeep(citationMarkdown, o.citationMarkdown, true)
+ && compareDeep(identifier, o.identifier, true);
+ }
+
+ @Override
+ public boolean equalsShallow(Base other_) {
+ if (!super.equalsShallow(other_))
+ return false;
+ if (!(other_ instanceof CitationMedlinePubMedRelatedArticleComponent))
+ return false;
+ CitationMedlinePubMedRelatedArticleComponent o = (CitationMedlinePubMedRelatedArticleComponent) other_;
+ return compareValues(citationMarkdown, o.citationMarkdown, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(citationReference, citationMarkdown
+ , identifier);
+ }
+
+ public String fhirType() {
+ return "Citation.medlinePubMed.relatedArticle";
+
+ }
+
+ }
+
+ /**
+ * 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.
+ */
+ @Child(name = "url", type = {UriType.class}, order=0, min=0, max=1, modifier=false, summary=true)
+ @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;
+
+ /**
+ * 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.
+ */
+ @Child(name = "version", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
+ @Description(shortDefinition="Business version of this summary", formalDefinition="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." )
+ protected StringType version;
+
+ /**
+ * The status of this summary. Enables tracking the life-cycle of the content.
+ */
+ @Child(name = "status", type = {CodeType.class}, order=2, 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;
+
+ /**
+ * 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=3, 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." )
+ protected List useContext;
+
+ /**
+ * 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. May include DOI, PMID, PMCID, etc.
+ */
+ @Child(name = "identifier", type = {Identifier.class}, order=4, 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 summary when it is represented in other formats, or referenced in a specification, model, design or an instance. May include DOI, PMID, PMCID, etc." )
+ protected List identifier;
+
+ /**
+ * May include trial registry identifiers.
+ */
+ @Child(name = "relatedIdentifier", type = {Identifier.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
+ @Description(shortDefinition="May include trial registry identifiers", formalDefinition="May include trial registry identifiers." )
+ protected List relatedIdentifier;
+
+ /**
+ * Date Cited.
+ */
+ @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;
+
+ /**
+ * Full title of the article.
+ */
+ @Child(name = "articleTitle", type = {MarkdownType.class}, order=10, 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=11, 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=12, 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=13, 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, may include structured labels.
+ */
+ @Child(name = "abstract", type = {MarkdownType.class}, order=14, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Abstract text", formalDefinition="Abstract text, may include structured labels." )
+ protected MarkdownType abstract_;
+
+ /**
+ * Copyright information for the abstract text.
+ */
+ @Child(name = "abstractCopyright", type = {MarkdownType.class}, order=15, 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=16, 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;
+
+ /**
+ * Personal and collective author names.
+ */
+ @Child(name = "authorList", type = {}, order=17, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Personal and collective author names", formalDefinition="Personal and collective author names." )
+ protected CitationAuthorListComponent authorList;
+
+ /**
+ * Used to record a display of the author list without separate coding for each author.
+ */
+ @Child(name = "authorString", type = {}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="Used to record a display of the author list without separate coding for each author", formalDefinition="Used to record a display of the author list without separate coding for each author." )
+ protected List authorString;
+
+ /**
+ * Personal and collective contributor names.
+ */
+ @Child(name = "contributorList", type = {}, order=19, min=0, max=1, modifier=false, summary=false)
+ @Description(shortDefinition="Personal and collective contributor names", formalDefinition="Personal and collective contributor names." )
+ protected CitationContributorListComponent contributorList;
+
+ /**
+ * The language in which the article is published.
+ */
+ @Child(name = "articleLanguage", type = {CodeableConcept.class}, order=20, 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=21, 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=22, 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;
+
+ /**
+ * Used for referencing EvidenceReport resource.
+ */
+ @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 summary", formalDefinition="Used for referencing EvidenceReport resource." )
+ protected List relatedArtifact;
+
+ /**
+ * Used for general notes and annotations not coded elsewhere.
+ */
+ @Child(name = "note", type = {Annotation.class}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
+ @Description(shortDefinition="Used for general notes and annotations not coded elsewhere", formalDefinition="Used for general notes and annotations not coded elsewhere." )
+ protected List note;
+
+ /**
+ * These elements are items with values assigned by MEDLINE or PubMed management.
+ */
+ @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;
+
+ private static final long serialVersionUID = 1796797816L;
+
+ /**
+ * Constructor
+ */
+ public Citation() {
+ super();
+ }
+
+ /**
+ * Constructor
+ */
+ public Citation(PublicationStatus status) {
+ super();
+ this.setStatus(status);
+ }
+
+ /**
+ * @return {@link #url} (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.). 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 Citation.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} (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.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ */
+ public Citation setUrlElement(UriType value) {
+ this.url = value;
+ return this;
+ }
+
+ /**
+ * @return 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.
+ */
+ public String getUrl() {
+ return this.url == null ? null : this.url.getValue();
+ }
+
+ /**
+ * @param value 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.
+ */
+ public Citation 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 #version} (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.). 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 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.). 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 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.
+ */
+ public String getVersion() {
+ return this.version == null ? null : this.version.getValue();
+ }
+
+ /**
+ * @param value 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.
+ */
+ 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 #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
+ */
+ public Enumeration getStatusElement() {
+ if (this.status == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Citation.status");
+ else if (Configuration.doAutoCreate())
+ this.status = new Enumeration(new PublicationStatusEnumFactory()); // 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 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
+ */
+ public Citation setStatusElement(Enumeration value) {
+ this.status = value;
+ return this;
+ }
+
+ /**
+ * @return The status of this summary. Enables tracking the life-cycle of the content.
+ */
+ public PublicationStatus getStatus() {
+ return this.status == null ? null : this.status.getValue();
+ }
+
+ /**
+ * @param value The status of this summary. Enables tracking the life-cycle of the content.
+ */
+ public Citation setStatus(PublicationStatus value) {
+ if (this.status == null)
+ this.status = new Enumeration(new PublicationStatusEnumFactory());
+ this.status.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.)
+ */
+ public List getUseContext() {
+ if (this.useContext == null)
+ this.useContext = new ArrayList();
+ return this.useContext;
+ }
+
+ /**
+ * @return Returns a reference to this
for easy method chaining
+ */
+ public Citation setUseContext(List theUseContext) {
+ this.useContext = theUseContext;
+ return this;
+ }
+
+ public boolean hasUseContext() {
+ if (this.useContext == null)
+ return false;
+ for (UsageContext item : this.useContext)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ public UsageContext addUseContext() { //3
+ UsageContext t = new UsageContext();
+ if (this.useContext == null)
+ this.useContext = new ArrayList();
+ this.useContext.add(t);
+ return t;
+ }
+
+ public Citation addUseContext(UsageContext t) { //3
+ if (t == null)
+ return this;
+ if (this.useContext == null)
+ this.useContext = new ArrayList();
+ this.useContext.add(t);
+ return this;
+ }
+
+ /**
+ * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist {3}
+ */
+ public UsageContext getUseContextFirstRep() {
+ if (getUseContext().isEmpty()) {
+ addUseContext();
+ }
+ return getUseContext().get(0);
+ }
+
+ /**
+ * @return {@link #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. May include DOI, PMID, PMCID, etc.)
+ */
+ 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 #relatedIdentifier} (May include trial registry identifiers.)
+ */
+ 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 Citation 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 Citation 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 #dateCited} (Date Cited.). This is the underlying object with id, value and extensions. The accessor "getDateCited" gives direct access to the value
+ */
+ 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 #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;
+ }
+
+ /**
+ * @return Returns a reference to this
for easy method chaining
+ */
+ public Citation setAlternativeTitle(List theAlternativeTitle) {
+ this.alternativeTitle = theAlternativeTitle;
+ return this;
+ }
+
+ public boolean hasAlternativeTitle() {
+ if (this.alternativeTitle == null)
+ return false;
+ for (CitationAlternativeTitleComponent item : this.alternativeTitle)
+ 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);
+ return t;
+ }
+
+ public Citation addAlternativeTitle(CitationAlternativeTitleComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.alternativeTitle == null)
+ this.alternativeTitle = new ArrayList();
+ this.alternativeTitle.add(t);
+ return this;
+ }
+
+ /**
+ * @return The first repetition of repeating field {@link #alternativeTitle}, creating it if it does not already exist {3}
+ */
+ public CitationAlternativeTitleComponent getAlternativeTitleFirstRep() {
+ if (getAlternativeTitle().isEmpty()) {
+ addAlternativeTitle();
+ }
+ 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, 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, 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, may include structured labels.
+ */
+ public String getAbstract() {
+ return this.abstract_ == null ? null : this.abstract_.getValue();
+ }
+
+ /**
+ * @param value Abstract text, 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 #authorList} (Personal and collective author names.)
+ */
+ public CitationAuthorListComponent getAuthorList() {
+ if (this.authorList == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Citation.authorList");
+ else if (Configuration.doAutoCreate())
+ this.authorList = new CitationAuthorListComponent(); // cc
+ return this.authorList;
+ }
+
+ public boolean hasAuthorList() {
+ return this.authorList != null && !this.authorList.isEmpty();
+ }
+
+ /**
+ * @param value {@link #authorList} (Personal and collective author names.)
+ */
+ public Citation setAuthorList(CitationAuthorListComponent value) {
+ this.authorList = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #authorString} (Used to record a display of the author list without separate coding for each author.)
+ */
+ public List getAuthorString() {
+ if (this.authorString == null)
+ this.authorString = new ArrayList();
+ return this.authorString;
+ }
+
+ /**
+ * @return Returns a reference to this
for easy method chaining
+ */
+ public Citation setAuthorString(List theAuthorString) {
+ this.authorString = theAuthorString;
+ return this;
+ }
+
+ public boolean hasAuthorString() {
+ if (this.authorString == null)
+ return false;
+ for (CitationAuthorStringComponent item : this.authorString)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ public CitationAuthorStringComponent addAuthorString() { //3
+ CitationAuthorStringComponent t = new CitationAuthorStringComponent();
+ if (this.authorString == null)
+ this.authorString = new ArrayList();
+ this.authorString.add(t);
+ return t;
+ }
+
+ public Citation addAuthorString(CitationAuthorStringComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.authorString == null)
+ this.authorString = new ArrayList();
+ this.authorString.add(t);
+ return this;
+ }
+
+ /**
+ * @return The first repetition of repeating field {@link #authorString}, creating it if it does not already exist {3}
+ */
+ public CitationAuthorStringComponent getAuthorStringFirstRep() {
+ if (getAuthorString().isEmpty()) {
+ addAuthorString();
+ }
+ return getAuthorString().get(0);
+ }
+
+ /**
+ * @return {@link #contributorList} (Personal and collective contributor names.)
+ */
+ public CitationContributorListComponent getContributorList() {
+ if (this.contributorList == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Citation.contributorList");
+ else if (Configuration.doAutoCreate())
+ this.contributorList = new CitationContributorListComponent(); // cc
+ return this.contributorList;
+ }
+
+ public boolean hasContributorList() {
+ return this.contributorList != null && !this.contributorList.isEmpty();
+ }
+
+ /**
+ * @param value {@link #contributorList} (Personal and collective contributor names.)
+ */
+ public Citation setContributorList(CitationContributorListComponent value) {
+ this.contributorList = 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 #relatedArtifact} (Used for referencing EvidenceReport resource.)
+ */
+ 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 {@link #note} (Used for general notes and annotations not coded elsewhere.)
+ */
+ 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 Citation 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 Citation 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 #medlinePubMed} (These elements are items with values assigned by MEDLINE or PubMed management.)
+ */
+ 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();
+ }
+
+ /**
+ * @param value {@link #medlinePubMed} (These elements are items with values assigned by MEDLINE or PubMed management.)
+ */
+ public Citation setMedlinePubMed(CitationMedlinePubMedComponent value) {
+ this.medlinePubMed = value;
+ return this;
+ }
+
+ /**
+ * 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() {
+ 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 boolean hasContact() {
+ return false;
+ }
+
+ public ContactDetail addContact() { //3
+ throw new Error("The resource type \"Citation\" does not implement the property \"contact\"");
+ }
+ public Citation addContact(ContactDetail t) { //3
+ throw new Error("The resource type \"Citation\" does not implement the property \"contact\"");
+ }
+ /**
+ * @return The first repetition of repeating field {@link #contact}, 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\"");
+ }
+ /**
+ * not supported on this implementation
+ */
+ @Override
+ public int getDescriptionMax() {
+ 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
+ */
+ 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() {
+ 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 boolean hasJurisdiction() {
+ return false;
+ }
+
+ public CodeableConcept addJurisdiction() { //3
+ throw new Error("The resource type \"Citation\" does not implement the property \"jurisdiction\"");
+ }
+ public Citation addJurisdiction(CodeableConcept t) { //3
+ throw new Error("The resource type \"Citation\" does not implement the property \"jurisdiction\"");
+ }
+ /**
+ * @return The first repetition of repeating field {@link #jurisdiction}, 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\"");
+ }
+ /**
+ * 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("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("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 summary when it is represented in other formats, or referenced in a specification, model, design or an instance. May include DOI, PMID, PMCID, etc.", 0, java.lang.Integer.MAX_VALUE, identifier));
+ children.add(new Property("relatedIdentifier", "Identifier", "May include trial registry identifiers.", 0, java.lang.Integer.MAX_VALUE, relatedIdentifier));
+ 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("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, 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("authorList", "", "Personal and collective author names.", 0, 1, authorList));
+ children.add(new Property("authorString", "", "Used to record a display of the author list without separate coding for each author.", 0, java.lang.Integer.MAX_VALUE, authorString));
+ children.add(new Property("contributorList", "", "Personal and collective contributor names.", 0, 1, contributorList));
+ 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("relatedArtifact", "RelatedArtifact", "Used for referencing EvidenceReport resource.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact));
+ 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));
+ }
+
+ @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 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 -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 summary when it is represented in other formats, or referenced in a specification, model, design or an instance. May include DOI, PMID, PMCID, etc.", 0, java.lang.Integer.MAX_VALUE, identifier);
+ case -1007604940: /*relatedIdentifier*/ return new Property("relatedIdentifier", "Identifier", "May include trial registry identifiers.", 0, java.lang.Integer.MAX_VALUE, relatedIdentifier);
+ 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 -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, 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 -1501591351: /*authorList*/ return new Property("authorList", "", "Personal and collective author names.", 0, 1, authorList);
+ case 290249084: /*authorString*/ return new Property("authorString", "", "Used to record a display of the author list without separate coding for each author.", 0, java.lang.Integer.MAX_VALUE, authorString);
+ case 537567257: /*contributorList*/ return new Property("contributorList", "", "Personal and collective contributor names.", 0, 1, contributorList);
+ 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 666807069: /*relatedArtifact*/ return new Property("relatedArtifact", "RelatedArtifact", "Used for referencing EvidenceReport resource.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact);
+ 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);
+ default: return super.getNamedProperty(_hash, _name, _checkValid);
+ }
+
+ }
+
+ @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 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
+ 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 -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 -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 -1501591351: /*authorList*/ return this.authorList == null ? new Base[0] : new Base[] {this.authorList}; // CitationAuthorListComponent
+ case 290249084: /*authorString*/ return this.authorString == null ? new Base[0] : this.authorString.toArray(new Base[this.authorString.size()]); // CitationAuthorStringComponent
+ case 537567257: /*contributorList*/ return this.contributorList == null ? new Base[0] : new Base[] {this.contributorList}; // CitationContributorListComponent
+ 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 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact
+ 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
+ default: return super.getProperty(hash, name, checkValid);
+ }
+
+ }
+
+ @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 351608024: // version
+ this.version = TypeConvertor.castToString(value); // StringType
+ return value;
+ case -892481550: // status
+ value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
+ this.status = (Enumeration) value; // Enumeration
+ return value;
+ case -669707736: // useContext
+ this.getUseContext().add(TypeConvertor.castToUsageContext(value)); // UsageContext
+ return value;
+ 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 -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 -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 -1501591351: // authorList
+ this.authorList = (CitationAuthorListComponent) value; // CitationAuthorListComponent
+ return value;
+ case 290249084: // authorString
+ this.getAuthorString().add((CitationAuthorStringComponent) value); // CitationAuthorStringComponent
+ return value;
+ case 537567257: // contributorList
+ this.contributorList = (CitationContributorListComponent) value; // CitationContributorListComponent
+ 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 666807069: // relatedArtifact
+ this.getRelatedArtifact().add(TypeConvertor.castToRelatedArtifact(value)); // RelatedArtifact
+ return value;
+ case 3387378: // note
+ this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation
+ return value;
+ case -1342445201: // medlinePubMed
+ this.medlinePubMed = (CitationMedlinePubMedComponent) value; // CitationMedlinePubMedComponent
+ return value;
+ default: return super.setProperty(hash, name, value);
+ }
+
+ }
+
+ @Override
+ public Base setProperty(String name, Base value) throws FHIRException {
+ if (name.equals("url")) {
+ this.url = TypeConvertor.castToUri(value); // UriType
+ } else if (name.equals("version")) {
+ this.version = 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("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("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("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("authorList")) {
+ this.authorList = (CitationAuthorListComponent) value; // CitationAuthorListComponent
+ } else if (name.equals("authorString")) {
+ this.getAuthorString().add((CitationAuthorStringComponent) value);
+ } else if (name.equals("contributorList")) {
+ this.contributorList = (CitationContributorListComponent) value; // CitationContributorListComponent
+ } 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("relatedArtifact")) {
+ this.getRelatedArtifact().add(TypeConvertor.castToRelatedArtifact(value));
+ } else if (name.equals("note")) {
+ this.getNote().add(TypeConvertor.castToAnnotation(value));
+ } else if (name.equals("medlinePubMed")) {
+ this.medlinePubMed = (CitationMedlinePubMedComponent) value; // CitationMedlinePubMedComponent
+ } else
+ return super.setProperty(name, value);
+ return value;
+ }
+
+ @Override
+ public Base makeProperty(int hash, String name) throws FHIRException {
+ switch (hash) {
+ case 116079: return getUrlElement();
+ case 351608024: return getVersionElement();
+ case -892481550: return getStatusElement();
+ case -669707736: return addUseContext();
+ case -1618432855: return addIdentifier();
+ case -1007604940: return addRelatedIdentifier();
+ case -275034401: return getDateCitedElement();
+ case -1653134708: return getVariantCitation();
+ case 747318902: return getPublishingModel();
+ case -1419464905: return getJournal();
+ 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 -1501591351: return getAuthorList();
+ case 290249084: return addAuthorString();
+ case 537567257: return getContributorList();
+ case -1573097874: return getArticleLanguage();
+ case 2030111249: return addAlternativeForm();
+ case -281470431: return addClassifier();
+ case 666807069: return addRelatedArtifact();
+ case 3387378: return addNote();
+ case -1342445201: return getMedlinePubMed();
+ default: return super.makeProperty(hash, name);
+ }
+
+ }
+
+ @Override
+ public String[] getTypesForProperty(int hash, String name) throws FHIRException {
+ switch (hash) {
+ case 116079: /*url*/ return new String[] {"uri"};
+ case 351608024: /*version*/ return new String[] {"string"};
+ 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 -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 -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 -1501591351: /*authorList*/ return new String[] {};
+ case 290249084: /*authorString*/ return new String[] {};
+ case 537567257: /*contributorList*/ return new String[] {};
+ case -1573097874: /*articleLanguage*/ return new String[] {"CodeableConcept"};
+ case 2030111249: /*alternativeForm*/ return new String[] {};
+ case -281470431: /*classifier*/ return new String[] {"CodeableConcept"};
+ case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"};
+ case 3387378: /*note*/ return new String[] {"Annotation"};
+ case -1342445201: /*medlinePubMed*/ return new String[] {};
+ default: return super.getTypesForProperty(hash, name);
+ }
+
+ }
+
+ @Override
+ public Base addChild(String name) throws FHIRException {
+ if (name.equals("url")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.url");
+ }
+ else if (name.equals("version")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.version");
+ }
+ else if (name.equals("status")) {
+ throw new FHIRException("Cannot call addChild on a primitive type Citation.status");
+ }
+ else if (name.equals("useContext")) {
+ return addUseContext();
+ }
+ else if (name.equals("identifier")) {
+ return addIdentifier();
+ }
+ else if (name.equals("relatedIdentifier")) {
+ return addRelatedIdentifier();
+ }
+ 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("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("authorList")) {
+ this.authorList = new CitationAuthorListComponent();
+ return this.authorList;
+ }
+ else if (name.equals("authorString")) {
+ return addAuthorString();
+ }
+ else if (name.equals("contributorList")) {
+ this.contributorList = new CitationContributorListComponent();
+ return this.contributorList;
+ }
+ 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("relatedArtifact")) {
+ return addRelatedArtifact();
+ }
+ else if (name.equals("note")) {
+ return addNote();
+ }
+ else if (name.equals("medlinePubMed")) {
+ this.medlinePubMed = new CitationMedlinePubMedComponent();
+ return this.medlinePubMed;
+ }
+ else
+ return super.addChild(name);
+ }
+
+ public String fhirType() {
+ return "Citation";
+
+ }
+
+ public Citation copy() {
+ Citation dst = new Citation();
+ copyValues(dst);
+ return dst;
+ }
+
+ public void copyValues(Citation dst) {
+ super.copyValues(dst);
+ dst.url = url == null ? null : url.copy();
+ dst.version = version == null ? null : version.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