From a159ce7db5f49dee37630c12b66c3706c33e1384 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 27 Sep 2023 05:48:36 +1000 Subject: [PATCH] Add removeChild to generated model --- .../java/org/hl7/fhir/r5/model/Account.java | 132 +++- .../hl7/fhir/r5/model/ActivityDefinition.java | 140 +++- .../hl7/fhir/r5/model/ActorDefinition.java | 55 +- .../java/org/hl7/fhir/r5/model/Address.java | 31 +- .../model/AdministrableProductDefinition.java | 90 ++- .../org/hl7/fhir/r5/model/AdverseEvent.java | 130 +++- .../hl7/fhir/r5/model/AllergyIntolerance.java | 74 +- .../org/hl7/fhir/r5/model/Annotation.java | 15 +- .../org/hl7/fhir/r5/model/Appointment.java | 166 ++++- .../fhir/r5/model/AppointmentResponse.java | 34 +- .../hl7/fhir/r5/model/ArtifactAssessment.java | 61 +- .../org/hl7/fhir/r5/model/Attachment.java | 35 +- .../org/hl7/fhir/r5/model/AuditEvent.java | 116 +++- .../org/hl7/fhir/r5/model/Availability.java | 40 +- .../hl7/fhir/r5/model/BackboneElement.java | 11 +- .../org/hl7/fhir/r5/model/BackboneType.java | 11 +- .../main/java/org/hl7/fhir/r5/model/Base.java | 32 +- .../java/org/hl7/fhir/r5/model/Basic.java | 19 +- .../java/org/hl7/fhir/r5/model/Binary.java | 15 +- .../r5/model/BiologicallyDerivedProduct.java | 59 +- .../BiologicallyDerivedProductDispense.java | 53 +- .../org/hl7/fhir/r5/model/BodyStructure.java | 68 +- .../java/org/hl7/fhir/r5/model/Bundle.java | 106 ++- .../hl7/fhir/r5/model/CanonicalResource.java | 7 +- .../fhir/r5/model/CapabilityStatement.java | 287 +++++++- .../java/org/hl7/fhir/r5/model/CarePlan.java | 70 +- .../java/org/hl7/fhir/r5/model/CareTeam.java | 47 +- .../org/hl7/fhir/r5/model/ChargeItem.java | 73 +- .../fhir/r5/model/ChargeItemDefinition.java | 86 ++- .../java/org/hl7/fhir/r5/model/Citation.java | 373 +++++++++- .../java/org/hl7/fhir/r5/model/Claim.java | 356 +++++++++- .../org/hl7/fhir/r5/model/ClaimResponse.java | 383 ++++++++++- .../hl7/fhir/r5/model/ClinicalImpression.java | 59 +- .../fhir/r5/model/ClinicalUseDefinition.java | 137 +++- .../org/hl7/fhir/r5/model/CodeSystem.java | 163 ++++- .../hl7/fhir/r5/model/CodeableConcept.java | 13 +- .../hl7/fhir/r5/model/CodeableReference.java | 13 +- .../java/org/hl7/fhir/r5/model/Coding.java | 19 +- .../org/hl7/fhir/r5/model/Communication.java | 64 +- .../fhir/r5/model/CommunicationRequest.java | 65 +- .../fhir/r5/model/CompartmentDefinition.java | 60 +- .../org/hl7/fhir/r5/model/Composition.java | 97 ++- .../org/hl7/fhir/r5/model/ConceptMap.java | 207 +++++- .../java/org/hl7/fhir/r5/model/Condition.java | 65 +- .../fhir/r5/model/ConditionDefinition.java | 127 +++- .../java/org/hl7/fhir/r5/model/Consent.java | 129 +++- .../org/hl7/fhir/r5/model/ContactDetail.java | 13 +- .../org/hl7/fhir/r5/model/ContactPoint.java | 21 +- .../java/org/hl7/fhir/r5/model/Contract.java | 370 +++++++++- .../org/hl7/fhir/r5/model/Contributor.java | 16 +- .../java/org/hl7/fhir/r5/model/Coverage.java | 107 ++- .../r5/model/CoverageEligibilityRequest.java | 114 ++- .../r5/model/CoverageEligibilityResponse.java | 129 +++- .../hl7/fhir/r5/model/DataRequirement.java | 84 ++- .../org/hl7/fhir/r5/model/DetectedIssue.java | 65 +- .../java/org/hl7/fhir/r5/model/Device.java | 147 +++- .../hl7/fhir/r5/model/DeviceAssociation.java | 40 +- .../hl7/fhir/r5/model/DeviceDefinition.java | 281 +++++++- .../org/hl7/fhir/r5/model/DeviceDispense.java | 63 +- .../org/hl7/fhir/r5/model/DeviceMetric.java | 44 +- .../org/hl7/fhir/r5/model/DeviceRequest.java | 75 +- .../org/hl7/fhir/r5/model/DeviceUsage.java | 55 +- .../hl7/fhir/r5/model/DiagnosticReport.java | 74 +- .../hl7/fhir/r5/model/DocumentReference.java | 101 ++- .../org/hl7/fhir/r5/model/DomainResource.java | 17 +- .../java/org/hl7/fhir/r5/model/Dosage.java | 50 +- .../java/org/hl7/fhir/r5/model/Element.java | 13 +- .../hl7/fhir/r5/model/ElementDefinition.java | 226 +++++- .../java/org/hl7/fhir/r5/model/Encounter.java | 136 +++- .../hl7/fhir/r5/model/EncounterHistory.java | 47 +- .../java/org/hl7/fhir/r5/model/Endpoint.java | 45 +- .../hl7/fhir/r5/model/EnrollmentRequest.java | 24 +- .../hl7/fhir/r5/model/EnrollmentResponse.java | 27 +- .../org/hl7/fhir/r5/model/EpisodeOfCare.java | 70 +- .../hl7/fhir/r5/model/EventDefinition.java | 70 +- .../java/org/hl7/fhir/r5/model/Evidence.java | 208 +++++- .../org/hl7/fhir/r5/model/EvidenceReport.java | 131 +++- .../hl7/fhir/r5/model/EvidenceVariable.java | 165 ++++- .../hl7/fhir/r5/model/ExampleScenario.java | 191 ++++- .../fhir/r5/model/ExplanationOfBenefit.java | 650 +++++++++++++++++- .../org/hl7/fhir/r5/model/Expression.java | 19 +- .../fhir/r5/model/ExtendedContactDetail.java | 21 +- .../java/org/hl7/fhir/r5/model/Extension.java | 13 +- .../fhir/r5/model/FamilyMemberHistory.java | 93 ++- .../main/java/org/hl7/fhir/r5/model/Flag.java | 26 +- .../org/hl7/fhir/r5/model/FormularyItem.java | 16 +- .../org/hl7/fhir/r5/model/GenomicStudy.java | 129 +++- .../main/java/org/hl7/fhir/r5/model/Goal.java | 55 +- .../hl7/fhir/r5/model/GraphDefinition.java | 111 ++- .../java/org/hl7/fhir/r5/model/Group.java | 61 +- .../hl7/fhir/r5/model/GuidanceResponse.java | 38 +- .../hl7/fhir/r5/model/HealthcareService.java | 66 +- .../java/org/hl7/fhir/r5/model/HumanName.java | 24 +- .../org/hl7/fhir/r5/model/Identifier.java | 22 +- .../hl7/fhir/r5/model/ImagingSelection.java | 98 ++- .../org/hl7/fhir/r5/model/ImagingStudy.java | 103 ++- .../org/hl7/fhir/r5/model/Immunization.java | 118 +++- .../fhir/r5/model/ImmunizationEvaluation.java | 36 +- .../r5/model/ImmunizationRecommendation.java | 61 +- .../fhir/r5/model/ImplementationGuide.java | 223 +++++- .../org/hl7/fhir/r5/model/Ingredient.java | 91 ++- .../org/hl7/fhir/r5/model/InsurancePlan.java | 146 +++- .../org/hl7/fhir/r5/model/InventoryItem.java | 116 +++- .../hl7/fhir/r5/model/InventoryReport.java | 59 +- .../java/org/hl7/fhir/r5/model/Invoice.java | 72 +- .../java/org/hl7/fhir/r5/model/Library.java | 76 +- .../java/org/hl7/fhir/r5/model/Linkage.java | 27 +- .../org/hl7/fhir/r5/model/ListResource.java | 52 +- .../java/org/hl7/fhir/r5/model/Location.java | 60 +- .../r5/model/ManufacturedItemDefinition.java | 75 +- .../hl7/fhir/r5/model/MarketingStatus.java | 19 +- .../java/org/hl7/fhir/r5/model/Measure.java | 220 +++++- .../org/hl7/fhir/r5/model/MeasureReport.java | 144 +++- .../org/hl7/fhir/r5/model/Medication.java | 52 +- .../r5/model/MedicationAdministration.java | 82 ++- .../hl7/fhir/r5/model/MedicationDispense.java | 90 ++- .../fhir/r5/model/MedicationKnowledge.java | 274 +++++++- .../hl7/fhir/r5/model/MedicationRequest.java | 125 +++- .../fhir/r5/model/MedicationStatement.java | 55 +- .../r5/model/MedicinalProductDefinition.java | 154 ++++- .../hl7/fhir/r5/model/MessageDefinition.java | 90 ++- .../org/hl7/fhir/r5/model/MessageHeader.java | 75 +- .../main/java/org/hl7/fhir/r5/model/Meta.java | 21 +- .../hl7/fhir/r5/model/MetadataResource.java | 7 +- .../hl7/fhir/r5/model/MolecularSequence.java | 85 ++- .../hl7/fhir/r5/model/MonetaryComponent.java | 18 +- .../java/org/hl7/fhir/r5/model/Money.java | 13 +- .../org/hl7/fhir/r5/model/NamingSystem.java | 93 ++- .../java/org/hl7/fhir/r5/model/Narrative.java | 14 +- .../hl7/fhir/r5/model/NutritionIntake.java | 93 ++- .../org/hl7/fhir/r5/model/NutritionOrder.java | 206 +++++- .../hl7/fhir/r5/model/NutritionProduct.java | 84 ++- .../org/hl7/fhir/r5/model/Observation.java | 116 +++- .../fhir/r5/model/ObservationDefinition.java | 134 +++- .../fhir/r5/model/OperationDefinition.java | 144 +++- .../hl7/fhir/r5/model/OperationOutcome.java | 32 +- .../fhir/r5/model/OrderedDistribution.java | 32 +- .../org/hl7/fhir/r5/model/Organization.java | 44 +- .../r5/model/OrganizationAffiliation.java | 33 +- .../r5/model/PackagedProductDefinition.java | 101 ++- .../fhir/r5/model/ParameterDefinition.java | 25 +- .../org/hl7/fhir/r5/model/Parameters.java | 26 +- .../java/org/hl7/fhir/r5/model/Patient.java | 87 ++- .../org/hl7/fhir/r5/model/PaymentNotice.java | 34 +- .../fhir/r5/model/PaymentReconciliation.java | 114 ++- .../java/org/hl7/fhir/r5/model/Period.java | 13 +- .../org/hl7/fhir/r5/model/Permission.java | 92 ++- .../java/org/hl7/fhir/r5/model/Person.java | 59 +- .../org/hl7/fhir/r5/model/PlanDefinition.java | 300 +++++++- .../org/hl7/fhir/r5/model/Practitioner.java | 58 +- .../hl7/fhir/r5/model/PractitionerRole.java | 37 +- .../org/hl7/fhir/r5/model/PrimitiveType.java | 11 +- .../java/org/hl7/fhir/r5/model/Procedure.java | 92 ++- .../hl7/fhir/r5/model/ProdCharacteristic.java | 31 +- .../hl7/fhir/r5/model/ProductShelfLife.java | 15 +- .../org/hl7/fhir/r5/model/Provenance.java | 64 +- .../java/org/hl7/fhir/r5/model/Quantity.java | 20 +- .../org/hl7/fhir/r5/model/Questionnaire.java | 139 +++- .../fhir/r5/model/QuestionnaireResponse.java | 60 +- .../java/org/hl7/fhir/r5/model/Range.java | 13 +- .../java/org/hl7/fhir/r5/model/Ratio.java | 13 +- .../org/hl7/fhir/r5/model/RatioRange.java | 15 +- .../java/org/hl7/fhir/r5/model/Reference.java | 17 +- .../fhir/r5/model/RegulatedAuthorization.java | 56 +- .../hl7/fhir/r5/model/RelatedArtifact.java | 31 +- .../org/hl7/fhir/r5/model/RelatedPerson.java | 45 +- .../fhir/r5/model/RequestOrchestration.java | 201 +++++- .../org/hl7/fhir/r5/model/Requirements.java | 80 ++- .../org/hl7/fhir/r5/model/ResearchStudy.java | 177 ++++- .../hl7/fhir/r5/model/ResearchSubject.java | 47 +- .../java/org/hl7/fhir/r5/model/Resource.java | 17 +- .../org/hl7/fhir/r5/model/RiskAssessment.java | 61 +- .../org/hl7/fhir/r5/model/SampledData.java | 29 +- .../java/org/hl7/fhir/r5/model/Schedule.java | 27 +- .../hl7/fhir/r5/model/SearchParameter.java | 89 ++- .../org/hl7/fhir/r5/model/ServiceRequest.java | 109 ++- .../java/org/hl7/fhir/r5/model/Signature.java | 23 +- .../main/java/org/hl7/fhir/r5/model/Slot.java | 32 +- .../java/org/hl7/fhir/r5/model/Specimen.java | 107 ++- .../hl7/fhir/r5/model/SpecimenDefinition.java | 141 +++- .../java/org/hl7/fhir/r5/model/Statistic.java | 117 +++- .../fhir/r5/model/StructureDefinition.java | 116 +++- .../org/hl7/fhir/r5/model/StructureMap.java | 207 +++++- .../org/hl7/fhir/r5/model/Subscription.java | 75 +- .../hl7/fhir/r5/model/SubscriptionStatus.java | 40 +- .../hl7/fhir/r5/model/SubscriptionTopic.java | 144 +++- .../java/org/hl7/fhir/r5/model/Substance.java | 39 +- .../hl7/fhir/r5/model/SubstanceAmount.java | 28 +- .../fhir/r5/model/SubstanceDefinition.java | 254 ++++++- .../fhir/r5/model/SubstanceNucleicAcid.java | 70 +- .../hl7/fhir/r5/model/SubstancePolymer.java | 109 ++- .../hl7/fhir/r5/model/SubstanceProtein.java | 40 +- .../model/SubstanceReferenceInformation.java | 66 +- .../r5/model/SubstanceSourceMaterial.java | 123 +++- .../org/hl7/fhir/r5/model/SupplyDelivery.java | 43 +- .../org/hl7/fhir/r5/model/SupplyRequest.java | 54 +- .../main/java/org/hl7/fhir/r5/model/Task.java | 124 +++- .../r5/model/TerminologyCapabilities.java | 190 ++++- .../java/org/hl7/fhir/r5/model/TestPlan.java | 145 +++- .../org/hl7/fhir/r5/model/TestReport.java | 150 +++- .../org/hl7/fhir/r5/model/TestScript.java | 368 +++++++++- .../java/org/hl7/fhir/r5/model/Timing.java | 56 +- .../java/org/hl7/fhir/r5/model/Transport.java | 111 ++- .../hl7/fhir/r5/model/TriggerDefinition.java | 24 +- .../org/hl7/fhir/r5/model/UsageContext.java | 13 +- .../java/org/hl7/fhir/r5/model/ValueSet.java | 253 ++++++- .../hl7/fhir/r5/model/VerificationResult.java | 95 ++- .../fhir/r5/model/VirtualServiceDetail.java | 19 +- .../hl7/fhir/r5/model/VisionPrescription.java | 74 +- 209 files changed, 18563 insertions(+), 210 deletions(-) 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 084c1fab0..4b59c56e1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Account.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Account.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -356,6 +356,17 @@ A coverage may only be responsible for specific types of charges, and the sequen return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("coverage")) { + this.coverage = null; + } else if (name.equals("priority")) { + this.priority = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -624,6 +635,19 @@ A coverage may only be responsible for specific types of charges, and the sequen return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("party")) { + this.party = null; + } else if (name.equals("onHold")) { + this.onHold = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1123,6 +1147,25 @@ A coverage may only be responsible for specific types of charges, and the sequen return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("condition")) { + this.condition = null; + } else if (name.equals("dateOfDiagnosis")) { + this.dateOfDiagnosis = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("onAdmission")) { + this.onAdmission = null; + } else if (name.equals("packageCode")) { + this.getPackageCode().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1657,6 +1700,25 @@ A coverage may only be responsible for specific types of charges, and the sequen return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("dateOfService")) { + this.dateOfService = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("packageCode")) { + this.getPackageCode().remove(value); + } else if (name.equals("device")) { + this.getDevice().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1906,6 +1968,17 @@ A coverage may only be responsible for specific types of charges, and the sequen return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("relationship")) { + this.relationship = null; + } else if (name.equals("account")) { + this.account = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2217,6 +2290,21 @@ A coverage may only be responsible for specific types of charges, and the sequen return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("aggregate")) { + this.aggregate = null; + } else if (name.equals("term")) { + this.term = null; + } else if (name.equals("estimate")) { + this.estimate = null; + } else if (name.equals("amount")) { + this.amount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3358,6 +3446,48 @@ A coverage may only be responsible for specific types of charges, and the sequen return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new AccountStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("billingStatus")) { + this.billingStatus = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("subject")) { + this.getSubject().remove(value); + } else if (name.equals("servicePeriod")) { + this.servicePeriod = null; + } else if (name.equals("coverage")) { + this.getCoverage().add((CoverageComponent) value); + } else if (name.equals("owner")) { + this.owner = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("guarantor")) { + this.getGuarantor().add((GuarantorComponent) value); + } else if (name.equals("diagnosis")) { + this.getDiagnosis().add((AccountDiagnosisComponent) value); + } else if (name.equals("procedure")) { + this.getProcedure().add((AccountProcedureComponent) value); + } else if (name.equals("relatedAccount")) { + this.getRelatedAccount().add((AccountRelatedAccountComponent) value); + } else if (name.equals("currency")) { + this.currency = null; + } else if (name.equals("balance")) { + this.getBalance().add((AccountBalanceComponent) value); + } else if (name.equals("calculatedAt")) { + this.calculatedAt = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 cda7516fc..0f753a34f 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -685,6 +685,24 @@ public class ActivityDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("typeCanonical")) { + this.typeCanonical = null; + } else if (name.equals("typeReference")) { + this.typeReference = null; + } else if (name.equals("role")) { + this.role = null; + } else if (name.equals("function")) { + this.function = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -937,6 +955,17 @@ public class ActivityDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("path")) { + this.path = null; + } else if (name.equals("expression")) { + this.expression = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4286,6 +4315,115 @@ public class ActivityDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("subtitle")) { + this.subtitle = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("subject[x]")) { + this.subject = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("usage")) { + this.usage = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("topic")) { + this.getTopic().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("library")) { + this.getLibrary().remove(value); + } else if (name.equals("kind")) { + value = new RequestResourceTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.kind = (Enumeration) value; // Enumeration + } else if (name.equals("profile")) { + this.profile = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("intent")) { + value = new RequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("doNotPerform")) { + this.doNotPerform = null; + } else if (name.equals("timing[x]")) { + this.timing = null; + } else if (name.equals("asNeeded[x]")) { + this.asNeeded = null; + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("participant")) { + this.getParticipant().add((ActivityDefinitionParticipantComponent) value); + } else if (name.equals("product[x]")) { + this.product = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("dosage")) { + this.getDosage().remove(value); + } else if (name.equals("bodySite")) { + this.getBodySite().remove(value); + } else if (name.equals("specimenRequirement")) { + this.getSpecimenRequirement().remove(value); + } else if (name.equals("observationRequirement")) { + this.getObservationRequirement().remove(value); + } else if (name.equals("observationResultRequirement")) { + this.getObservationResultRequirement().remove(value); + } else if (name.equals("transform")) { + this.transform = null; + } else if (name.equals("dynamicValue")) { + this.getDynamicValue().add((ActivityDefinitionDynamicValueComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ActorDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ActorDefinition.java index bf1ba4d63..633475e53 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ActorDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ActorDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1555,6 +1555,59 @@ public class ActorDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("type")) { + value = new ExampleScenarioActorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("documentation")) { + this.documentation = null; + } else if (name.equals("reference")) { + this.getReference().remove(value); + } else if (name.equals("capabilities")) { + this.capabilities = null; + } else if (name.equals("derivedFrom")) { + this.getDerivedFrom().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 013cf192b..b27953eed 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -985,6 +985,35 @@ public class Address extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("use")) { + value = new AddressUseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.use = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + value = new AddressTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("line")) { + this.getLine().remove(value); + } else if (name.equals("city")) { + this.city = null; + } else if (name.equals("district")) { + this.district = null; + } else if (name.equals("state")) { + this.state = null; + } else if (name.equals("postalCode")) { + this.postalCode = null; + } else if (name.equals("country")) { + this.country = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 215719c7f..4ba7fcb35 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -336,6 +336,19 @@ public class AdministrableProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("status")) { + this.status = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -803,6 +816,27 @@ public class AdministrableProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("firstDose")) { + this.firstDose = null; + } else if (name.equals("maxSingleDose")) { + this.maxSingleDose = null; + } else if (name.equals("maxDosePerDay")) { + this.maxDosePerDay = null; + } else if (name.equals("maxDosePerTreatmentPeriod")) { + this.maxDosePerTreatmentPeriod = null; + } else if (name.equals("maxTreatmentPeriod")) { + this.maxTreatmentPeriod = null; + } else if (name.equals("targetSpecies")) { + this.getTargetSpecies().add((AdministrableProductDefinitionRouteOfAdministrationTargetSpeciesComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1084,6 +1118,17 @@ public class AdministrableProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("withdrawalPeriod")) { + this.getWithdrawalPeriod().add((AdministrableProductDefinitionRouteOfAdministrationTargetSpeciesWithdrawalPeriodComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1363,6 +1408,19 @@ public class AdministrableProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("tissue")) { + this.tissue = null; + } else if (name.equals("value")) { + this.value = null; + } else if (name.equals("supportingInformation")) { + this.supportingInformation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2156,6 +2214,36 @@ public class AdministrableProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("formOf")) { + this.getFormOf().remove(value); + } else if (name.equals("administrableDoseForm")) { + this.administrableDoseForm = null; + } else if (name.equals("unitOfPresentation")) { + this.unitOfPresentation = null; + } else if (name.equals("producedFrom")) { + this.getProducedFrom().remove(value); + } else if (name.equals("ingredient")) { + this.getIngredient().remove(value); + } else if (name.equals("device")) { + this.device = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("property")) { + this.getProperty().add((AdministrableProductDefinitionPropertyComponent) value); + } else if (name.equals("routeOfAdministration")) { + this.getRouteOfAdministration().add((AdministrableProductDefinitionRouteOfAdministrationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 b346f1373..f8f678645 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -410,6 +410,17 @@ public class AdverseEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -649,6 +660,17 @@ public class AdverseEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("instance[x]")) { + this.instance = null; + } else if (name.equals("causality")) { + this.causality = (AdverseEventSuspectEntityCausalityComponent) value; // AdverseEventSuspectEntityCausalityComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -896,6 +918,19 @@ public class AdverseEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("assessmentMethod")) { + this.assessmentMethod = null; + } else if (name.equals("entityRelatedness")) { + this.entityRelatedness = null; + } else if (name.equals("author")) { + this.author = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1106,6 +1141,15 @@ public class AdverseEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item[x]")) { + this.item = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1305,6 +1349,15 @@ public class AdverseEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item[x]")) { + this.item = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1504,6 +1557,15 @@ public class AdverseEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item[x]")) { + this.item = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1703,6 +1765,15 @@ public class AdverseEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item[x]")) { + this.item = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3285,6 +3356,63 @@ public class AdverseEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new AdverseEventStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("actuality")) { + value = new AdverseEventActualityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.actuality = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("detected")) { + this.detected = null; + } else if (name.equals("recordedDate")) { + this.recordedDate = null; + } else if (name.equals("resultingEffect")) { + this.getResultingEffect().remove(value); + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("seriousness")) { + this.seriousness = null; + } else if (name.equals("outcome")) { + this.getOutcome().remove(value); + } else if (name.equals("recorder")) { + this.recorder = null; + } else if (name.equals("participant")) { + this.getParticipant().add((AdverseEventParticipantComponent) value); + } else if (name.equals("study")) { + this.getStudy().remove(value); + } else if (name.equals("expectedInResearchStudy")) { + this.expectedInResearchStudy = null; + } else if (name.equals("suspectEntity")) { + this.getSuspectEntity().add((AdverseEventSuspectEntityComponent) value); + } else if (name.equals("contributingFactor")) { + this.getContributingFactor().add((AdverseEventContributingFactorComponent) value); + } else if (name.equals("preventiveAction")) { + this.getPreventiveAction().add((AdverseEventPreventiveActionComponent) value); + } else if (name.equals("mitigatingAction")) { + this.getMitigatingAction().add((AdverseEventMitigatingActionComponent) value); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().add((AdverseEventSupportingInfoComponent) value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 630735e83..87d48969f 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -538,6 +538,17 @@ public class AllergyIntolerance extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1081,6 +1092,28 @@ public class AllergyIntolerance extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("substance")) { + this.substance = null; + } else if (name.equals("manifestation")) { + this.getManifestation().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("onset")) { + this.onset = null; + } else if (name.equals("severity")) { + value = new AllergyIntoleranceSeverityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.severity = (Enumeration) value; // Enumeration + } else if (name.equals("exposureRoute")) { + this.exposureRoute = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2153,6 +2186,45 @@ public class AllergyIntolerance extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("clinicalStatus")) { + this.clinicalStatus = null; + } else if (name.equals("verificationStatus")) { + this.verificationStatus = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("category")) { + value = new AllergyIntoleranceCategoryEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getCategory().add((Enumeration) value); + } else if (name.equals("criticality")) { + value = new AllergyIntoleranceCriticalityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.criticality = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("onset[x]")) { + this.onset = null; + } else if (name.equals("recordedDate")) { + this.recordedDate = null; + } else if (name.equals("participant")) { + this.getParticipant().add((AllergyIntoleranceParticipantComponent) value); + } else if (name.equals("lastOccurrence")) { + this.lastOccurrence = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("reaction")) { + this.getReaction().add((AllergyIntoleranceReactionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 649267ed2..f6ff5d6c0 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -295,6 +295,19 @@ public class Annotation extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("author[x]")) { + this.author = null; + } else if (name.equals("time")) { + this.time = null; + } else if (name.equals("text")) { + this.text = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 3194fffb5..bd47b2c05 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -729,6 +729,24 @@ public class Appointment extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("actor")) { + this.actor = null; + } else if (name.equals("required")) { + this.required = null; + } else if (name.equals("status")) { + value = new ParticipationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1433,6 +1451,33 @@ public class Appointment extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("timezone")) { + this.timezone = null; + } else if (name.equals("recurrenceType")) { + this.recurrenceType = null; + } else if (name.equals("lastOccurrenceDate")) { + this.lastOccurrenceDate = null; + } else if (name.equals("occurrenceCount")) { + this.occurrenceCount = null; + } else if (name.equals("occurrenceDate")) { + this.getOccurrenceDate().remove(value); + } else if (name.equals("weeklyTemplate")) { + this.weeklyTemplate = (AppointmentRecurrenceTemplateWeeklyTemplateComponent) value; // AppointmentRecurrenceTemplateWeeklyTemplateComponent + } else if (name.equals("monthlyTemplate")) { + this.monthlyTemplate = (AppointmentRecurrenceTemplateMonthlyTemplateComponent) value; // AppointmentRecurrenceTemplateMonthlyTemplateComponent + } else if (name.equals("yearlyTemplate")) { + this.yearlyTemplate = (AppointmentRecurrenceTemplateYearlyTemplateComponent) value; // AppointmentRecurrenceTemplateYearlyTemplateComponent + } else if (name.equals("excludingDate")) { + this.getExcludingDate().remove(value); + } else if (name.equals("excludingRecurrenceId")) { + this.getExcludingRecurrenceId().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2108,6 +2153,29 @@ public class Appointment extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("monday")) { + this.monday = null; + } else if (name.equals("tuesday")) { + this.tuesday = null; + } else if (name.equals("wednesday")) { + this.wednesday = null; + } else if (name.equals("thursday")) { + this.thursday = null; + } else if (name.equals("friday")) { + this.friday = null; + } else if (name.equals("saturday")) { + this.saturday = null; + } else if (name.equals("sunday")) { + this.sunday = null; + } else if (name.equals("weekInterval")) { + this.weekInterval = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2478,6 +2546,21 @@ public class Appointment extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("dayOfMonth")) { + this.dayOfMonth = null; + } else if (name.equals("nthWeekOfMonth")) { + this.nthWeekOfMonth = null; + } else if (name.equals("dayOfWeek")) { + this.dayOfWeek = null; + } else if (name.equals("monthInterval")) { + this.monthInterval = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2685,6 +2768,15 @@ public class Appointment extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("yearInterval")) { + this.yearInterval = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4772,6 +4864,78 @@ The duration (usually in minutes) could also be provided to indicate the length return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new AppointmentStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("cancellationReason")) { + this.cancellationReason = null; + } else if (name.equals("class")) { + this.getClass_().remove(value); + } else if (name.equals("serviceCategory")) { + this.getServiceCategory().remove(value); + } else if (name.equals("serviceType")) { + this.getServiceType().remove(value); + } else if (name.equals("specialty")) { + this.getSpecialty().remove(value); + } else if (name.equals("appointmentType")) { + this.appointmentType = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("priority")) { + this.priority = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("replaces")) { + this.getReplaces().remove(value); + } else if (name.equals("virtualService")) { + this.getVirtualService().remove(value); + } else if (name.equals("supportingInformation")) { + this.getSupportingInformation().remove(value); + } else if (name.equals("previousAppointment")) { + this.previousAppointment = null; + } else if (name.equals("originatingAppointment")) { + this.originatingAppointment = null; + } else if (name.equals("start")) { + this.start = null; + } else if (name.equals("end")) { + this.end = null; + } else if (name.equals("minutesDuration")) { + this.minutesDuration = null; + } else if (name.equals("requestedPeriod")) { + this.getRequestedPeriod().remove(value); + } else if (name.equals("slot")) { + this.getSlot().remove(value); + } else if (name.equals("account")) { + this.getAccount().remove(value); + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("cancellationDate")) { + this.cancellationDate = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("patientInstruction")) { + this.getPatientInstruction().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("participant")) { + this.getParticipant().add((AppointmentParticipantComponent) value); + } else if (name.equals("recurrenceId")) { + this.recurrenceId = null; + } else if (name.equals("occurrenceChanged")) { + this.occurrenceChanged = null; + } else if (name.equals("recurrenceTemplate")) { + this.getRecurrenceTemplate().add((AppointmentRecurrenceTemplateComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 8275ed6b8..cc934c802 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -964,6 +964,38 @@ public class AppointmentResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("appointment")) { + this.appointment = null; + } else if (name.equals("proposedNewTime")) { + this.proposedNewTime = null; + } else if (name.equals("start")) { + this.start = null; + } else if (name.equals("end")) { + this.end = null; + } else if (name.equals("participantType")) { + this.getParticipantType().remove(value); + } else if (name.equals("actor")) { + this.actor = null; + } else if (name.equals("participantStatus")) { + value = new AppointmentResponseStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.participantStatus = (Enumeration) value; // Enumeration + } else if (name.equals("comment")) { + this.comment = null; + } else if (name.equals("recurring")) { + this.recurring = null; + } else if (name.equals("occurrenceDate")) { + this.occurrenceDate = null; + } else if (name.equals("recurrenceId")) { + this.recurrenceId = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ArtifactAssessment.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ArtifactAssessment.java index 238abe714..3d34b6ea3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ArtifactAssessment.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ArtifactAssessment.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1217,6 +1217,34 @@ public class ArtifactAssessment extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("informationType")) { + value = new ArtifactAssessmentInformationTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.informationType = (Enumeration) value; // Enumeration + } else if (name.equals("summary")) { + this.summary = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("classifier")) { + this.getClassifier().remove(value); + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("author")) { + this.author = null; + } else if (name.equals("path")) { + this.getPath().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("freeToShare")) { + this.freeToShare = null; + } else if (name.equals("component")) { + this.getComponent().add((ArtifactAssessmentContentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2161,6 +2189,37 @@ public class ArtifactAssessment extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("citeAs[x]")) { + this.citeAs = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("artifact[x]")) { + this.artifact = null; + } else if (name.equals("content")) { + this.getContent().add((ArtifactAssessmentContentComponent) value); + } else if (name.equals("workflowStatus")) { + value = new ArtifactAssessmentWorkflowStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.workflowStatus = (Enumeration) value; // Enumeration + } else if (name.equals("disposition")) { + value = new ArtifactAssessmentDispositionEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.disposition = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 a699451d4..924bdef76 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -927,6 +927,39 @@ public class Attachment extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("contentType")) { + this.contentType = null; + } else if (name.equals("language")) { + this.language = null; + } else if (name.equals("data")) { + this.data = null; + } else if (name.equals("url")) { + this.url = null; + } else if (name.equals("size")) { + this.size = null; + } else if (name.equals("hash")) { + this.hash = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("creation")) { + this.creation = null; + } else if (name.equals("height")) { + this.height = null; + } else if (name.equals("width")) { + this.width = null; + } else if (name.equals("frames")) { + this.frames = null; + } else if (name.equals("duration")) { + this.duration = null; + } else if (name.equals("pages")) { + this.pages = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 1d8b9d78a..dcefda43b 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -552,6 +552,17 @@ public class AuditEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("detail")) { + this.getDetail().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1163,6 +1174,29 @@ public class AuditEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("role")) { + this.getRole().remove(value); + } else if (name.equals("who")) { + this.who = null; + } else if (name.equals("requestor")) { + this.requestor = null; + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("policy")) { + this.getPolicy().remove(value); + } else if (name.equals("network[x]")) { + this.network = null; + } else if (name.equals("authorization")) { + this.getAuthorization().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1503,6 +1537,19 @@ public class AuditEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("site")) { + this.site = null; + } else if (name.equals("observer")) { + this.observer = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1985,6 +2032,25 @@ public class AuditEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("what")) { + this.what = null; + } else if (name.equals("role")) { + this.role = null; + } else if (name.equals("securityLabel")) { + this.getSecurityLabel().remove(value); + } else if (name.equals("query")) { + this.query = null; + } else if (name.equals("detail")) { + this.getDetail().add((AuditEventEntityDetailComponent) value); + } else if (name.equals("agent")) { + this.getAgent().add((AuditEventAgentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2409,6 +2475,17 @@ public class AuditEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3383,6 +3460,43 @@ public class AuditEvent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("action")) { + value = new AuditEventActionEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.action = (Enumeration) value; // Enumeration + } else if (name.equals("severity")) { + value = new AuditEventSeverityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.severity = (Enumeration) value; // Enumeration + } else if (name.equals("occurred[x]")) { + this.occurred = null; + } else if (name.equals("recorded")) { + this.recorded = null; + } else if (name.equals("outcome")) { + this.outcome = (AuditEventOutcomeComponent) value; // AuditEventOutcomeComponent + } else if (name.equals("authorization")) { + this.getAuthorization().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("agent")) { + this.getAgent().add((AuditEventAgentComponent) value); + } else if (name.equals("source")) { + this.source = (AuditEventSourceComponent) value; // AuditEventSourceComponent + } else if (name.equals("entity")) { + this.getEntity().add((AuditEventEntityComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Availability.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Availability.java index 513488f4f..30f78bff9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Availability.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Availability.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -364,6 +364,22 @@ public class Availability extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("daysOfWeek")) { + value = new DaysOfWeekEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getDaysOfWeek().add((Enumeration) value); + } else if (name.equals("allDay")) { + this.allDay = null; + } else if (name.equals("availableStartTime")) { + this.availableStartTime = null; + } else if (name.equals("availableEndTime")) { + this.availableEndTime = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -607,6 +623,17 @@ public class Availability extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("during")) { + this.during = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -863,6 +890,17 @@ public class Availability extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("availableTime")) { + this.getAvailableTime().add((AvailabilityAvailableTimeComponent) value); + } else if (name.equals("notAvailableTime")) { + this.getNotAvailableTime().add((AvailabilityNotAvailableTimeComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 2ab1d0f7b..5b1c22ac3 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -168,6 +168,15 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("modifierExtension")) { + this.getModifierExtension().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 ed3db0a8a..f6362b6f7 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -167,6 +167,15 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("modifierExtension")) { + this.getModifierExtension().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Base.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Base.java index c04102fa8..5cc51a1a3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Base.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Base.java @@ -1,4 +1,32 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; + +/* + Copyright (c) 2011+, HL7, Inc. + All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, \ + are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this \ + list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, \ + this list of conditions and the following disclaimer in the documentation \ + and/or other materials provided with the distribution. + * Neither the name of HL7 nor the names of its contributors may be used to + endorse or promote products derived from this software without specific + prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \ + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \ + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \ + IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \ + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \ + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \ + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \ + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \ + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \ + POSSIBILITY OF SUCH DAMAGE. + */ import java.io.Serializable; import java.util.ArrayList; @@ -274,7 +302,7 @@ public abstract class Base implements Serializable, IBase, IElement { throw new FHIRException("Attempt to add child with unknown name "+name); } - public boolean removeChild(String name, Base value) { + public void removeChild(String name, Base value) throws FHIRException { throw new FHIRException("Attempt to remove child with unknown name "+name); } /** 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 d8c16149b..986743abf 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -354,6 +354,23 @@ public class Basic extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("author")) { + this.author = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 59cb6946d..8567b207c 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -270,6 +270,19 @@ public class Binary extends BaseBinary implements IBaseBinary { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("contentType")) { + this.contentType = null; + } else if (name.equals("securityContext")) { + this.securityContext = null; + } else if (name.equals("data")) { + this.data = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 8e40bee1d..829e03222 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -246,6 +246,19 @@ public class BiologicallyDerivedProduct extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("collector")) { + this.collector = null; + } else if (name.equals("source")) { + this.source = null; + } else if (name.equals("collected[x]")) { + this.collected = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -613,6 +626,17 @@ public class BiologicallyDerivedProduct extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1472,6 +1496,39 @@ public class BiologicallyDerivedProduct extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("productCategory")) { + this.productCategory = null; + } else if (name.equals("productCode")) { + this.productCode = null; + } else if (name.equals("parent")) { + this.getParent().remove(value); + } else if (name.equals("request")) { + this.getRequest().remove(value); + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("biologicalSourceEvent")) { + this.biologicalSourceEvent = null; + } else if (name.equals("processingFacility")) { + this.getProcessingFacility().remove(value); + } else if (name.equals("division")) { + this.division = null; + } else if (name.equals("productStatus")) { + this.productStatus = null; + } else if (name.equals("expirationDate")) { + this.expirationDate = null; + } else if (name.equals("collection")) { + this.collection = (BiologicallyDerivedProductCollectionComponent) value; // BiologicallyDerivedProductCollectionComponent + } else if (name.equals("storageTempRequirements")) { + this.storageTempRequirements = null; + } else if (name.equals("property")) { + this.getProperty().add((BiologicallyDerivedProductPropertyComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BiologicallyDerivedProductDispense.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BiologicallyDerivedProductDispense.java index 2193ec7a7..4e2dad700 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BiologicallyDerivedProductDispense.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BiologicallyDerivedProductDispense.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -378,6 +378,17 @@ public class BiologicallyDerivedProductDispense extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1379,6 +1390,46 @@ public class BiologicallyDerivedProductDispense extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new BiologicallyDerivedProductDispenseCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("originRelationshipType")) { + this.originRelationshipType = null; + } else if (name.equals("product")) { + this.product = null; + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("matchStatus")) { + this.matchStatus = null; + } else if (name.equals("performer")) { + this.getPerformer().add((BiologicallyDerivedProductDispensePerformerComponent) value); + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("preparedDate")) { + this.preparedDate = null; + } else if (name.equals("whenHandedOver")) { + this.whenHandedOver = null; + } else if (name.equals("destination")) { + this.destination = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("usageInstruction")) { + this.usageInstruction = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 b9f46144f..26e63b70b 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -392,6 +392,23 @@ public class BodyStructure extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("structure")) { + this.structure = null; + } else if (name.equals("laterality")) { + this.laterality = null; + } else if (name.equals("bodyLandmarkOrientation")) { + this.getBodyLandmarkOrientation().add((BodyStructureIncludedStructureBodyLandmarkOrientationComponent) value); + } else if (name.equals("spatialReference")) { + this.getSpatialReference().remove(value); + } else if (name.equals("qualifier")) { + this.getQualifier().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -823,6 +840,21 @@ public class BodyStructure extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("landmarkDescription")) { + this.getLandmarkDescription().remove(value); + } else if (name.equals("clockFacePosition")) { + this.getClockFacePosition().remove(value); + } else if (name.equals("distanceFromLandmark")) { + this.getDistanceFromLandmark().add((BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmarkComponent) value); + } else if (name.equals("surfaceOrientation")) { + this.getSurfaceOrientation().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1112,6 +1144,17 @@ public class BodyStructure extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("device")) { + this.getDevice().remove(value); + } else if (name.equals("value")) { + this.getValue().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1723,6 +1766,29 @@ public class BodyStructure extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("morphology")) { + this.morphology = null; + } else if (name.equals("includedStructure")) { + this.getIncludedStructure().add((BodyStructureIncludedStructureComponent) value); + } else if (name.equals("excludedStructure")) { + this.getExcludedStructure().add((BodyStructureIncludedStructureComponent) value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("image")) { + this.getImage().remove(value); + } else if (name.equals("patient")) { + this.patient = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 58c803abd..6e765c48a 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -2713,6 +2713,18 @@ public class Bundle extends Resource implements IBaseBundle { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("relation")) { + value = new LinkRelationTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.relation = (Enumeration) value; // Enumeration + } else if (name.equals("url")) { + this.url = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3132,6 +3144,25 @@ public class Bundle extends Resource implements IBaseBundle { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("link")) { + this.getLink().add((BundleLinkComponent) value); + } else if (name.equals("fullUrl")) { + this.fullUrl = null; + } else if (name.equals("resource")) { + this.resource = null; + } else if (name.equals("search")) { + this.search = (BundleEntrySearchComponent) value; // BundleEntrySearchComponent + } else if (name.equals("request")) { + this.request = (BundleEntryRequestComponent) value; // BundleEntryRequestComponent + } else if (name.equals("response")) { + this.response = (BundleEntryResponseComponent) value; // BundleEntryResponseComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3485,6 +3516,18 @@ public class Bundle extends Resource implements IBaseBundle { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("mode")) { + value = new SearchEntryModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.mode = (Enumeration) value; // Enumeration + } else if (name.equals("score")) { + this.score = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3994,6 +4037,26 @@ public class Bundle extends Resource implements IBaseBundle { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("method")) { + value = new HTTPVerbEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.method = (Enumeration) value; // Enumeration + } else if (name.equals("url")) { + this.url = null; + } else if (name.equals("ifNoneMatch")) { + this.ifNoneMatch = null; + } else if (name.equals("ifModifiedSince")) { + this.ifModifiedSince = null; + } else if (name.equals("ifMatch")) { + this.ifMatch = null; + } else if (name.equals("ifNoneExist")) { + this.ifNoneExist = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4438,6 +4501,23 @@ public class Bundle extends Resource implements IBaseBundle { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("status")) { + this.status = null; + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("etag")) { + this.etag = null; + } else if (name.equals("lastModified")) { + this.lastModified = null; + } else if (name.equals("outcome")) { + this.outcome = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5021,6 +5101,30 @@ public class Bundle extends Resource implements IBaseBundle { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("type")) { + value = new BundleTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("timestamp")) { + this.timestamp = null; + } else if (name.equals("total")) { + this.total = null; + } else if (name.equals("link")) { + this.getLink().add((BundleLinkComponent) value); + } else if (name.equals("entry")) { + this.getEntry().add((BundleEntryComponent) value); + } else if (name.equals("signature")) { + this.signature = null; + } else if (name.equals("issues")) { + this.issues = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 a40c5a4ef..b6871b344 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -528,6 +528,11 @@ public abstract class CanonicalResource extends DomainResource { return super.setProperty(name, value); } + @Override + public void removeChild(String name, Base value) throws FHIRException { + super.removeChild(name, value); + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 e9a2c3d23..5fc4a5cef 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1416,6 +1416,19 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("releaseDate")) { + this.releaseDate = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1717,6 +1730,19 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("url")) { + this.url = null; + } else if (name.equals("custodian")) { + this.custodian = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2369,6 +2395,30 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("mode")) { + value = new RestfulCapabilityModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.mode = (Enumeration) value; // Enumeration + } else if (name.equals("documentation")) { + this.documentation = null; + } else if (name.equals("security")) { + this.security = (CapabilityStatementRestSecurityComponent) value; // CapabilityStatementRestSecurityComponent + } else if (name.equals("resource")) { + this.getResource().add((CapabilityStatementRestResourceComponent) value); + } else if (name.equals("interaction")) { + this.getInteraction().add((SystemInteractionComponent) value); + } else if (name.equals("searchParam")) { + this.getSearchParam().add((CapabilityStatementRestResourceSearchParamComponent) value); + } else if (name.equals("operation")) { + this.getOperation().add((CapabilityStatementRestResourceOperationComponent) value); + } else if (name.equals("compartment")) { + this.getCompartment().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2744,6 +2794,19 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("cors")) { + this.cors = null; + } else if (name.equals("service")) { + this.getService().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4086,6 +4149,53 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("profile")) { + this.profile = null; + } else if (name.equals("supportedProfile")) { + this.getSupportedProfile().remove(value); + } else if (name.equals("documentation")) { + this.documentation = null; + } else if (name.equals("interaction")) { + this.getInteraction().add((ResourceInteractionComponent) value); + } else if (name.equals("versioning")) { + value = new ResourceVersionPolicyEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.versioning = (Enumeration) value; // Enumeration + } else if (name.equals("readHistory")) { + this.readHistory = null; + } else if (name.equals("updateCreate")) { + this.updateCreate = null; + } else if (name.equals("conditionalCreate")) { + this.conditionalCreate = null; + } else if (name.equals("conditionalRead")) { + value = new ConditionalReadStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.conditionalRead = (Enumeration) value; // Enumeration + } else if (name.equals("conditionalUpdate")) { + this.conditionalUpdate = null; + } else if (name.equals("conditionalPatch")) { + this.conditionalPatch = null; + } else if (name.equals("conditionalDelete")) { + value = new ConditionalDeleteStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.conditionalDelete = (Enumeration) value; // Enumeration + } else if (name.equals("referencePolicy")) { + value = new ReferenceHandlingPolicyEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getReferencePolicy().add((Enumeration) value); + } else if (name.equals("searchInclude")) { + this.getSearchInclude().remove(value); + } else if (name.equals("searchRevInclude")) { + this.getSearchRevInclude().remove(value); + } else if (name.equals("searchParam")) { + this.getSearchParam().add((CapabilityStatementRestResourceSearchParamComponent) value); + } else if (name.equals("operation")) { + this.getOperation().add((CapabilityStatementRestResourceOperationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4484,6 +4594,18 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + value = new TypeRestfulInteractionEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.code = (Enumeration) value; // Enumeration + } else if (name.equals("documentation")) { + this.documentation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4865,6 +4987,22 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("definition")) { + this.definition = null; + } else if (name.equals("type")) { + value = new SearchParamTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("documentation")) { + this.documentation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5194,6 +5332,19 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("definition")) { + this.definition = null; + } else if (name.equals("documentation")) { + this.documentation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5459,6 +5610,18 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + value = new SystemRestfulInteractionEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.code = (Enumeration) value; // Enumeration + } else if (name.equals("documentation")) { + this.documentation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5840,6 +6003,21 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("endpoint")) { + this.getEndpoint().add((CapabilityStatementMessagingEndpointComponent) value); + } else if (name.equals("reliableCache")) { + this.reliableCache = null; + } else if (name.equals("documentation")) { + this.documentation = null; + } else if (name.equals("supportedMessage")) { + this.getSupportedMessage().add((CapabilityStatementMessagingSupportedMessageComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6094,6 +6272,17 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("protocol")) { + this.protocol = null; + } else if (name.equals("address")) { + this.address = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6348,6 +6537,18 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("mode")) { + value = new EventCapabilityModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.mode = (Enumeration) value; // Enumeration + } else if (name.equals("definition")) { + this.definition = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6665,6 +6866,20 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("mode")) { + value = new DocumentModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.mode = (Enumeration) value; // Enumeration + } else if (name.equals("documentation")) { + this.documentation = null; + } else if (name.equals("profile")) { + this.profile = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8774,6 +8989,76 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("kind")) { + value = new CapabilityStatementKindEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.kind = (Enumeration) value; // Enumeration + } else if (name.equals("instantiates")) { + this.getInstantiates().remove(value); + } else if (name.equals("imports")) { + this.getImports().remove(value); + } else if (name.equals("software")) { + this.software = (CapabilityStatementSoftwareComponent) value; // CapabilityStatementSoftwareComponent + } else if (name.equals("implementation")) { + this.implementation = (CapabilityStatementImplementationComponent) value; // CapabilityStatementImplementationComponent + } else if (name.equals("fhirVersion")) { + value = new FHIRVersionEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.fhirVersion = (Enumeration) value; // Enumeration + } else if (name.equals("format")) { + this.getFormat().remove(value); + } else if (name.equals("patchFormat")) { + this.getPatchFormat().remove(value); + } else if (name.equals("acceptLanguage")) { + this.getAcceptLanguage().remove(value); + } else if (name.equals("implementationGuide")) { + this.getImplementationGuide().remove(value); + } else if (name.equals("rest")) { + this.getRest().add((CapabilityStatementRestComponent) value); + } else if (name.equals("messaging")) { + this.getMessaging().add((CapabilityStatementMessagingComponent) value); + } else if (name.equals("document")) { + this.getDocument().add((CapabilityStatementDocumentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 1e04c12f6..83ba15964 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -419,6 +419,19 @@ public class CarePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("performedActivity")) { + this.getPerformedActivity().remove(value); + } else if (name.equals("progress")) { + this.getProgress().remove(value); + } else if (name.equals("plannedActivityReference")) { + this.plannedActivityReference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2009,6 +2022,61 @@ public class CarePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.getInstantiatesCanonical().remove(value); + } else if (name.equals("instantiatesUri")) { + this.getInstantiatesUri().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("replaces")) { + this.getReplaces().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new RequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("intent")) { + value = new CarePlanIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("custodian")) { + this.custodian = null; + } else if (name.equals("contributor")) { + this.getContributor().remove(value); + } else if (name.equals("careTeam")) { + this.getCareTeam().remove(value); + } else if (name.equals("addresses")) { + this.getAddresses().remove(value); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().remove(value); + } else if (name.equals("goal")) { + this.getGoal().remove(value); + } else if (name.equals("activity")) { + this.getActivity().add((CarePlanActivityComponent) value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 1f608d39a..47037176e 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -430,6 +430,21 @@ public class CareTeam extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("role")) { + this.role = null; + } else if (name.equals("member")) { + this.member = null; + } else if (name.equals("onBehalfOf")) { + this.onBehalfOf = null; + } else if (name.equals("coverage[x]")) { + this.coverage = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1259,6 +1274,36 @@ public class CareTeam extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new CareTeamStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("participant")) { + this.getParticipant().add((CareTeamParticipantComponent) value); + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("managingOrganization")) { + this.getManagingOrganization().remove(value); + } else if (name.equals("telecom")) { + this.getTelecom().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 a9882e8ae..73e7674ef 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -362,6 +362,17 @@ public class ChargeItem extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1970,6 +1981,66 @@ public class ChargeItem extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("definitionUri")) { + this.getDefinitionUri().remove(value); + } else if (name.equals("definitionCanonical")) { + this.getDefinitionCanonical().remove(value); + } else if (name.equals("status")) { + value = new ChargeItemStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("performer")) { + this.getPerformer().add((ChargeItemPerformerComponent) value); + } else if (name.equals("performingOrganization")) { + this.performingOrganization = null; + } else if (name.equals("requestingOrganization")) { + this.requestingOrganization = null; + } else if (name.equals("costCenter")) { + this.costCenter = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("bodysite")) { + this.getBodysite().remove(value); + } else if (name.equals("unitPriceComponent")) { + this.unitPriceComponent = null; + } else if (name.equals("totalPriceComponent")) { + this.totalPriceComponent = null; + } else if (name.equals("overrideReason")) { + this.overrideReason = null; + } else if (name.equals("enterer")) { + this.enterer = null; + } else if (name.equals("enteredDate")) { + this.enteredDate = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("service")) { + this.getService().remove(value); + } else if (name.equals("product")) { + this.getProduct().remove(value); + } else if (name.equals("account")) { + this.getAccount().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("supportingInformation")) { + this.getSupportingInformation().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { 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 927972c0f..de743df09 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 @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -216,6 +216,19 @@ public class ChargeItemDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("condition")) { + this.condition = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("relatedArtifact")) { + this.relatedArtifact = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -484,6 +497,17 @@ public class ChargeItemDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("applicability")) { + this.getApplicability().add((ChargeItemDefinitionApplicabilityComponent) value); + } else if (name.equals("priceComponent")) { + this.getPriceComponent().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2560,6 +2584,66 @@ public class ChargeItemDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("derivedFromUri")) { + this.getDerivedFromUri().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("replaces")) { + this.getReplaces().remove(value); + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("instance")) { + this.getInstance().remove(value); + } else if (name.equals("applicability")) { + this.getApplicability().add((ChargeItemDefinitionApplicabilityComponent) value); + } else if (name.equals("propertyGroup")) { + this.getPropertyGroup().add((ChargeItemDefinitionPropertyGroupComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Citation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Citation.java index 71e060efa..a8bb86090 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Citation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Citation.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -879,6 +879,17 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("style")) { + this.style = null; + } else if (name.equals("text")) { + this.text = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1110,6 +1121,17 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("classifier")) { + this.getClassifier().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1384,6 +1406,19 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("activity")) { + this.activity = null; + } else if (name.equals("actual")) { + this.actual = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2445,6 +2480,43 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("relatedIdentifier")) { + this.getRelatedIdentifier().remove(value); + } else if (name.equals("dateAccessed")) { + this.dateAccessed = null; + } else if (name.equals("version")) { + this.version = (CitationCitedArtifactVersionComponent) value; // CitationCitedArtifactVersionComponent + } else if (name.equals("currentState")) { + this.getCurrentState().remove(value); + } else if (name.equals("statusDate")) { + this.getStatusDate().add((CitationCitedArtifactStatusDateComponent) value); + } else if (name.equals("title")) { + this.getTitle().add((CitationCitedArtifactTitleComponent) value); + } else if (name.equals("abstract")) { + this.getAbstract().add((CitationCitedArtifactAbstractComponent) value); + } else if (name.equals("part")) { + this.part = (CitationCitedArtifactPartComponent) value; // CitationCitedArtifactPartComponent + } else if (name.equals("relatesTo")) { + this.getRelatesTo().add((CitationCitedArtifactRelatesToComponent) value); + } else if (name.equals("publicationForm")) { + this.getPublicationForm().add((CitationCitedArtifactPublicationFormComponent) value); + } else if (name.equals("webLocation")) { + this.getWebLocation().add((CitationCitedArtifactWebLocationComponent) value); + } else if (name.equals("classification")) { + this.getClassification().add((CitationCitedArtifactClassificationComponent) value); + } else if (name.equals("contributorship")) { + this.contributorship = (CitationCitedArtifactContributorshipComponent) value; // CitationCitedArtifactContributorshipComponent + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2805,6 +2877,17 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value")) { + this.value = null; + } else if (name.equals("baseCitation")) { + this.baseCitation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3075,6 +3158,19 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("activity")) { + this.activity = null; + } else if (name.equals("actual")) { + this.actual = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3383,6 +3479,19 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("language")) { + this.language = null; + } else if (name.equals("text")) { + this.text = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3728,6 +3837,21 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("language")) { + this.language = null; + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4008,6 +4132,19 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value")) { + this.value = null; + } else if (name.equals("baseCitation")) { + this.baseCitation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4613,6 +4750,30 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new RelatedArtifactTypeExpandedEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("classifier")) { + this.getClassifier().remove(value); + } else if (name.equals("label")) { + this.label = null; + } else if (name.equals("display")) { + this.display = null; + } else if (name.equals("citation")) { + this.citation = null; + } else if (name.equals("document")) { + this.document = null; + } else if (name.equals("resource")) { + this.resource = null; + } else if (name.equals("resourceReference")) { + this.resourceReference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5697,6 +5858,43 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("publishedIn")) { + this.publishedIn = (CitationCitedArtifactPublicationFormPublishedInComponent) value; // CitationCitedArtifactPublicationFormPublishedInComponent + } else if (name.equals("citedMedium")) { + this.citedMedium = null; + } else if (name.equals("volume")) { + this.volume = null; + } else if (name.equals("issue")) { + this.issue = null; + } else if (name.equals("articleDate")) { + this.articleDate = null; + } else if (name.equals("publicationDateText")) { + this.publicationDateText = null; + } else if (name.equals("publicationDateSeason")) { + this.publicationDateSeason = null; + } else if (name.equals("lastRevisionDate")) { + this.lastRevisionDate = null; + } else if (name.equals("language")) { + this.getLanguage().remove(value); + } else if (name.equals("accessionNumber")) { + this.accessionNumber = null; + } else if (name.equals("pageString")) { + this.pageString = null; + } else if (name.equals("firstPage")) { + this.firstPage = null; + } else if (name.equals("lastPage")) { + this.lastPage = null; + } else if (name.equals("pageCount")) { + this.pageCount = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6190,6 +6388,23 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("publisherLocation")) { + this.publisherLocation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6472,6 +6687,17 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("classifier")) { + this.getClassifier().remove(value); + } else if (name.equals("url")) { + this.url = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6774,6 +7000,19 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("classifier")) { + this.getClassifier().remove(value); + } else if (name.equals("artifactAssessment")) { + this.getArtifactAssessment().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -7108,6 +7347,19 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("complete")) { + this.complete = null; + } else if (name.equals("entry")) { + this.getEntry().add((CitationCitedArtifactContributorshipEntryComponent) value); + } else if (name.equals("summary")) { + this.getSummary().add((ContributorshipSummaryComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -7721,6 +7973,29 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("contributor")) { + this.contributor = null; + } else if (name.equals("forenameInitials")) { + this.forenameInitials = null; + } else if (name.equals("affiliation")) { + this.getAffiliation().remove(value); + } else if (name.equals("contributionType")) { + this.getContributionType().remove(value); + } else if (name.equals("role")) { + this.role = null; + } else if (name.equals("contributionInstance")) { + this.getContributionInstance().add((CitationCitedArtifactContributorshipEntryContributionInstanceComponent) value); + } else if (name.equals("correspondingContact")) { + this.correspondingContact = null; + } else if (name.equals("rankingOrder")) { + this.rankingOrder = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8011,6 +8286,17 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("time")) { + this.time = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8321,6 +8607,21 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("style")) { + this.style = null; + } else if (name.equals("source")) { + this.source = null; + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -10493,6 +10794,76 @@ public class Citation extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("summary")) { + this.getSummary().add((CitationSummaryComponent) value); + } else if (name.equals("classification")) { + this.getClassification().add((CitationClassificationComponent) value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("currentState")) { + this.getCurrentState().remove(value); + } else if (name.equals("statusDate")) { + this.getStatusDate().add((CitationStatusDateComponent) value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("citedArtifact")) { + this.citedArtifact = (CitationCitedArtifactComponent) value; // CitationCitedArtifactComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Claim.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Claim.java index e58727740..e5ef88047 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Claim.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Claim.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -218,6 +218,19 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("claim")) { + this.claim = null; + } else if (name.equals("relationship")) { + this.relationship = null; + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -437,6 +450,17 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("party")) { + this.party = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -678,6 +702,17 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("when[x]")) { + this.when = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1054,6 +1089,23 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("provider")) { + this.provider = null; + } else if (name.equals("responsible")) { + this.responsible = null; + } else if (name.equals("role")) { + this.role = null; + } else if (name.equals("specialty")) { + this.specialty = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1590,6 +1642,25 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("timing[x]")) { + this.timing = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("reason")) { + this.reason = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2017,6 +2088,21 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("diagnosis[x]")) { + this.diagnosis = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("onAdmission")) { + this.onAdmission = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2503,6 +2589,23 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("procedure[x]")) { + this.procedure = null; + } else if (name.equals("udi")) { + this.getUdi().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3045,6 +3148,27 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("focal")) { + this.focal = null; + } else if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("coverage")) { + this.coverage = null; + } else if (name.equals("businessArrangement")) { + this.businessArrangement = null; + } else if (name.equals("preAuthRef")) { + this.getPreAuthRef().remove(value); + } else if (name.equals("claimResponse")) { + this.claimResponse = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3385,6 +3509,19 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("date")) { + this.date = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("location[x]")) { + this.location = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5030,6 +5167,63 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("careTeamSequence")) { + this.getCareTeamSequence().remove(value); + } else if (name.equals("diagnosisSequence")) { + this.getDiagnosisSequence().remove(value); + } else if (name.equals("procedureSequence")) { + this.getProcedureSequence().remove(value); + } else if (name.equals("informationSequence")) { + this.getInformationSequence().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("request")) { + this.getRequest().remove(value); + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("programCode")) { + this.getProgramCode().remove(value); + } else if (name.equals("serviced[x]")) { + this.serviced = null; + } else if (name.equals("location[x]")) { + this.location = null; + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("udi")) { + this.getUdi().remove(value); + } else if (name.equals("bodySite")) { + this.getBodySite().add((BodySiteComponent) value); + } else if (name.equals("encounter")) { + this.getEncounter().remove(value); + } else if (name.equals("detail")) { + this.getDetail().add((DetailComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5524,6 +5718,17 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("site")) { + this.getSite().remove(value); + } else if (name.equals("subSite")) { + this.getSubSite().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6500,6 +6705,45 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("programCode")) { + this.getProgramCode().remove(value); + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("udi")) { + this.getUdi().remove(value); + } else if (name.equals("subDetail")) { + this.getSubDetail().add((SubDetailComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -7521,6 +7765,43 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("programCode")) { + this.getProgramCode().remove(value); + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("udi")) { + this.getUdi().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -9404,6 +9685,79 @@ public class Claim extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("status")) { + value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("subType")) { + this.subType = null; + } else if (name.equals("use")) { + value = new UseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.use = (Enumeration) value; // Enumeration + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("billablePeriod")) { + this.billablePeriod = null; + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("enterer")) { + this.enterer = null; + } else if (name.equals("insurer")) { + this.insurer = null; + } else if (name.equals("provider")) { + this.provider = null; + } else if (name.equals("priority")) { + this.priority = null; + } else if (name.equals("fundsReserve")) { + this.fundsReserve = null; + } else if (name.equals("related")) { + this.getRelated().add((RelatedClaimComponent) value); + } else if (name.equals("prescription")) { + this.prescription = null; + } else if (name.equals("originalPrescription")) { + this.originalPrescription = null; + } else if (name.equals("payee")) { + this.payee = (PayeeComponent) value; // PayeeComponent + } else if (name.equals("referral")) { + this.referral = null; + } else if (name.equals("encounter")) { + this.getEncounter().remove(value); + } else if (name.equals("facility")) { + this.facility = null; + } else if (name.equals("diagnosisRelatedGroup")) { + this.diagnosisRelatedGroup = null; + } else if (name.equals("event")) { + this.getEvent().add((ClaimEventComponent) value); + } else if (name.equals("careTeam")) { + this.getCareTeam().add((CareTeamComponent) value); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().add((SupportingInformationComponent) value); + } else if (name.equals("diagnosis")) { + this.getDiagnosis().add((DiagnosisComponent) value); + } else if (name.equals("procedure")) { + this.getProcedure().add((ProcedureComponent) value); + } else if (name.equals("insurance")) { + this.getInsurance().add((InsuranceComponent) value); + } else if (name.equals("accident")) { + this.accident = (AccidentComponent) value; // AccidentComponent + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("item")) { + this.getItem().add((ItemComponent) value); + } else if (name.equals("total")) { + this.total = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClaimResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClaimResponse.java index 652676bf8..57fd8f6d6 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClaimResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClaimResponse.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -218,6 +218,17 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("when[x]")) { + this.when = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -733,6 +744,25 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("itemSequence")) { + this.itemSequence = null; + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ReviewOutcomeComponent) value; // ReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else if (name.equals("detail")) { + this.getDetail().add((ItemDetailComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1111,6 +1141,21 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("decision")) { + this.decision = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("preAuthRef")) { + this.preAuthRef = null; + } else if (name.equals("preAuthPeriod")) { + this.preAuthPeriod = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1418,6 +1463,21 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("reason")) { + this.reason = null; + } else if (name.equals("amount")) { + this.amount = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1944,6 +2004,25 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("detailSequence")) { + this.detailSequence = null; + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ReviewOutcomeComponent) value; // ReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else if (name.equals("subDetail")) { + this.getSubDetail().add((SubDetailComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2430,6 +2509,23 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("subDetailSequence")) { + this.subDetailSequence = null; + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ReviewOutcomeComponent) value; // ReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3988,6 +4084,59 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("itemSequence")) { + this.getItemSequence().remove(value); + } else if (name.equals("detailSequence")) { + this.getDetailSequence().remove(value); + } else if (name.equals("subdetailSequence")) { + this.getSubdetailSequence().remove(value); + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("provider")) { + this.getProvider().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("request")) { + this.getRequest().remove(value); + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("programCode")) { + this.getProgramCode().remove(value); + } else if (name.equals("serviced[x]")) { + this.serviced = null; + } else if (name.equals("location[x]")) { + this.location = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("bodySite")) { + this.getBodySite().add((BodySiteComponent) value); + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ReviewOutcomeComponent) value; // ReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else if (name.equals("detail")) { + this.getDetail().add((AddedItemDetailComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4466,6 +4615,17 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("site")) { + this.getSite().remove(value); + } else if (name.equals("subSite")) { + this.getSubSite().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5341,6 +5501,41 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ReviewOutcomeComponent) value; // ReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else if (name.equals("subDetail")) { + this.getSubDetail().add((AddedItemSubDetailComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6247,6 +6442,39 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ReviewOutcomeComponent) value; // ReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6553,6 +6781,17 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("amount")) { + this.amount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6946,6 +7185,25 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("adjustment")) { + this.adjustment = null; + } else if (name.equals("adjustmentReason")) { + this.adjustmentReason = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("amount")) { + this.amount = null; + } else if (name.equals("identifier")) { + this.identifier = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -7307,6 +7565,21 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("number")) { + this.number = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("language")) { + this.language = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -7716,6 +7989,23 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("focal")) { + this.focal = null; + } else if (name.equals("coverage")) { + this.coverage = null; + } else if (name.equals("businessArrangement")) { + this.businessArrangement = null; + } else if (name.equals("claimResponse")) { + this.claimResponse = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8165,6 +8455,23 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("itemSequence")) { + this.itemSequence = null; + } else if (name.equals("detailSequence")) { + this.detailSequence = null; + } else if (name.equals("subDetailSequence")) { + this.subDetailSequence = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("expression")) { + this.getExpression().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -10071,6 +10378,80 @@ public class ClaimResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("status")) { + value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("subType")) { + this.subType = null; + } else if (name.equals("use")) { + value = new UseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.use = (Enumeration) value; // Enumeration + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("insurer")) { + this.insurer = null; + } else if (name.equals("requestor")) { + this.requestor = null; + } else if (name.equals("request")) { + this.request = null; + } else if (name.equals("outcome")) { + value = new ClaimProcessingCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration + } else if (name.equals("decision")) { + this.decision = null; + } else if (name.equals("disposition")) { + this.disposition = null; + } else if (name.equals("preAuthRef")) { + this.preAuthRef = null; + } else if (name.equals("preAuthPeriod")) { + this.preAuthPeriod = null; + } else if (name.equals("event")) { + this.getEvent().add((ClaimResponseEventComponent) value); + } else if (name.equals("payeeType")) { + this.payeeType = null; + } else if (name.equals("encounter")) { + this.getEncounter().remove(value); + } else if (name.equals("diagnosisRelatedGroup")) { + this.diagnosisRelatedGroup = null; + } else if (name.equals("item")) { + this.getItem().add((ItemComponent) value); + } else if (name.equals("addItem")) { + this.getAddItem().add((AddedItemComponent) value); + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else if (name.equals("total")) { + this.getTotal().add((TotalComponent) value); + } else if (name.equals("payment")) { + this.payment = (PaymentComponent) value; // PaymentComponent + } else if (name.equals("fundsReserve")) { + this.fundsReserve = null; + } else if (name.equals("formCode")) { + this.formCode = null; + } else if (name.equals("form")) { + this.form = null; + } else if (name.equals("processNote")) { + this.getProcessNote().add((NoteComponent) value); + } else if (name.equals("communicationRequest")) { + this.getCommunicationRequest().remove(value); + } else if (name.equals("insurance")) { + this.getInsurance().add((InsuranceComponent) value); + } else if (name.equals("error")) { + this.getError().add((ErrorComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalImpression.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalImpression.java index 7c74a865c..15a463231 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalImpression.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalImpression.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -203,6 +203,17 @@ public class ClinicalImpression extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item")) { + this.item = null; + } else if (name.equals("basis")) { + this.basis = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1445,6 +1456,52 @@ public class ClinicalImpression extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new EventStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.statusReason = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("effective[x]")) { + this.effective = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("performer")) { + this.performer = null; + } else if (name.equals("previous")) { + this.previous = null; + } else if (name.equals("problem")) { + this.getProblem().remove(value); + } else if (name.equals("changePattern")) { + this.changePattern = null; + } else if (name.equals("protocol")) { + this.getProtocol().remove(value); + } else if (name.equals("summary")) { + this.summary = null; + } else if (name.equals("finding")) { + this.getFinding().add((ClinicalImpressionFindingComponent) value); + } else if (name.equals("prognosisCodeableConcept")) { + this.getPrognosisCodeableConcept().remove(value); + } else if (name.equals("prognosisReference")) { + this.getPrognosisReference().remove(value); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalUseDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalUseDefinition.java index fe9229a2d..df9e3448c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalUseDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalUseDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -567,6 +567,25 @@ public class ClinicalUseDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("diseaseSymptomProcedure")) { + this.diseaseSymptomProcedure = null; + } else if (name.equals("diseaseStatus")) { + this.diseaseStatus = null; + } else if (name.equals("comorbidity")) { + this.getComorbidity().remove(value); + } else if (name.equals("indication")) { + this.getIndication().remove(value); + } else if (name.equals("applicability")) { + this.applicability = null; + } else if (name.equals("otherTherapy")) { + this.getOtherTherapy().add((ClinicalUseDefinitionContraindicationOtherTherapyComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -820,6 +839,17 @@ public class ClinicalUseDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("relationshipType")) { + this.relationshipType = null; + } else if (name.equals("treatment")) { + this.treatment = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1378,6 +1408,29 @@ public class ClinicalUseDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("diseaseSymptomProcedure")) { + this.diseaseSymptomProcedure = null; + } else if (name.equals("diseaseStatus")) { + this.diseaseStatus = null; + } else if (name.equals("comorbidity")) { + this.getComorbidity().remove(value); + } else if (name.equals("intendedEffect")) { + this.intendedEffect = null; + } else if (name.equals("duration[x]")) { + this.duration = null; + } else if (name.equals("undesirableEffect")) { + this.getUndesirableEffect().remove(value); + } else if (name.equals("applicability")) { + this.applicability = null; + } else if (name.equals("otherTherapy")) { + this.getOtherTherapy().add((ClinicalUseDefinitionContraindicationOtherTherapyComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1820,6 +1873,23 @@ public class ClinicalUseDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("interactant")) { + this.getInteractant().add((ClinicalUseDefinitionInteractionInteractantComponent) value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("effect")) { + this.effect = null; + } else if (name.equals("incidence")) { + this.incidence = null; + } else if (name.equals("management")) { + this.getManagement().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2050,6 +2120,15 @@ public class ClinicalUseDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item[x]")) { + this.item = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2291,6 +2370,19 @@ public class ClinicalUseDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("symptomConditionEffect")) { + this.symptomConditionEffect = null; + } else if (name.equals("classification")) { + this.classification = null; + } else if (name.equals("frequencyOfOccurrence")) { + this.frequencyOfOccurrence = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2527,6 +2619,17 @@ public class ClinicalUseDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("code")) { + this.code = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3302,6 +3405,38 @@ public class ClinicalUseDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("type")) { + value = new ClinicalUseDefinitionTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("subject")) { + this.getSubject().remove(value); + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("contraindication")) { + this.contraindication = (ClinicalUseDefinitionContraindicationComponent) value; // ClinicalUseDefinitionContraindicationComponent + } else if (name.equals("indication")) { + this.indication = (ClinicalUseDefinitionIndicationComponent) value; // ClinicalUseDefinitionIndicationComponent + } else if (name.equals("interaction")) { + this.interaction = (ClinicalUseDefinitionInteractionComponent) value; // ClinicalUseDefinitionInteractionComponent + } else if (name.equals("population")) { + this.getPopulation().remove(value); + } else if (name.equals("library")) { + this.getLibrary().remove(value); + } else if (name.equals("undesirableEffect")) { + this.undesirableEffect = (ClinicalUseDefinitionUndesirableEffectComponent) value; // ClinicalUseDefinitionUndesirableEffectComponent + } else if (name.equals("warning")) { + this.warning = (ClinicalUseDefinitionWarningComponent) value; // ClinicalUseDefinitionWarningComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeSystem.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeSystem.java index a5277910e..c4d1b6474 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeSystem.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeSystem.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -676,6 +676,22 @@ public class CodeSystem extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("operator")) { + value = new FilterOperatorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getOperator().add((Enumeration) value); + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1076,6 +1092,22 @@ public class CodeSystem extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("uri")) { + this.uri = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("type")) { + value = new PropertyTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1612,6 +1644,25 @@ public class CodeSystem extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("display")) { + this.display = null; + } else if (name.equals("definition")) { + this.definition = null; + } else if (name.equals("designation")) { + this.getDesignation().add((ConceptDefinitionDesignationComponent) value); + } else if (name.equals("property")) { + this.getProperty().add((ConceptPropertyComponent) value); + } else if (name.equals("concept")) { + this.getConcept().add((ConceptDefinitionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2021,6 +2072,21 @@ public class CodeSystem extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("language")) { + this.language = null; + } else if (name.equals("use")) { + this.use = null; + } else if (name.equals("additionalUse")) { + this.getAdditionalUse().remove(value); + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2379,6 +2445,17 @@ public class CodeSystem extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4917,6 +4994,90 @@ public class CodeSystem extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("topic")) { + this.getTopic().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("caseSensitive")) { + this.caseSensitive = null; + } else if (name.equals("valueSet")) { + this.valueSet = null; + } else if (name.equals("hierarchyMeaning")) { + value = new CodeSystemHierarchyMeaningEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.hierarchyMeaning = (Enumeration) value; // Enumeration + } else if (name.equals("compositional")) { + this.compositional = null; + } else if (name.equals("versionNeeded")) { + this.versionNeeded = null; + } else if (name.equals("content")) { + value = new CodeSystemContentModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.content = (Enumeration) value; // Enumeration + } else if (name.equals("supplements")) { + this.supplements = null; + } else if (name.equals("count")) { + this.count = null; + } else if (name.equals("filter")) { + this.getFilter().add((CodeSystemFilterComponent) value); + } else if (name.equals("property")) { + this.getProperty().add((PropertyComponent) value); + } else if (name.equals("concept")) { + this.getConcept().add((ConceptDefinitionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableConcept.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableConcept.java index 2994ba3f8..c36cb1446 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableConcept.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableConcept.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -227,6 +227,17 @@ public class CodeableConcept extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("coding")) { + this.getCoding().remove(value); + } else if (name.equals("text")) { + this.text = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableReference.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableReference.java index 0fad9a011..2489e5143 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableReference.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableReference.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -172,6 +172,17 @@ public class CodeableReference extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("concept")) { + this.concept = null; + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coding.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coding.java index 77f611191..569bbdb55 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coding.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coding.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -424,6 +424,23 @@ public class Coding extends DataType implements IBaseCoding, ICompositeType, ICo return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("system")) { + this.system = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("display")) { + this.display = null; + } else if (name.equals("userSelected")) { + this.userSelected = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Communication.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Communication.java index a31b88bfc..9d72b6e41 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Communication.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Communication.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -192,6 +192,15 @@ public class Communication extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("content[x]")) { + this.content = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1681,6 +1690,59 @@ public class Communication extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.getInstantiatesCanonical().remove(value); + } else if (name.equals("instantiatesUri")) { + this.getInstantiatesUri().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("inResponseTo")) { + this.getInResponseTo().remove(value); + } else if (name.equals("status")) { + value = new EventStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.statusReason = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("medium")) { + this.getMedium().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("topic")) { + this.topic = null; + } else if (name.equals("about")) { + this.getAbout().remove(value); + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("sent")) { + this.sent = null; + } else if (name.equals("received")) { + this.received = null; + } else if (name.equals("recipient")) { + this.getRecipient().remove(value); + } else if (name.equals("sender")) { + this.sender = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("payload")) { + this.getPayload().add((CommunicationPayloadComponent) value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CommunicationRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CommunicationRequest.java index 483b3a445..f1d8b3197 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CommunicationRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CommunicationRequest.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -192,6 +192,15 @@ public class CommunicationRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("content[x]")) { + this.content = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1657,6 +1666,60 @@ public class CommunicationRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("replaces")) { + this.getReplaces().remove(value); + } else if (name.equals("groupIdentifier")) { + this.groupIdentifier = null; + } else if (name.equals("status")) { + value = new RequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.statusReason = null; + } else if (name.equals("intent")) { + value = new RequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("doNotPerform")) { + this.doNotPerform = null; + } else if (name.equals("medium")) { + this.getMedium().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("about")) { + this.getAbout().remove(value); + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("payload")) { + this.getPayload().add((CommunicationRequestPayloadComponent) value); + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("authoredOn")) { + this.authoredOn = null; + } else if (name.equals("requester")) { + this.requester = null; + } else if (name.equals("recipient")) { + this.getRecipient().remove(value); + } else if (name.equals("informationProvider")) { + this.getInformationProvider().remove(value); + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CompartmentDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CompartmentDefinition.java index 89cc596a1..240ddf0fa 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CompartmentDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CompartmentDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -436,6 +436,23 @@ public class CompartmentDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("param")) { + this.getParam().remove(value); + } else if (name.equals("documentation")) { + this.documentation = null; + } else if (name.equals("startParam")) { + this.startParam = null; + } else if (name.equals("endParam")) { + this.endParam = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1758,6 +1775,47 @@ public class CompartmentDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("code")) { + value = new CompartmentTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.code = (Enumeration) value; // Enumeration + } else if (name.equals("search")) { + this.search = null; + } else if (name.equals("resource")) { + this.getResource().add((CompartmentDefinitionResourceComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Composition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Composition.java index 34ade6b96..7e09d8629 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Composition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Composition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -250,6 +250,19 @@ public class Composition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("mode")) { + this.mode = null; + } else if (name.equals("time")) { + this.time = null; + } else if (name.equals("party")) { + this.party = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -488,6 +501,17 @@ public class Composition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("period")) { + this.period = null; + } else if (name.equals("detail")) { + this.getDetail().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1080,6 +1104,31 @@ public class Composition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("focus")) { + this.focus = null; + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("orderedBy")) { + this.orderedBy = null; + } else if (name.equals("entry")) { + this.getEntry().remove(value); + } else if (name.equals("emptyReason")) { + this.emptyReason = null; + } else if (name.equals("section")) { + this.getSection().add((SectionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2448,6 +2497,52 @@ public class Composition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("status")) { + value = new CompositionStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("subject")) { + this.getSubject().remove(value); + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("attester")) { + this.getAttester().add((CompositionAttesterComponent) value); + } else if (name.equals("custodian")) { + this.custodian = null; + } else if (name.equals("relatesTo")) { + this.getRelatesTo().remove(value); + } else if (name.equals("event")) { + this.getEvent().add((CompositionEventComponent) value); + } else if (name.equals("section")) { + this.getSection().add((SectionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConceptMap.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConceptMap.java index 14774c6c6..0f9467e18 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConceptMap.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConceptMap.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -855,6 +855,24 @@ public class ConceptMap extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("uri")) { + this.uri = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("type")) { + value = new ConceptMapPropertyTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("system")) { + this.system = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1257,6 +1275,22 @@ public class ConceptMap extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("uri")) { + this.uri = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("type")) { + value = new ConceptMapAttributeTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1636,6 +1670,21 @@ public class ConceptMap extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("source")) { + this.source = null; + } else if (name.equals("target")) { + this.target = null; + } else if (name.equals("element")) { + this.getElement().add((SourceElementComponent) value); + } else if (name.equals("unmapped")) { + this.unmapped = (ConceptMapGroupUnmappedComponent) value; // ConceptMapGroupUnmappedComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2096,6 +2145,23 @@ public class ConceptMap extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("display")) { + this.display = null; + } else if (name.equals("valueSet")) { + this.valueSet = null; + } else if (name.equals("noMap")) { + this.noMap = null; + } else if (name.equals("target")) { + this.getTarget().add((TargetElementComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2773,6 +2839,30 @@ public class ConceptMap extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("display")) { + this.display = null; + } else if (name.equals("valueSet")) { + this.valueSet = null; + } else if (name.equals("relationship")) { + value = new ConceptMapRelationshipEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.relationship = (Enumeration) value; // Enumeration + } else if (name.equals("comment")) { + this.comment = null; + } else if (name.equals("property")) { + this.getProperty().add((MappingPropertyComponent) value); + } else if (name.equals("dependsOn")) { + this.getDependsOn().add((OtherElementComponent) value); + } else if (name.equals("product")) { + this.getProduct().add((OtherElementComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3164,6 +3254,17 @@ public class ConceptMap extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3560,6 +3661,19 @@ public class ConceptMap extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("attribute")) { + this.attribute = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("valueSet")) { + this.valueSet = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4101,6 +4215,27 @@ public class ConceptMap extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("mode")) { + value = new ConceptMapGroupUnmappedModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.mode = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("display")) { + this.display = null; + } else if (name.equals("valueSet")) { + this.valueSet = null; + } else if (name.equals("relationship")) { + value = new ConceptMapRelationshipEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.relationship = (Enumeration) value; // Enumeration + } else if (name.equals("otherMap")) { + this.otherMap = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6281,6 +6416,76 @@ public class ConceptMap extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("topic")) { + this.getTopic().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("property")) { + this.getProperty().add((PropertyComponent) value); + } else if (name.equals("additionalAttribute")) { + this.getAdditionalAttribute().add((AdditionalAttributeComponent) value); + } else if (name.equals("sourceScope[x]")) { + this.sourceScope = null; + } else if (name.equals("targetScope[x]")) { + this.targetScope = null; + } else if (name.equals("group")) { + this.getGroup().add((ConceptMapGroupComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Condition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Condition.java index aebfba4ef..ca8e6ce95 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Condition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Condition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -185,6 +185,17 @@ public class Condition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -456,6 +467,19 @@ public class Condition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("summary")) { + this.summary = null; + } else if (name.equals("assessment")) { + this.getAssessment().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1613,6 +1637,45 @@ public class Condition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("clinicalStatus")) { + this.clinicalStatus = null; + } else if (name.equals("verificationStatus")) { + this.verificationStatus = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("severity")) { + this.severity = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("bodySite")) { + this.getBodySite().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("onset[x]")) { + this.onset = null; + } else if (name.equals("abatement[x]")) { + this.abatement = null; + } else if (name.equals("recordedDate")) { + this.recordedDate = null; + } else if (name.equals("participant")) { + this.getParticipant().add((ConditionParticipantComponent) value); + } else if (name.equals("stage")) { + this.getStage().add((ConditionStageComponent) value); + } else if (name.equals("evidence")) { + this.getEvidence().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConditionDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConditionDefinition.java index 0675890e1..6c05e283b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConditionDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConditionDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -387,6 +387,17 @@ public class ConditionDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("code")) { + this.code = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -590,6 +601,17 @@ public class ConditionDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("code")) { + this.code = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -894,6 +916,20 @@ public class ConditionDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new ConditionPreconditionTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1140,6 +1176,18 @@ public class ConditionDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("purpose")) { + value = new ConditionQuestionnairePurposeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.purpose = (Enumeration) value; // Enumeration + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1348,6 +1396,17 @@ public class ConditionDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("role")) { + this.role = null; + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3693,6 +3752,72 @@ public class ConditionDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("subtitle")) { + this.subtitle = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("severity")) { + this.severity = null; + } else if (name.equals("bodySite")) { + this.bodySite = null; + } else if (name.equals("stage")) { + this.stage = null; + } else if (name.equals("hasSeverity")) { + this.hasSeverity = null; + } else if (name.equals("hasBodySite")) { + this.hasBodySite = null; + } else if (name.equals("hasStage")) { + this.hasStage = null; + } else if (name.equals("definition")) { + this.getDefinition().remove(value); + } else if (name.equals("observation")) { + this.getObservation().add((ConditionDefinitionObservationComponent) value); + } else if (name.equals("medication")) { + this.getMedication().add((ConditionDefinitionMedicationComponent) value); + } else if (name.equals("precondition")) { + this.getPrecondition().add((ConditionDefinitionPreconditionComponent) value); + } else if (name.equals("team")) { + this.getTeam().remove(value); + } else if (name.equals("questionnaire")) { + this.getQuestionnaire().add((ConditionDefinitionQuestionnaireComponent) value); + } else if (name.equals("plan")) { + this.getPlan().add((ConditionDefinitionPlanComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Consent.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Consent.java index 3bc48a16e..61f665799 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Consent.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Consent.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -362,6 +362,17 @@ public class Consent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("reference")) { + this.reference = null; + } else if (name.equals("url")) { + this.url = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -746,6 +757,23 @@ public class Consent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("verified")) { + this.verified = null; + } else if (name.equals("verificationType")) { + this.verificationType = null; + } else if (name.equals("verifiedBy")) { + this.verifiedBy = null; + } else if (name.equals("verifiedWith")) { + this.verifiedWith = null; + } else if (name.equals("verificationDate")) { + this.getVerificationDate().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1631,6 +1659,37 @@ public class Consent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("period")) { + this.period = null; + } else if (name.equals("actor")) { + this.getActor().add((ProvisionActorComponent) value); + } else if (name.equals("action")) { + this.getAction().remove(value); + } else if (name.equals("securityLabel")) { + this.getSecurityLabel().remove(value); + } else if (name.equals("purpose")) { + this.getPurpose().remove(value); + } else if (name.equals("documentType")) { + this.getDocumentType().remove(value); + } else if (name.equals("resourceType")) { + this.getResourceType().remove(value); + } else if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("dataPeriod")) { + this.dataPeriod = null; + } else if (name.equals("data")) { + this.getData().add((ProvisionDataComponent) value); + } else if (name.equals("expression")) { + this.expression = null; + } else if (name.equals("provision")) { + this.getProvision().add((ProvisionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1936,6 +1995,17 @@ public class Consent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("role")) { + this.role = null; + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2170,6 +2240,18 @@ public class Consent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("meaning")) { + value = new ConsentDataMeaningEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.meaning = (Enumeration) value; // Enumeration + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3427,6 +3509,51 @@ public class Consent extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new ConsentStateEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("grantor")) { + this.getGrantor().remove(value); + } else if (name.equals("grantee")) { + this.getGrantee().remove(value); + } else if (name.equals("manager")) { + this.getManager().remove(value); + } else if (name.equals("controller")) { + this.getController().remove(value); + } else if (name.equals("sourceAttachment")) { + this.getSourceAttachment().remove(value); + } else if (name.equals("sourceReference")) { + this.getSourceReference().remove(value); + } else if (name.equals("regulatoryBasis")) { + this.getRegulatoryBasis().remove(value); + } else if (name.equals("policyBasis")) { + this.policyBasis = (ConsentPolicyBasisComponent) value; // ConsentPolicyBasisComponent + } else if (name.equals("policyText")) { + this.getPolicyText().remove(value); + } else if (name.equals("verification")) { + this.getVerification().add((ConsentVerificationComponent) value); + } else if (name.equals("decision")) { + value = new ConsentProvisionTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.decision = (Enumeration) value; // Enumeration + } else if (name.equals("provision")) { + this.getProvision().add((ProvisionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactDetail.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactDetail.java index 24b68910d..396754475 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactDetail.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactDetail.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -228,6 +228,17 @@ public class ContactDetail extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("telecom")) { + this.getTelecom().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactPoint.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactPoint.java index b6f326853..a1ad047bf 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactPoint.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactPoint.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -712,6 +712,25 @@ public class ContactPoint extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("system")) { + value = new ContactPointSystemEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.system = (Enumeration) value; // Enumeration + } else if (name.equals("value")) { + this.value = null; + } else if (name.equals("use")) { + value = new ContactPointUseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.use = (Enumeration) value; // Enumeration + } else if (name.equals("rank")) { + this.rank = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contract.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contract.java index 2590dcbac..4baff65be 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contract.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contract.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1027,6 +1027,26 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("subType")) { + this.subType = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("publicationDate")) { + this.publicationDate = null; + } else if (name.equals("publicationStatus")) { + value = new ContractResourcePublicationStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.publicationStatus = (Enumeration) value; // Enumeration + } else if (name.equals("copyright")) { + this.copyright = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1853,6 +1873,37 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("issued")) { + this.issued = null; + } else if (name.equals("applies")) { + this.applies = null; + } else if (name.equals("topic[x]")) { + this.topic = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("subType")) { + this.subType = null; + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("securityLabel")) { + this.getSecurityLabel().add((SecurityLabelComponent) value); + } else if (name.equals("offer")) { + this.offer = (ContractOfferComponent) value; // ContractOfferComponent + } else if (name.equals("asset")) { + this.getAsset().add((ContractAssetComponent) value); + } else if (name.equals("action")) { + this.getAction().add((ActionComponent) value); + } else if (name.equals("group")) { + this.getGroup().add((TermComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2328,6 +2379,21 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("number")) { + this.getNumber().remove(value); + } else if (name.equals("classification")) { + this.classification = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("control")) { + this.getControl().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3084,6 +3150,33 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("party")) { + this.getParty().add((ContractPartyComponent) value); + } else if (name.equals("topic")) { + this.topic = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("decision")) { + this.decision = null; + } else if (name.equals("decisionMode")) { + this.getDecisionMode().remove(value); + } else if (name.equals("answer")) { + this.getAnswer().add((AnswerComponent) value); + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("linkId")) { + this.getLinkId().remove(value); + } else if (name.equals("securityLabelNumber")) { + this.getSecurityLabelNumber().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3402,6 +3495,17 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("reference")) { + this.getReference().remove(value); + } else if (name.equals("role")) { + this.role = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3765,6 +3869,15 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4901,6 +5014,43 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("scope")) { + this.scope = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("typeReference")) { + this.getTypeReference().remove(value); + } else if (name.equals("subtype")) { + this.getSubtype().remove(value); + } else if (name.equals("relationship")) { + this.relationship = null; + } else if (name.equals("context")) { + this.getContext().add((AssetContextComponent) value); + } else if (name.equals("condition")) { + this.condition = null; + } else if (name.equals("periodType")) { + this.getPeriodType().remove(value); + } else if (name.equals("period")) { + this.getPeriod().remove(value); + } else if (name.equals("usePeriod")) { + this.getUsePeriod().remove(value); + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("linkId")) { + this.getLinkId().remove(value); + } else if (name.equals("answer")) { + this.getAnswer().add((AnswerComponent) value); + } else if (name.equals("securityLabelNumber")) { + this.getSecurityLabelNumber().remove(value); + } else if (name.equals("valuedItem")) { + this.getValuedItem().add((ValuedItemComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5326,6 +5476,19 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("reference")) { + this.reference = null; + } else if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("text")) { + this.text = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6270,6 +6433,41 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("entity[x]")) { + this.entity = null; + } else if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("effectiveTime")) { + this.effectiveTime = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("points")) { + this.points = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("payment")) { + this.payment = null; + } else if (name.equals("paymentDate")) { + this.paymentDate = null; + } else if (name.equals("responsible")) { + this.responsible = null; + } else if (name.equals("recipient")) { + this.recipient = null; + } else if (name.equals("linkId")) { + this.getLinkId().remove(value); + } else if (name.equals("securityLabelNumber")) { + this.getSecurityLabelNumber().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -7684,6 +7882,51 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("doNotPerform")) { + this.doNotPerform = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("subject")) { + this.getSubject().add((ActionSubjectComponent) value); + } else if (name.equals("intent")) { + this.intent = null; + } else if (name.equals("linkId")) { + this.getLinkId().remove(value); + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("context")) { + this.context = null; + } else if (name.equals("contextLinkId")) { + this.getContextLinkId().remove(value); + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("requester")) { + this.getRequester().remove(value); + } else if (name.equals("requesterLinkId")) { + this.getRequesterLinkId().remove(value); + } else if (name.equals("performerType")) { + this.getPerformerType().remove(value); + } else if (name.equals("performerRole")) { + this.performerRole = null; + } else if (name.equals("performer")) { + this.performer = null; + } else if (name.equals("performerLinkId")) { + this.getPerformerLinkId().remove(value); + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("reasonLinkId")) { + this.getReasonLinkId().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("securityLabelNumber")) { + this.getSecurityLabelNumber().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8096,6 +8339,17 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("reference")) { + this.getReference().remove(value); + } else if (name.equals("role")) { + this.role = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8379,6 +8633,19 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("party")) { + this.party = null; + } else if (name.equals("signature")) { + this.getSignature().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8590,6 +8857,15 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("content[x]")) { + this.content = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8788,6 +9064,15 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("content[x]")) { + this.content = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8986,6 +9271,15 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("content[x]")) { + this.content = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -11075,6 +11369,80 @@ public class Contract extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("url")) { + this.url = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("status")) { + value = new ContractResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("legalState")) { + this.legalState = null; + } else if (name.equals("instantiatesCanonical")) { + this.instantiatesCanonical = null; + } else if (name.equals("instantiatesUri")) { + this.instantiatesUri = null; + } else if (name.equals("contentDerivative")) { + this.contentDerivative = null; + } else if (name.equals("issued")) { + this.issued = null; + } else if (name.equals("applies")) { + this.applies = null; + } else if (name.equals("expirationType")) { + this.expirationType = null; + } else if (name.equals("subject")) { + this.getSubject().remove(value); + } else if (name.equals("authority")) { + this.getAuthority().remove(value); + } else if (name.equals("domain")) { + this.getDomain().remove(value); + } else if (name.equals("site")) { + this.getSite().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("subtitle")) { + this.subtitle = null; + } else if (name.equals("alias")) { + this.getAlias().remove(value); + } else if (name.equals("author")) { + this.author = null; + } else if (name.equals("scope")) { + this.scope = null; + } else if (name.equals("topic[x]")) { + this.topic = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("subType")) { + this.getSubType().remove(value); + } else if (name.equals("contentDefinition")) { + this.contentDefinition = (ContentDefinitionComponent) value; // ContentDefinitionComponent + } else if (name.equals("term")) { + this.getTerm().add((TermComponent) value); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().remove(value); + } else if (name.equals("relevantHistory")) { + this.getRelevantHistory().remove(value); + } else if (name.equals("signer")) { + this.getSigner().add((SignatoryComponent) value); + } else if (name.equals("friendly")) { + this.getFriendly().add((FriendlyLanguageComponent) value); + } else if (name.equals("legal")) { + this.getLegal().add((LegalLanguageComponent) value); + } else if (name.equals("rule")) { + this.getRule().add((ComputableLanguageComponent) value); + } else if (name.equals("legallyBinding[x]")) { + this.legallyBinding = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contributor.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contributor.java index 44befd511..8ac23e510 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contributor.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contributor.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -423,6 +423,20 @@ public class Contributor extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new ContributorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coverage.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coverage.java index 2ab981407..321b87cbf 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coverage.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coverage.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -322,6 +322,17 @@ public class Coverage extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("party")) { + this.party = null; + } else if (name.equals("responsibility")) { + this.responsibility = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -597,6 +608,19 @@ public class Coverage extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value")) { + this.value = null; + } else if (name.equals("name")) { + this.name = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1064,6 +1088,27 @@ public class Coverage extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("network")) { + this.network = null; + } else if (name.equals("unit")) { + this.unit = null; + } else if (name.equals("term")) { + this.term = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("exception")) { + this.getException().add((ExemptionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1320,6 +1365,17 @@ public class Coverage extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2547,6 +2603,55 @@ public class Coverage extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("kind")) { + value = new KindEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.kind = (Enumeration) value; // Enumeration + } else if (name.equals("paymentBy")) { + this.getPaymentBy().add((CoveragePaymentByComponent) value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("policyHolder")) { + this.policyHolder = null; + } else if (name.equals("subscriber")) { + this.subscriber = null; + } else if (name.equals("subscriberId")) { + this.getSubscriberId().remove(value); + } else if (name.equals("beneficiary")) { + this.beneficiary = null; + } else if (name.equals("dependent")) { + this.dependent = null; + } else if (name.equals("relationship")) { + this.relationship = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("insurer")) { + this.insurer = null; + } else if (name.equals("class")) { + this.getClass_().add((ClassComponent) value); + } else if (name.equals("order")) { + this.order = null; + } else if (name.equals("network")) { + this.network = null; + } else if (name.equals("costToBeneficiary")) { + this.getCostToBeneficiary().add((CostToBeneficiaryComponent) value); + } else if (name.equals("subrogation")) { + this.subrogation = null; + } else if (name.equals("contract")) { + this.getContract().remove(value); + } else if (name.equals("insurancePlan")) { + this.insurancePlan = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityRequest.java index 0eacfad81..a2da65dcc 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityRequest.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -345,6 +345,17 @@ public class CoverageEligibilityRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("when[x]")) { + this.when = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -641,6 +652,19 @@ public class CoverageEligibilityRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("information")) { + this.information = null; + } else if (name.equals("appliesToAll")) { + this.appliesToAll = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -943,6 +967,19 @@ public class CoverageEligibilityRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("focal")) { + this.focal = null; + } else if (name.equals("coverage")) { + this.coverage = null; + } else if (name.equals("businessArrangement")) { + this.businessArrangement = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1591,6 +1628,33 @@ public class CoverageEligibilityRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("supportingInfoSequence")) { + this.getSupportingInfoSequence().remove(value); + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("provider")) { + this.provider = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("facility")) { + this.facility = null; + } else if (name.equals("diagnosis")) { + this.getDiagnosis().add((DiagnosisComponent) value); + } else if (name.equals("detail")) { + this.getDetail().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1858,6 +1922,15 @@ public class CoverageEligibilityRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("diagnosis[x]")) { + this.diagnosis = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2835,6 +2908,45 @@ public class CoverageEligibilityRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("priority")) { + this.priority = null; + } else if (name.equals("purpose")) { + value = new EligibilityRequestPurposeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getPurpose().add((Enumeration) value); + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("event")) { + this.getEvent().add((CoverageEligibilityRequestEventComponent) value); + } else if (name.equals("serviced[x]")) { + this.serviced = null; + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("enterer")) { + this.enterer = null; + } else if (name.equals("provider")) { + this.provider = null; + } else if (name.equals("insurer")) { + this.insurer = null; + } else if (name.equals("facility")) { + this.facility = null; + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().add((SupportingInformationComponent) value); + } else if (name.equals("insurance")) { + this.getInsurance().add((InsuranceComponent) value); + } else if (name.equals("item")) { + this.getItem().add((DetailsComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityResponse.java index 2c7a37e86..64e39452e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityResponse.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -473,6 +473,17 @@ public class CoverageEligibilityResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("when[x]")) { + this.when = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -815,6 +826,21 @@ public class CoverageEligibilityResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("coverage")) { + this.coverage = null; + } else if (name.equals("inforce")) { + this.inforce = null; + } else if (name.equals("benefitPeriod")) { + this.benefitPeriod = null; + } else if (name.equals("item")) { + this.getItem().add((ItemsComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1713,6 +1739,41 @@ public class CoverageEligibilityResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("provider")) { + this.provider = null; + } else if (name.equals("excluded")) { + this.excluded = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("network")) { + this.network = null; + } else if (name.equals("unit")) { + this.unit = null; + } else if (name.equals("term")) { + this.term = null; + } else if (name.equals("benefit")) { + this.getBenefit().add((BenefitComponent) value); + } else if (name.equals("authorizationRequired")) { + this.authorizationRequired = null; + } else if (name.equals("authorizationSupporting")) { + this.getAuthorizationSupporting().remove(value); + } else if (name.equals("authorizationUrl")) { + this.authorizationUrl = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2151,6 +2212,19 @@ public class CoverageEligibilityResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("allowed[x]")) { + this.allowed = null; + } else if (name.equals("used[x]")) { + this.used = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2424,6 +2498,17 @@ public class CoverageEligibilityResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("expression")) { + this.getExpression().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3492,6 +3577,48 @@ public class CoverageEligibilityResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("purpose")) { + value = new EligibilityResponsePurposeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getPurpose().add((Enumeration) value); + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("event")) { + this.getEvent().add((CoverageEligibilityResponseEventComponent) value); + } else if (name.equals("serviced[x]")) { + this.serviced = null; + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("requestor")) { + this.requestor = null; + } else if (name.equals("request")) { + this.request = null; + } else if (name.equals("outcome")) { + value = new EligibilityOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration + } else if (name.equals("disposition")) { + this.disposition = null; + } else if (name.equals("insurer")) { + this.insurer = null; + } else if (name.equals("insurance")) { + this.getInsurance().add((InsuranceComponent) value); + } else if (name.equals("preAuthRef")) { + this.preAuthRef = null; + } else if (name.equals("form")) { + this.form = null; + } else if (name.equals("error")) { + this.getError().add((ErrorsComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataRequirement.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataRequirement.java index 567c60d7b..25e613541 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataRequirement.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataRequirement.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -629,6 +629,21 @@ public class DataRequirement extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("path")) { + this.path = null; + } else if (name.equals("searchParam")) { + this.searchParam = null; + } else if (name.equals("valueSet")) { + this.valueSet = null; + } else if (name.equals("code")) { + this.getCode().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -982,6 +997,19 @@ public class DataRequirement extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("path")) { + this.path = null; + } else if (name.equals("searchParam")) { + this.searchParam = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1401,6 +1429,22 @@ public class DataRequirement extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("path")) { + this.path = null; + } else if (name.equals("searchParam")) { + this.searchParam = null; + } else if (name.equals("comparator")) { + value = new ValueFilterComparatorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.comparator = (Enumeration) value; // Enumeration + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1679,6 +1723,18 @@ public class DataRequirement extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("path")) { + this.path = null; + } else if (name.equals("direction")) { + value = new SortDirectionEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.direction = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2433,6 +2489,32 @@ The value of mustSupport SHALL be a FHIRPath resolvable on the type of the DataR return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new FHIRTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("profile")) { + this.getProfile().remove(value); + } else if (name.equals("subject[x]")) { + this.subject = null; + } else if (name.equals("mustSupport")) { + this.getMustSupport().remove(value); + } else if (name.equals("codeFilter")) { + this.getCodeFilter().add((DataRequirementCodeFilterComponent) value); + } else if (name.equals("dateFilter")) { + this.getDateFilter().add((DataRequirementDateFilterComponent) value); + } else if (name.equals("valueFilter")) { + this.getValueFilter().add((DataRequirementValueFilterComponent) value); + } else if (name.equals("limit")) { + this.limit = null; + } else if (name.equals("sort")) { + this.getSort().add((DataRequirementSortComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DetectedIssue.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DetectedIssue.java index 55a9b29ea..43e6e62b1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DetectedIssue.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DetectedIssue.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -476,6 +476,17 @@ public class DetectedIssue extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("detail")) { + this.getDetail().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -824,6 +835,21 @@ public class DetectedIssue extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("action")) { + this.action = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("author")) { + this.author = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1796,6 +1822,43 @@ public class DetectedIssue extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new DetectedIssueStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("severity")) { + value = new DetectedIssueSeverityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.severity = (Enumeration) value; // Enumeration + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("identified[x]")) { + this.identified = null; + } else if (name.equals("author")) { + this.author = null; + } else if (name.equals("implicated")) { + this.getImplicated().remove(value); + } else if (name.equals("evidence")) { + this.getEvidence().add((DetectedIssueEvidenceComponent) value); + } else if (name.equals("detail")) { + this.detail = null; + } else if (name.equals("reference")) { + this.reference = null; + } else if (name.equals("mitigation")) { + this.getMitigation().add((DetectedIssueMitigationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Device.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Device.java index 21724cb99..8bd526e0a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Device.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Device.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -795,6 +795,26 @@ public class Device extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("deviceIdentifier")) { + this.deviceIdentifier = null; + } else if (name.equals("issuer")) { + this.issuer = null; + } else if (name.equals("jurisdiction")) { + this.jurisdiction = null; + } else if (name.equals("carrierAIDC")) { + this.carrierAIDC = null; + } else if (name.equals("carrierHRF")) { + this.carrierHRF = null; + } else if (name.equals("entryType")) { + value = new UDIEntryTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.entryType = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1137,6 +1157,20 @@ public class Device extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value")) { + this.value = null; + } else if (name.equals("type")) { + value = new DeviceNameTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("display")) { + this.display = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1477,6 +1511,21 @@ public class Device extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("component")) { + this.component = null; + } else if (name.equals("installDate")) { + this.installDate = null; + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1766,6 +1815,19 @@ public class Device extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("specification")) { + this.specification = null; + } else if (name.equals("version")) { + this.version = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2095,6 +2157,17 @@ public class Device extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4124,6 +4197,78 @@ public class Device extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("displayName")) { + this.displayName = null; + } else if (name.equals("definition")) { + this.definition = null; + } else if (name.equals("udiCarrier")) { + this.getUdiCarrier().add((DeviceUdiCarrierComponent) value); + } else if (name.equals("status")) { + value = new FHIRDeviceStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("availabilityStatus")) { + this.availabilityStatus = null; + } else if (name.equals("biologicalSourceEvent")) { + this.biologicalSourceEvent = null; + } else if (name.equals("manufacturer")) { + this.manufacturer = null; + } else if (name.equals("manufactureDate")) { + this.manufactureDate = null; + } else if (name.equals("expirationDate")) { + this.expirationDate = null; + } else if (name.equals("lotNumber")) { + this.lotNumber = null; + } else if (name.equals("serialNumber")) { + this.serialNumber = null; + } else if (name.equals("name")) { + this.getName().add((DeviceNameComponent) value); + } else if (name.equals("modelNumber")) { + this.modelNumber = null; + } else if (name.equals("partNumber")) { + this.partNumber = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("version")) { + this.getVersion().add((DeviceVersionComponent) value); + } else if (name.equals("conformsTo")) { + this.getConformsTo().add((DeviceConformsToComponent) value); + } else if (name.equals("property")) { + this.getProperty().add((DevicePropertyComponent) value); + } else if (name.equals("mode")) { + this.mode = null; + } else if (name.equals("cycle")) { + this.cycle = null; + } else if (name.equals("duration")) { + this.duration = null; + } else if (name.equals("owner")) { + this.owner = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("url")) { + this.url = null; + } else if (name.equals("endpoint")) { + this.getEndpoint().remove(value); + } else if (name.equals("gateway")) { + this.getGateway().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("safety")) { + this.getSafety().remove(value); + } else if (name.equals("parent")) { + this.parent = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceAssociation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceAssociation.java index 9e307ee64..4339b663b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceAssociation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceAssociation.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -253,6 +253,19 @@ public class DeviceAssociation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("status")) { + this.status = null; + } else if (name.equals("operator")) { + this.getOperator().remove(value); + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -864,6 +877,31 @@ public class DeviceAssociation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("device")) { + this.device = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("statusReason")) { + this.getStatusReason().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("bodyStructure")) { + this.bodyStructure = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("operation")) { + this.getOperation().add((DeviceAssociationOperationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDefinition.java index a74cc5fb4..517e7acd5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -741,6 +741,21 @@ public class DeviceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("deviceIdentifier")) { + this.deviceIdentifier = null; + } else if (name.equals("issuer")) { + this.issuer = null; + } else if (name.equals("jurisdiction")) { + this.jurisdiction = null; + } else if (name.equals("marketDistribution")) { + this.getMarketDistribution().add((UdiDeviceIdentifierMarketDistributionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -990,6 +1005,17 @@ public class DeviceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("marketPeriod")) { + this.marketPeriod = null; + } else if (name.equals("subJurisdiction")) { + this.subJurisdiction = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1368,6 +1394,22 @@ public class DeviceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new DeviceDefinitionRegulatoryIdentifierTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("deviceIdentifier")) { + this.deviceIdentifier = null; + } else if (name.equals("issuer")) { + this.issuer = null; + } else if (name.equals("jurisdiction")) { + this.jurisdiction = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1641,6 +1683,18 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("type")) { + value = new DeviceNameTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1878,6 +1932,17 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("justification")) { + this.getJustification().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2236,6 +2301,21 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("specification")) { + this.specification = null; + } else if (name.equals("version")) { + this.getVersion().remove(value); + } else if (name.equals("source")) { + this.getSource().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2488,6 +2568,17 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("reference")) { + this.reference = null; + } else if (name.equals("count")) { + this.count = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2952,6 +3043,25 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("count")) { + this.count = null; + } else if (name.equals("distributor")) { + this.getDistributor().add((PackagingDistributorComponent) value); + } else if (name.equals("udiDeviceIdentifier")) { + this.getUdiDeviceIdentifier().add((DeviceDefinitionUdiDeviceIdentifierComponent) value); + } else if (name.equals("packaging")) { + this.getPackaging().add((DeviceDefinitionPackagingComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3246,6 +3356,17 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("organizationReference")) { + this.getOrganizationReference().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3519,6 +3640,19 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("component")) { + this.component = null; + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3847,6 +3981,17 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4083,6 +4228,17 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("relation")) { + this.relation = null; + } else if (name.equals("relatedDevice")) { + this.relatedDevice = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4374,6 +4530,19 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("substance")) { + this.substance = null; + } else if (name.equals("alternate")) { + this.alternate = null; + } else if (name.equals("allergenicIndicator")) { + this.allergenicIndicator = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4973,6 +5142,27 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("usageInstruction")) { + this.usageInstruction = null; + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("indication")) { + this.getIndication().remove(value); + } else if (name.equals("contraindication")) { + this.getContraindication().remove(value); + } else if (name.equals("warning")) { + this.getWarning().remove(value); + } else if (name.equals("intendedUse")) { + this.intendedUse = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5324,6 +5514,20 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("recall")) { + this.recall = null; + } else if (name.equals("scope")) { + value = new DeviceCorrectiveActionScopeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.scope = (Enumeration) value; // Enumeration + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5647,6 +5851,21 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("chargeItemCode")) { + this.chargeItemCode = null; + } else if (name.equals("count")) { + this.count = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -7440,6 +7659,66 @@ RegisteredName | UserFriendlyName | PatientReportedName. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("udiDeviceIdentifier")) { + this.getUdiDeviceIdentifier().add((DeviceDefinitionUdiDeviceIdentifierComponent) value); + } else if (name.equals("regulatoryIdentifier")) { + this.getRegulatoryIdentifier().add((DeviceDefinitionRegulatoryIdentifierComponent) value); + } else if (name.equals("partNumber")) { + this.partNumber = null; + } else if (name.equals("manufacturer")) { + this.manufacturer = null; + } else if (name.equals("deviceName")) { + this.getDeviceName().add((DeviceDefinitionDeviceNameComponent) value); + } else if (name.equals("modelNumber")) { + this.modelNumber = null; + } else if (name.equals("classification")) { + this.getClassification().add((DeviceDefinitionClassificationComponent) value); + } else if (name.equals("conformsTo")) { + this.getConformsTo().add((DeviceDefinitionConformsToComponent) value); + } else if (name.equals("hasPart")) { + this.getHasPart().add((DeviceDefinitionHasPartComponent) value); + } else if (name.equals("packaging")) { + this.getPackaging().add((DeviceDefinitionPackagingComponent) value); + } else if (name.equals("version")) { + this.getVersion().add((DeviceDefinitionVersionComponent) value); + } else if (name.equals("safety")) { + this.getSafety().remove(value); + } else if (name.equals("shelfLifeStorage")) { + this.getShelfLifeStorage().remove(value); + } else if (name.equals("languageCode")) { + this.getLanguageCode().remove(value); + } else if (name.equals("property")) { + this.getProperty().add((DeviceDefinitionPropertyComponent) value); + } else if (name.equals("owner")) { + this.owner = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("link")) { + this.getLink().add((DeviceDefinitionLinkComponent) value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("material")) { + this.getMaterial().add((DeviceDefinitionMaterialComponent) value); + } else if (name.equals("productionIdentifierInUDI")) { + value = new DeviceProductionIdentifierInUDIEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getProductionIdentifierInUDI().add((Enumeration) value); + } else if (name.equals("guideline")) { + this.guideline = (DeviceDefinitionGuidelineComponent) value; // DeviceDefinitionGuidelineComponent + } else if (name.equals("correctiveAction")) { + this.correctiveAction = (DeviceDefinitionCorrectiveActionComponent) value; // DeviceDefinitionCorrectiveActionComponent + } else if (name.equals("chargeItem")) { + this.getChargeItem().add((DeviceDefinitionChargeItemComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDispense.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDispense.java index 95420432b..7feeaed1c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDispense.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDispense.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -393,6 +393,17 @@ public class DeviceDispense extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1675,6 +1686,56 @@ public class DeviceDispense extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new DeviceDispenseStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.statusReason = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("device")) { + this.device = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("receiver")) { + this.receiver = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("supportingInformation")) { + this.getSupportingInformation().remove(value); + } else if (name.equals("performer")) { + this.getPerformer().add((DeviceDispensePerformerComponent) value); + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("preparedDate")) { + this.preparedDate = null; + } else if (name.equals("whenHandedOver")) { + this.whenHandedOver = null; + } else if (name.equals("destination")) { + this.destination = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("usageInstruction")) { + this.usageInstruction = null; + } else if (name.equals("eventHistory")) { + this.getEventHistory().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceMetric.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceMetric.java index 9fac4e998..ff470ed5b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceMetric.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceMetric.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -809,6 +809,21 @@ public class DeviceMetric extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new DeviceMetricCalibrationTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("state")) { + value = new DeviceMetricCalibrationStateEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.state = (Enumeration) value; // Enumeration + } else if (name.equals("time")) { + this.time = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1435,6 +1450,33 @@ public class DeviceMetric extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("unit")) { + this.unit = null; + } else if (name.equals("device")) { + this.device = null; + } else if (name.equals("operationalStatus")) { + value = new DeviceMetricOperationalStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.operationalStatus = (Enumeration) value; // Enumeration + } else if (name.equals("color")) { + this.color = null; + } else if (name.equals("category")) { + value = new DeviceMetricCategoryEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.category = (Enumeration) value; // Enumeration + } else if (name.equals("measurementFrequency")) { + this.measurementFrequency = null; + } else if (name.equals("calibration")) { + this.getCalibration().add((DeviceMetricCalibrationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceRequest.java index b4c05ee02..1aa043ba6 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceRequest.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -239,6 +239,17 @@ public class DeviceRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1948,6 +1959,68 @@ public class DeviceRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.getInstantiatesCanonical().remove(value); + } else if (name.equals("instantiatesUri")) { + this.getInstantiatesUri().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("replaces")) { + this.getReplaces().remove(value); + } else if (name.equals("groupIdentifier")) { + this.groupIdentifier = null; + } else if (name.equals("status")) { + value = new RequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("intent")) { + value = new RequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("doNotPerform")) { + this.doNotPerform = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("parameter")) { + this.getParameter().add((DeviceRequestParameterComponent) value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("authoredOn")) { + this.authoredOn = null; + } else if (name.equals("requester")) { + this.requester = null; + } else if (name.equals("performer")) { + this.performer = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("asNeeded")) { + this.asNeeded = null; + } else if (name.equals("asNeededFor")) { + this.asNeededFor = null; + } else if (name.equals("insurance")) { + this.getInsurance().remove(value); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("relevantHistory")) { + this.getRelevantHistory().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceUsage.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceUsage.java index db8dfb103..d0ebe1223 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceUsage.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceUsage.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -393,6 +393,17 @@ public class DeviceUsage extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1490,6 +1501,48 @@ public class DeviceUsage extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("status")) { + value = new DeviceUsageStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("derivedFrom")) { + this.getDerivedFrom().remove(value); + } else if (name.equals("context")) { + this.context = null; + } else if (name.equals("timing[x]")) { + this.timing = null; + } else if (name.equals("dateAsserted")) { + this.dateAsserted = null; + } else if (name.equals("usageStatus")) { + this.usageStatus = null; + } else if (name.equals("usageReason")) { + this.getUsageReason().remove(value); + } else if (name.equals("adherence")) { + this.adherence = (DeviceUsageAdherenceComponent) value; // DeviceUsageAdherenceComponent + } else if (name.equals("informationSource")) { + this.informationSource = null; + } else if (name.equals("device")) { + this.device = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("bodySite")) { + this.bodySite = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DiagnosticReport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DiagnosticReport.java index 2c0b7f9a2..39daaa93e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DiagnosticReport.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DiagnosticReport.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -427,6 +427,17 @@ public class DiagnosticReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -661,6 +672,17 @@ public class DiagnosticReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("comment")) { + this.comment = null; + } else if (name.equals("link")) { + this.link = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2093,6 +2115,56 @@ public class DiagnosticReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("status")) { + value = new DiagnosticReportStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("effective[x]")) { + this.effective = null; + } else if (name.equals("issued")) { + this.issued = null; + } else if (name.equals("performer")) { + this.getPerformer().remove(value); + } else if (name.equals("resultsInterpreter")) { + this.getResultsInterpreter().remove(value); + } else if (name.equals("specimen")) { + this.getSpecimen().remove(value); + } else if (name.equals("result")) { + this.getResult().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("study")) { + this.getStudy().remove(value); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().add((DiagnosticReportSupportingInfoComponent) value); + } else if (name.equals("media")) { + this.getMedia().add((DiagnosticReportMediaComponent) value); + } else if (name.equals("composition")) { + this.composition = null; + } else if (name.equals("conclusion")) { + this.conclusion = null; + } else if (name.equals("conclusionCode")) { + this.getConclusionCode().remove(value); + } else if (name.equals("presentedForm")) { + this.getPresentedForm().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentReference.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentReference.java index f538d2579..f2d0d8902 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentReference.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentReference.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -362,6 +362,19 @@ public class DocumentReference extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("mode")) { + this.mode = null; + } else if (name.equals("time")) { + this.time = null; + } else if (name.equals("party")) { + this.party = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -580,6 +593,17 @@ public class DocumentReference extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("target")) { + this.target = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -818,6 +842,17 @@ public class DocumentReference extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("attachment")) { + this.attachment = null; + } else if (name.equals("profile")) { + this.getProfile().add((DocumentReferenceContentProfileComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1038,6 +1073,15 @@ public class DocumentReference extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2550,6 +2594,61 @@ public class DocumentReference extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("status")) { + value = new DocumentReferenceStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("docStatus")) { + value = new CompositionStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.docStatus = (Enumeration) value; // Enumeration + } else if (name.equals("modality")) { + this.getModality().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("context")) { + this.getContext().remove(value); + } else if (name.equals("event")) { + this.getEvent().remove(value); + } else if (name.equals("bodySite")) { + this.getBodySite().remove(value); + } else if (name.equals("facilityType")) { + this.facilityType = null; + } else if (name.equals("practiceSetting")) { + this.practiceSetting = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("attester")) { + this.getAttester().add((DocumentReferenceAttesterComponent) value); + } else if (name.equals("custodian")) { + this.custodian = null; + } else if (name.equals("relatesTo")) { + this.getRelatesTo().add((DocumentReferenceRelatesToComponent) value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("securityLabel")) { + this.getSecurityLabel().remove(value); + } else if (name.equals("content")) { + this.getContent().add((DocumentReferenceContentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DomainResource.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DomainResource.java index f526c099c..0c212525c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DomainResource.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DomainResource.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -304,6 +304,21 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("text")) { + this.text = null; + } else if (name.equals("contained")) { + this.getContained().remove(value); + } else if (name.equals("extension")) { + this.getExtension().remove(value); + } else if (name.equals("modifierExtension")) { + this.getModifierExtension().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Dosage.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Dosage.java index f66991931..ac7269c51 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Dosage.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Dosage.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -291,6 +291,19 @@ public class Dosage extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("dose[x]")) { + this.dose = null; + } else if (name.equals("rate[x]")) { + this.rate = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1193,6 +1206,41 @@ public class Dosage extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("additionalInstruction")) { + this.getAdditionalInstruction().remove(value); + } else if (name.equals("patientInstruction")) { + this.patientInstruction = null; + } else if (name.equals("timing")) { + this.timing = null; + } else if (name.equals("asNeeded")) { + this.asNeeded = null; + } else if (name.equals("asNeededFor")) { + this.getAsNeededFor().remove(value); + } else if (name.equals("site")) { + this.site = null; + } else if (name.equals("route")) { + this.route = null; + } else if (name.equals("method")) { + this.method = null; + } else if (name.equals("doseAndRate")) { + this.getDoseAndRate().add((DosageDoseAndRateComponent) value); + } else if (name.equals("maxDosePerPeriod")) { + this.getMaxDosePerPeriod().remove(value); + } else if (name.equals("maxDosePerAdministration")) { + this.maxDosePerAdministration = null; + } else if (name.equals("maxDosePerLifetime")) { + this.maxDosePerLifetime = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Element.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Element.java index d9876dbe8..f65a93c66 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Element.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Element.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -231,6 +231,17 @@ public abstract class Element extends Base implements IBaseHasExtensions, IBaseE return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("id")) { + this.id = null; + } else if (name.equals("extension")) { + this.getExtension().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java index 123304c4e..084b4e0df 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1326,6 +1326,22 @@ public class ElementDefinition extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("discriminator")) { + this.getDiscriminator().add((ElementDefinitionSlicingDiscriminatorComponent) value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("ordered")) { + this.ordered = null; + } else if (name.equals("rules")) { + value = new SlicingRulesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.rules = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1603,6 +1619,18 @@ public class ElementDefinition extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new DiscriminatorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("path")) { + this.path = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1919,6 +1947,19 @@ public class ElementDefinition extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("path")) { + this.path = null; + } else if (name.equals("min")) { + this.min = null; + } else if (name.equals("max")) { + this.max = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2415,6 +2456,25 @@ public class ElementDefinition extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("profile")) { + this.getProfile().remove(value); + } else if (name.equals("targetProfile")) { + this.getTargetProfile().remove(value); + } else if (name.equals("aggregation")) { + value = new AggregationModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getAggregation().add((Enumeration) value); + } else if (name.equals("versioning")) { + value = new ReferenceVersionRulesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.versioning = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3624,6 +3684,17 @@ public boolean hasTarget() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("label")) { + this.label = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4404,6 +4475,28 @@ public boolean hasTarget() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("key")) { + this.key = null; + } else if (name.equals("requirements")) { + this.requirements = null; + } else if (name.equals("severity")) { + value = new ConstraintSeverityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.severity = (Enumeration) value; // Enumeration + } else if (name.equals("suppress")) { + this.suppress = null; + } else if (name.equals("human")) { + this.human = null; + } else if (name.equals("expression")) { + this.expression = null; + } else if (name.equals("source")) { + this.source = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4827,6 +4920,22 @@ public boolean hasTarget() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("strength")) { + value = new BindingStrengthEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.strength = (Enumeration) value; // Enumeration + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("valueSet")) { + this.valueSet = null; + } else if (name.equals("additional")) { + this.getAdditional().add((ElementDefinitionBindingAdditionalComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5366,6 +5475,26 @@ public boolean hasTarget() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("purpose")) { + value = new AdditionalBindingPurposeVSEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.purpose = (Enumeration) value; // Enumeration + } else if (name.equals("valueSet")) { + this.valueSet = null; + } else if (name.equals("documentation")) { + this.documentation = null; + } else if (name.equals("shortDoco")) { + this.shortDoco = null; + } else if (name.equals("usage")) { + this.getUsage().remove(value); + } else if (name.equals("any")) { + this.any = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5777,6 +5906,21 @@ public boolean hasTarget() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identity")) { + this.identity = null; + } else if (name.equals("language")) { + this.language = null; + } else if (name.equals("map")) { + this.map = null; + } else if (name.equals("comment")) { + this.comment = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -11649,6 +11793,86 @@ If a pattern[x] is declared on a repeating element, the pattern applies to all r return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("path")) { + this.path = null; + } else if (name.equals("representation")) { + value = new PropertyRepresentationEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getRepresentation().add((Enumeration) value); + } else if (name.equals("sliceName")) { + this.sliceName = null; + } else if (name.equals("sliceIsConstraining")) { + this.sliceIsConstraining = null; + } else if (name.equals("label")) { + this.label = null; + } else if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("slicing")) { + this.slicing = (ElementDefinitionSlicingComponent) value; // ElementDefinitionSlicingComponent + } else if (name.equals("short")) { + this.short_ = null; + } else if (name.equals("definition")) { + this.definition = null; + } else if (name.equals("comment")) { + this.comment = null; + } else if (name.equals("requirements")) { + this.requirements = null; + } else if (name.equals("alias")) { + this.getAlias().remove(value); + } else if (name.equals("min")) { + this.min = null; + } else if (name.equals("max")) { + this.max = null; + } else if (name.equals("base")) { + this.base = (ElementDefinitionBaseComponent) value; // ElementDefinitionBaseComponent + } else if (name.equals("contentReference")) { + this.contentReference = null; + } else if (name.equals("type")) { + this.getType().add((TypeRefComponent) value); + } else if (name.equals("defaultValue[x]")) { + this.defaultValue = null; + } else if (name.equals("meaningWhenMissing")) { + this.meaningWhenMissing = null; + } else if (name.equals("orderMeaning")) { + this.orderMeaning = null; + } else if (name.equals("fixed[x]")) { + this.fixed = null; + } else if (name.equals("pattern[x]")) { + this.pattern = null; + } else if (name.equals("example")) { + this.getExample().add((ElementDefinitionExampleComponent) value); + } else if (name.equals("minValue[x]")) { + this.minValue = null; + } else if (name.equals("maxValue[x]")) { + this.maxValue = null; + } else if (name.equals("maxLength")) { + this.maxLength = null; + } else if (name.equals("condition")) { + this.getCondition().remove(value); + } else if (name.equals("constraint")) { + this.getConstraint().add((ElementDefinitionConstraintComponent) value); + } else if (name.equals("mustHaveValue")) { + this.mustHaveValue = null; + } else if (name.equals("valueAlternatives")) { + this.getValueAlternatives().remove(value); + } else if (name.equals("mustSupport")) { + this.mustSupport = null; + } else if (name.equals("isModifier")) { + this.isModifier = null; + } else if (name.equals("isModifierReason")) { + this.isModifierReason = null; + } else if (name.equals("isSummary")) { + this.isSummary = null; + } else if (name.equals("binding")) { + this.binding = (ElementDefinitionBindingComponent) value; // ElementDefinitionBindingComponent + } else if (name.equals("mapping")) { + this.getMapping().add((ElementDefinitionMappingComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Encounter.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Encounter.java index 808cfa911..1152f38b6 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Encounter.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Encounter.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -374,6 +374,19 @@ public class Encounter extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -646,6 +659,17 @@ public class Encounter extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("use")) { + this.getUse().remove(value); + } else if (name.equals("value")) { + this.getValue().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -913,6 +937,17 @@ public class Encounter extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("condition")) { + this.getCondition().remove(value); + } else if (name.equals("use")) { + this.getUse().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1279,6 +1314,25 @@ public class Encounter extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("preAdmissionIdentifier")) { + this.preAdmissionIdentifier = null; + } else if (name.equals("origin")) { + this.origin = null; + } else if (name.equals("admitSource")) { + this.admitSource = null; + } else if (name.equals("reAdmission")) { + this.reAdmission = null; + } else if (name.equals("destination")) { + this.destination = null; + } else if (name.equals("dischargeDisposition")) { + this.dischargeDisposition = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1627,6 +1681,22 @@ public class Encounter extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("location")) { + this.location = null; + } else if (name.equals("status")) { + value = new EncounterLocationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("form")) { + this.form = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3438,6 +3508,70 @@ public class Encounter extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new EncounterStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("class")) { + this.getClass_().remove(value); + } else if (name.equals("priority")) { + this.priority = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("serviceType")) { + this.getServiceType().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("subjectStatus")) { + this.subjectStatus = null; + } else if (name.equals("episodeOfCare")) { + this.getEpisodeOfCare().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("careTeam")) { + this.getCareTeam().remove(value); + } else if (name.equals("partOf")) { + this.partOf = null; + } else if (name.equals("serviceProvider")) { + this.serviceProvider = null; + } else if (name.equals("participant")) { + this.getParticipant().add((EncounterParticipantComponent) value); + } else if (name.equals("appointment")) { + this.getAppointment().remove(value); + } else if (name.equals("virtualService")) { + this.getVirtualService().remove(value); + } else if (name.equals("actualPeriod")) { + this.actualPeriod = null; + } else if (name.equals("plannedStartDate")) { + this.plannedStartDate = null; + } else if (name.equals("plannedEndDate")) { + this.plannedEndDate = null; + } else if (name.equals("length")) { + this.length = null; + } else if (name.equals("reason")) { + this.getReason().add((ReasonComponent) value); + } else if (name.equals("diagnosis")) { + this.getDiagnosis().add((DiagnosisComponent) value); + } else if (name.equals("account")) { + this.getAccount().remove(value); + } else if (name.equals("dietPreference")) { + this.getDietPreference().remove(value); + } else if (name.equals("specialArrangement")) { + this.getSpecialArrangement().remove(value); + } else if (name.equals("specialCourtesy")) { + this.getSpecialCourtesy().remove(value); + } else if (name.equals("admission")) { + this.admission = (EncounterAdmissionComponent) value; // EncounterAdmissionComponent + } else if (name.equals("location")) { + this.getLocation().add((EncounterLocationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EncounterHistory.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EncounterHistory.java index 2bbbebff0..72d1a525b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EncounterHistory.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EncounterHistory.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -186,6 +186,17 @@ public class EncounterHistory extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("location")) { + this.location = null; + } else if (name.equals("form")) { + this.form = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1017,6 +1028,40 @@ public class EncounterHistory extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new EncounterStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("class")) { + this.class_ = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("serviceType")) { + this.getServiceType().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("subjectStatus")) { + this.subjectStatus = null; + } else if (name.equals("actualPeriod")) { + this.actualPeriod = null; + } else if (name.equals("plannedStartDate")) { + this.plannedStartDate = null; + } else if (name.equals("plannedEndDate")) { + this.plannedEndDate = null; + } else if (name.equals("length")) { + this.length = null; + } else if (name.equals("location")) { + this.getLocation().add((EncounterHistoryLocationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Endpoint.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Endpoint.java index a949febc4..5c36fb46c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Endpoint.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Endpoint.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -389,6 +389,17 @@ public class Endpoint extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("mimeType")) { + this.getMimeType().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1273,6 +1284,38 @@ public class Endpoint extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new EndpointStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("connectionType")) { + this.getConnectionType().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("environmentType")) { + this.getEnvironmentType().remove(value); + } else if (name.equals("managingOrganization")) { + this.managingOrganization = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("payload")) { + this.getPayload().add((EndpointPayloadComponent) value); + } else if (name.equals("address")) { + this.address = null; + } else if (name.equals("header")) { + this.getHeader().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentRequest.java index 385a766cb..55650cf4c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentRequest.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -452,6 +452,28 @@ public class EnrollmentRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("insurer")) { + this.insurer = null; + } else if (name.equals("provider")) { + this.provider = null; + } else if (name.equals("candidate")) { + this.candidate = null; + } else if (name.equals("coverage")) { + this.coverage = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentResponse.java index 7d62cdb58..d869417a3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentResponse.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -672,6 +672,31 @@ public class EnrollmentResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("request")) { + this.request = null; + } else if (name.equals("outcome")) { + value = new EnrollmentOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration + } else if (name.equals("disposition")) { + this.disposition = null; + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("organization")) { + this.organization = null; + } else if (name.equals("requestProvider")) { + this.requestProvider = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EpisodeOfCare.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EpisodeOfCare.java index e8c70022a..da43886f2 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EpisodeOfCare.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EpisodeOfCare.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -386,6 +386,18 @@ public class EpisodeOfCare extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("status")) { + value = new EpisodeOfCareStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -617,6 +629,17 @@ public class EpisodeOfCare extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("use")) { + this.use = null; + } else if (name.equals("value")) { + this.getValue().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -852,6 +875,17 @@ public class EpisodeOfCare extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("condition")) { + this.getCondition().remove(value); + } else if (name.equals("use")) { + this.use = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1749,6 +1783,40 @@ public class EpisodeOfCare extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new EpisodeOfCareStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusHistory")) { + this.getStatusHistory().add((EpisodeOfCareStatusHistoryComponent) value); + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("reason")) { + this.getReason().add((ReasonComponent) value); + } else if (name.equals("diagnosis")) { + this.getDiagnosis().add((DiagnosisComponent) value); + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("managingOrganization")) { + this.managingOrganization = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("referralRequest")) { + this.getReferralRequest().remove(value); + } else if (name.equals("careManager")) { + this.careManager = null; + } else if (name.equals("careTeam")) { + this.getCareTeam().remove(value); + } else if (name.equals("account")) { + this.getAccount().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EventDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EventDefinition.java index abc891397..66f6e4fa1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EventDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EventDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -2054,6 +2054,74 @@ public class EventDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("subtitle")) { + this.subtitle = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("subject[x]")) { + this.subject = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("usage")) { + this.usage = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("topic")) { + this.getTopic().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("trigger")) { + this.getTrigger().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Evidence.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Evidence.java index 8c00c7576..decf3b3e3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Evidence.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Evidence.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -398,6 +398,25 @@ public class Evidence extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("variableRole")) { + this.variableRole = null; + } else if (name.equals("observed")) { + this.observed = null; + } else if (name.equals("intended")) { + this.intended = null; + } else if (name.equals("directnessMatch")) { + this.directnessMatch = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1099,6 +1118,33 @@ public class Evidence extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("statisticType")) { + this.statisticType = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("numberOfEvents")) { + this.numberOfEvents = null; + } else if (name.equals("numberAffected")) { + this.numberAffected = null; + } else if (name.equals("sampleSize")) { + this.sampleSize = (EvidenceStatisticSampleSizeComponent) value; // EvidenceStatisticSampleSizeComponent + } else if (name.equals("attributeEstimate")) { + this.getAttributeEstimate().add((EvidenceStatisticAttributeEstimateComponent) value); + } else if (name.equals("modelCharacteristic")) { + this.getModelCharacteristic().add((EvidenceStatisticModelCharacteristicComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1603,6 +1649,23 @@ public class Evidence extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("numberOfStudies")) { + this.numberOfStudies = null; + } else if (name.equals("numberOfParticipants")) { + this.numberOfParticipants = null; + } else if (name.equals("knownDataCount")) { + this.knownDataCount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2151,6 +2214,27 @@ public class Evidence extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("level")) { + this.level = null; + } else if (name.equals("range")) { + this.range = null; + } else if (name.equals("attributeEstimate")) { + this.getAttributeEstimate().add((EvidenceStatisticAttributeEstimateComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2539,6 +2623,21 @@ public class Evidence extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value")) { + this.value = null; + } else if (name.equals("variable")) { + this.getVariable().add((EvidenceStatisticModelCharacteristicVariableComponent) value); + } else if (name.equals("attributeEstimate")) { + this.getAttributeEstimate().add((EvidenceStatisticAttributeEstimateComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3002,6 +3101,24 @@ public class Evidence extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("variableDefinition")) { + this.variableDefinition = null; + } else if (name.equals("handling")) { + value = new EvidenceVariableHandlingEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.handling = (Enumeration) value; // Enumeration + } else if (name.equals("valueCategory")) { + this.getValueCategory().remove(value); + } else if (name.equals("valueQuantity")) { + this.getValueQuantity().remove(value); + } else if (name.equals("valueRange")) { + this.getValueRange().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3501,6 +3618,25 @@ public class Evidence extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("rating")) { + this.rating = null; + } else if (name.equals("rater")) { + this.rater = null; + } else if (name.equals("subcomponent")) { + this.getSubcomponent().add((EvidenceCertaintyComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5778,6 +5914,76 @@ public class Evidence extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("citeAs[x]")) { + this.citeAs = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("assertion")) { + this.assertion = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("variableDefinition")) { + this.getVariableDefinition().add((EvidenceVariableDefinitionComponent) value); + } else if (name.equals("synthesisType")) { + this.synthesisType = null; + } else if (name.equals("studyDesign")) { + this.getStudyDesign().remove(value); + } else if (name.equals("statistic")) { + this.getStatistic().add((EvidenceStatisticComponent) value); + } else if (name.equals("certainty")) { + this.getCertainty().add((EvidenceCertaintyComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceReport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceReport.java index 59533f0c8..7ea97eefb 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceReport.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceReport.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -427,6 +427,17 @@ public class EvidenceReport extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("characteristic")) { + this.getCharacteristic().add((EvidenceReportSubjectCharacteristicComponent) value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -821,6 +832,21 @@ public class EvidenceReport extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("exclude")) { + this.exclude = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1087,6 +1113,18 @@ public class EvidenceReport extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + value = new ReportRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.code = (Enumeration) value; // Enumeration + } else if (name.equals("target")) { + this.target = (EvidenceReportRelatesToTargetComponent) value; // EvidenceReportRelatesToTargetComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1415,6 +1453,21 @@ public class EvidenceReport extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("display")) { + this.display = null; + } else if (name.equals("resource")) { + this.resource = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2222,6 +2275,38 @@ public class EvidenceReport extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = null; + } else if (name.equals("focus")) { + this.focus = null; + } else if (name.equals("focusReference")) { + this.focusReference = null; + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("mode")) { + value = new ListModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.mode = (Enumeration) value; // Enumeration + } else if (name.equals("orderedBy")) { + this.orderedBy = null; + } else if (name.equals("entryClassifier")) { + this.getEntryClassifier().remove(value); + } else if (name.equals("entryReference")) { + this.getEntryReference().remove(value); + } else if (name.equals("entryQuantity")) { + this.getEntryQuantity().remove(value); + } else if (name.equals("emptyReason")) { + this.emptyReason = null; + } else if (name.equals("section")) { + this.getSection().add((SectionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4126,6 +4211,50 @@ public class EvidenceReport extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("relatedIdentifier")) { + this.getRelatedIdentifier().remove(value); + } else if (name.equals("citeAs[x]")) { + this.citeAs = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("subject")) { + this.subject = (EvidenceReportSubjectComponent) value; // EvidenceReportSubjectComponent + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatesTo")) { + this.getRelatesTo().add((EvidenceReportRelatesToComponent) value); + } else if (name.equals("section")) { + this.getSection().add((SectionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceVariable.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceVariable.java index 5a8c2b7f7..d1dbb5f58 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceVariable.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceVariable.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1060,6 +1060,41 @@ public class EvidenceVariable extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("exclude")) { + this.exclude = null; + } else if (name.equals("definitionReference")) { + this.definitionReference = null; + } else if (name.equals("definitionCanonical")) { + this.definitionCanonical = null; + } else if (name.equals("definitionCodeableConcept")) { + this.definitionCodeableConcept = null; + } else if (name.equals("definitionExpression")) { + this.definitionExpression = null; + } else if (name.equals("definitionId")) { + this.definitionId = null; + } else if (name.equals("definitionByTypeAndValue")) { + this.definitionByTypeAndValue = (EvidenceVariableCharacteristicDefinitionByTypeAndValueComponent) value; // EvidenceVariableCharacteristicDefinitionByTypeAndValueComponent + } else if (name.equals("definitionByCombination")) { + this.definitionByCombination = (EvidenceVariableCharacteristicDefinitionByCombinationComponent) value; // EvidenceVariableCharacteristicDefinitionByCombinationComponent + } else if (name.equals("instances[x]")) { + this.instances = null; + } else if (name.equals("duration[x]")) { + this.duration = null; + } else if (name.equals("timeFromEvent")) { + this.getTimeFromEvent().add((EvidenceVariableCharacteristicTimeFromEventComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1619,6 +1654,23 @@ public class EvidenceVariable extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("method")) { + this.getMethod().remove(value); + } else if (name.equals("device")) { + this.device = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("offset")) { + this.offset = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1989,6 +2041,20 @@ public class EvidenceVariable extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + value = new CharacteristicCombinationEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.code = (Enumeration) value; // Enumeration + } else if (name.equals("threshold")) { + this.threshold = null; + } else if (name.equals("characteristic")) { + this.getCharacteristic().add((EvidenceVariableCharacteristicComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2434,6 +2500,23 @@ public class EvidenceVariable extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("event[x]")) { + this.event = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("range")) { + this.range = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2744,6 +2827,17 @@ public class EvidenceVariable extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4900,6 +4994,75 @@ See guidance around (not) making local changes to elements [here](canonicalresou return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("shortTitle")) { + this.shortTitle = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("actual")) { + this.actual = null; + } else if (name.equals("characteristic")) { + this.getCharacteristic().add((EvidenceVariableCharacteristicComponent) value); + } else if (name.equals("handling")) { + value = new EvidenceVariableHandlingEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.handling = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().add((EvidenceVariableCategoryComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExampleScenario.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExampleScenario.java index ec2f52a35..8ad05c1df 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExampleScenario.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExampleScenario.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -356,6 +356,22 @@ public class ExampleScenario extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("key")) { + this.key = null; + } else if (name.equals("type")) { + value = new ExampleScenarioActorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("description")) { + this.description = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1034,6 +1050,31 @@ public class ExampleScenario extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("key")) { + this.key = null; + } else if (name.equals("structureType")) { + this.structureType = null; + } else if (name.equals("structureVersion")) { + this.structureVersion = null; + } else if (name.equals("structureProfile[x]")) { + this.structureProfile = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("content")) { + this.content = null; + } else if (name.equals("version")) { + this.getVersion().add((ExampleScenarioInstanceVersionComponent) value); + } else if (name.equals("containedInstance")) { + this.getContainedInstance().add((ExampleScenarioInstanceContainedInstanceComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1450,6 +1491,21 @@ public class ExampleScenario extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("key")) { + this.key = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("content")) { + this.content = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1719,6 +1775,17 @@ public class ExampleScenario extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("instanceReference")) { + this.instanceReference = null; + } else if (name.equals("versionReference")) { + this.versionReference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2171,6 +2238,23 @@ public class ExampleScenario extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("preConditions")) { + this.preConditions = null; + } else if (name.equals("postConditions")) { + this.postConditions = null; + } else if (name.equals("step")) { + this.getStep().add((ExampleScenarioProcessStepComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2651,6 +2735,25 @@ public class ExampleScenario extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("number")) { + this.number = null; + } else if (name.equals("process")) { + this.process = (ExampleScenarioProcessComponent) value; // ExampleScenarioProcessComponent + } else if (name.equals("workflow")) { + this.workflow = null; + } else if (name.equals("operation")) { + this.operation = (ExampleScenarioProcessStepOperationComponent) value; // ExampleScenarioProcessStepOperationComponent + } else if (name.equals("alternative")) { + this.getAlternative().add((ExampleScenarioProcessStepAlternativeComponent) value); + } else if (name.equals("pause")) { + this.pause = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3304,6 +3407,31 @@ public class ExampleScenario extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("initiator")) { + this.initiator = null; + } else if (name.equals("receiver")) { + this.receiver = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("initiatorActive")) { + this.initiatorActive = null; + } else if (name.equals("receiverActive")) { + this.receiverActive = null; + } else if (name.equals("request")) { + this.request = (ExampleScenarioInstanceContainedInstanceComponent) value; // ExampleScenarioInstanceContainedInstanceComponent + } else if (name.equals("response")) { + this.response = (ExampleScenarioInstanceContainedInstanceComponent) value; // ExampleScenarioInstanceContainedInstanceComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3676,6 +3804,19 @@ public class ExampleScenario extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("step")) { + this.getStep().add((ExampleScenarioProcessStepComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5125,6 +5266,54 @@ public class ExampleScenario extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("actor")) { + this.getActor().add((ExampleScenarioActorComponent) value); + } else if (name.equals("instance")) { + this.getInstance().add((ExampleScenarioInstanceComponent) value); + } else if (name.equals("process")) { + this.getProcess().add((ExampleScenarioProcessComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExplanationOfBenefit.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExplanationOfBenefit.java index cc89b6783..95e59b0fd 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExplanationOfBenefit.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExplanationOfBenefit.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -346,6 +346,19 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("claim")) { + this.claim = null; + } else if (name.equals("relationship")) { + this.relationship = null; + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -596,6 +609,17 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("when[x]")) { + this.when = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -803,6 +827,17 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("party")) { + this.party = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1174,6 +1209,23 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("provider")) { + this.provider = null; + } else if (name.equals("responsible")) { + this.responsible = null; + } else if (name.equals("role")) { + this.role = null; + } else if (name.equals("specialty")) { + this.specialty = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1710,6 +1762,25 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("timing[x]")) { + this.timing = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("reason")) { + this.reason = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2137,6 +2208,21 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("diagnosis[x]")) { + this.diagnosis = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("onAdmission")) { + this.onAdmission = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2623,6 +2709,23 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("procedure[x]")) { + this.procedure = null; + } else if (name.equals("udi")) { + this.getUdi().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2962,6 +3065,19 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("focal")) { + this.focal = null; + } else if (name.equals("coverage")) { + this.coverage = null; + } else if (name.equals("preAuthRef")) { + this.getPreAuthRef().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3269,6 +3385,19 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("date")) { + this.date = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("location[x]")) { + this.location = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5097,6 +5226,69 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("careTeamSequence")) { + this.getCareTeamSequence().remove(value); + } else if (name.equals("diagnosisSequence")) { + this.getDiagnosisSequence().remove(value); + } else if (name.equals("procedureSequence")) { + this.getProcedureSequence().remove(value); + } else if (name.equals("informationSequence")) { + this.getInformationSequence().remove(value); + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("request")) { + this.getRequest().remove(value); + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("programCode")) { + this.getProgramCode().remove(value); + } else if (name.equals("serviced[x]")) { + this.serviced = null; + } else if (name.equals("location[x]")) { + this.location = null; + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("udi")) { + this.getUdi().remove(value); + } else if (name.equals("bodySite")) { + this.getBodySite().add((ItemBodySiteComponent) value); + } else if (name.equals("encounter")) { + this.getEncounter().remove(value); + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ItemReviewOutcomeComponent) value; // ItemReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else if (name.equals("detail")) { + this.getDetail().add((DetailComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5619,6 +5811,17 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("site")) { + this.getSite().remove(value); + } else if (name.equals("subSite")) { + this.getSubSite().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5960,6 +6163,21 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("decision")) { + this.decision = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("preAuthRef")) { + this.preAuthRef = null; + } else if (name.equals("preAuthPeriod")) { + this.preAuthPeriod = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6267,6 +6485,21 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("reason")) { + this.reason = null; + } else if (name.equals("amount")) { + this.amount = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -7436,6 +7669,51 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("programCode")) { + this.getProgramCode().remove(value); + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("udi")) { + this.getUdi().remove(value); + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ItemReviewOutcomeComponent) value; // ItemReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else if (name.equals("subDetail")) { + this.getSubDetail().add((SubDetailComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8671,6 +8949,49 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("programCode")) { + this.getProgramCode().remove(value); + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("udi")) { + this.getUdi().remove(value); + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ItemReviewOutcomeComponent) value; // ItemReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -10374,6 +10695,61 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("itemSequence")) { + this.getItemSequence().remove(value); + } else if (name.equals("detailSequence")) { + this.getDetailSequence().remove(value); + } else if (name.equals("subDetailSequence")) { + this.getSubDetailSequence().remove(value); + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("provider")) { + this.getProvider().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("request")) { + this.getRequest().remove(value); + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("programCode")) { + this.getProgramCode().remove(value); + } else if (name.equals("serviced[x]")) { + this.serviced = null; + } else if (name.equals("location[x]")) { + this.location = null; + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("bodySite")) { + this.getBodySite().add((AddedItemBodySiteComponent) value); + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ItemReviewOutcomeComponent) value; // ItemReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else if (name.equals("detail")) { + this.getDetail().add((AddedItemDetailComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -10861,6 +11237,17 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("site")) { + this.getSite().remove(value); + } else if (name.equals("subSite")) { + this.getSubSite().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -11775,6 +12162,43 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ItemReviewOutcomeComponent) value; // ItemReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else if (name.equals("subDetail")) { + this.getSubDetail().add((AddedItemDetailSubDetailComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -12728,6 +13152,41 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("revenue")) { + this.revenue = null; + } else if (name.equals("productOrService")) { + this.productOrService = null; + } else if (name.equals("productOrServiceEnd")) { + this.productOrServiceEnd = null; + } else if (name.equals("modifier")) { + this.getModifier().remove(value); + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("unitPrice")) { + this.unitPrice = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("tax")) { + this.tax = null; + } else if (name.equals("net")) { + this.net = null; + } else if (name.equals("noteNumber")) { + this.getNoteNumber().remove(value); + } else if (name.equals("reviewOutcome")) { + this.reviewOutcome = (ItemReviewOutcomeComponent) value; // ItemReviewOutcomeComponent + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -13041,6 +13500,17 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("amount")) { + this.amount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -13425,6 +13895,25 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("adjustment")) { + this.adjustment = null; + } else if (name.equals("adjustmentReason")) { + this.adjustmentReason = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("amount")) { + this.amount = null; + } else if (name.equals("identifier")) { + this.identifier = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -13782,6 +14271,21 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("number")) { + this.number = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("language")) { + this.language = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -14343,6 +14847,29 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("excluded")) { + this.excluded = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("network")) { + this.network = null; + } else if (name.equals("unit")) { + this.unit = null; + } else if (name.equals("term")) { + this.term = null; + } else if (name.equals("financial")) { + this.getFinancial().add((BenefitComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -14714,6 +15241,19 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("allowed[x]")) { + this.allowed = null; + } else if (name.equals("used[x]")) { + this.used = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -17458,6 +17998,114 @@ public class ExplanationOfBenefit extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("traceNumber")) { + this.getTraceNumber().remove(value); + } else if (name.equals("status")) { + value = new ExplanationOfBenefitStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("subType")) { + this.subType = null; + } else if (name.equals("use")) { + value = new UseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.use = (Enumeration) value; // Enumeration + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("billablePeriod")) { + this.billablePeriod = null; + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("enterer")) { + this.enterer = null; + } else if (name.equals("insurer")) { + this.insurer = null; + } else if (name.equals("provider")) { + this.provider = null; + } else if (name.equals("priority")) { + this.priority = null; + } else if (name.equals("fundsReserveRequested")) { + this.fundsReserveRequested = null; + } else if (name.equals("fundsReserve")) { + this.fundsReserve = null; + } else if (name.equals("related")) { + this.getRelated().add((RelatedClaimComponent) value); + } else if (name.equals("prescription")) { + this.prescription = null; + } else if (name.equals("originalPrescription")) { + this.originalPrescription = null; + } else if (name.equals("event")) { + this.getEvent().add((ExplanationOfBenefitEventComponent) value); + } else if (name.equals("payee")) { + this.payee = (PayeeComponent) value; // PayeeComponent + } else if (name.equals("referral")) { + this.referral = null; + } else if (name.equals("encounter")) { + this.getEncounter().remove(value); + } else if (name.equals("facility")) { + this.facility = null; + } else if (name.equals("claim")) { + this.claim = null; + } else if (name.equals("claimResponse")) { + this.claimResponse = null; + } else if (name.equals("outcome")) { + value = new ClaimProcessingCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration + } else if (name.equals("decision")) { + this.decision = null; + } else if (name.equals("disposition")) { + this.disposition = null; + } else if (name.equals("preAuthRef")) { + this.getPreAuthRef().remove(value); + } else if (name.equals("preAuthRefPeriod")) { + this.getPreAuthRefPeriod().remove(value); + } else if (name.equals("diagnosisRelatedGroup")) { + this.diagnosisRelatedGroup = null; + } else if (name.equals("careTeam")) { + this.getCareTeam().add((CareTeamComponent) value); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().add((SupportingInformationComponent) value); + } else if (name.equals("diagnosis")) { + this.getDiagnosis().add((DiagnosisComponent) value); + } else if (name.equals("procedure")) { + this.getProcedure().add((ProcedureComponent) value); + } else if (name.equals("precedence")) { + this.precedence = null; + } else if (name.equals("insurance")) { + this.getInsurance().add((InsuranceComponent) value); + } else if (name.equals("accident")) { + this.accident = (AccidentComponent) value; // AccidentComponent + } else if (name.equals("patientPaid")) { + this.patientPaid = null; + } else if (name.equals("item")) { + this.getItem().add((ItemComponent) value); + } else if (name.equals("addItem")) { + this.getAddItem().add((AddedItemComponent) value); + } else if (name.equals("adjudication")) { + this.getAdjudication().add((AdjudicationComponent) value); + } else if (name.equals("total")) { + this.getTotal().add((TotalComponent) value); + } else if (name.equals("payment")) { + this.payment = (PaymentComponent) value; // PaymentComponent + } else if (name.equals("formCode")) { + this.formCode = null; + } else if (name.equals("form")) { + this.form = null; + } else if (name.equals("processNote")) { + this.getProcessNote().add((NoteComponent) value); + } else if (name.equals("benefitPeriod")) { + this.benefitPeriod = null; + } else if (name.equals("benefitBalance")) { + this.getBenefitBalance().add((BenefitBalanceComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Expression.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Expression.java index 44e42a800..d84dee1cf 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Expression.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Expression.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -416,6 +416,23 @@ public class Expression extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("language")) { + this.language = null; + } else if (name.equals("expression")) { + this.expression = null; + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExtendedContactDetail.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExtendedContactDetail.java index 5340603ab..fbfe8885e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExtendedContactDetail.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExtendedContactDetail.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -387,6 +387,25 @@ public class ExtendedContactDetail extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("name")) { + this.getName().remove(value); + } else if (name.equals("telecom")) { + this.getTelecom().remove(value); + } else if (name.equals("address")) { + this.address = null; + } else if (name.equals("organization")) { + this.organization = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Extension.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Extension.java index 57ceebd9d..cecc7a458 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Extension.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Extension.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1080,6 +1080,17 @@ public class Extension extends BaseExtension implements IBaseExtension + } else if (name.equals("dataAbsentReason")) { + this.dataAbsentReason = null; + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("participant")) { + this.getParticipant().add((FamilyMemberHistoryParticipantComponent) value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("relationship")) { + this.relationship = null; + } else if (name.equals("sex")) { + this.sex = null; + } else if (name.equals("born[x]")) { + this.born = null; + } else if (name.equals("age[x]")) { + this.age = null; + } else if (name.equals("estimatedAge")) { + this.estimatedAge = null; + } else if (name.equals("deceased[x]")) { + this.deceased = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("condition")) { + this.getCondition().add((FamilyMemberHistoryConditionComponent) value); + } else if (name.equals("procedure")) { + this.getProcedure().add((FamilyMemberHistoryProcedureComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Flag.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Flag.java index 46dbe7bad..ad4c520d4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Flag.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Flag.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -615,6 +615,30 @@ public class Flag extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new FlagStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("author")) { + this.author = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FormularyItem.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FormularyItem.java index d097e1eca..ff296fe4e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FormularyItem.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FormularyItem.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -384,6 +384,20 @@ public class FormularyItem extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("status")) { + value = new FormularyItemStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GenomicStudy.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GenomicStudy.java index 2d2c15155..735644069 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GenomicStudy.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GenomicStudy.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1396,6 +1396,49 @@ public class GenomicStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("methodType")) { + this.getMethodType().remove(value); + } else if (name.equals("changeType")) { + this.getChangeType().remove(value); + } else if (name.equals("genomeBuild")) { + this.genomeBuild = null; + } else if (name.equals("instantiatesCanonical")) { + this.instantiatesCanonical = null; + } else if (name.equals("instantiatesUri")) { + this.instantiatesUri = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("focus")) { + this.getFocus().remove(value); + } else if (name.equals("specimen")) { + this.getSpecimen().remove(value); + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("protocolPerformed")) { + this.protocolPerformed = null; + } else if (name.equals("regionsStudied")) { + this.getRegionsStudied().remove(value); + } else if (name.equals("regionsCalled")) { + this.getRegionsCalled().remove(value); + } else if (name.equals("input")) { + this.getInput().add((GenomicStudyAnalysisInputComponent) value); + } else if (name.equals("output")) { + this.getOutput().add((GenomicStudyAnalysisOutputComponent) value); + } else if (name.equals("performer")) { + this.getPerformer().add((GenomicStudyAnalysisPerformerComponent) value); + } else if (name.equals("device")) { + this.getDevice().add((GenomicStudyAnalysisDeviceComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1822,6 +1865,19 @@ public class GenomicStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("file")) { + this.file = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("generatedBy[x]")) { + this.generatedBy = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2038,6 +2094,17 @@ public class GenomicStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("file")) { + this.file = null; + } else if (name.equals("type")) { + this.type = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2239,6 +2306,17 @@ public class GenomicStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("actor")) { + this.actor = null; + } else if (name.equals("role")) { + this.role = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2440,6 +2518,17 @@ public class GenomicStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("device")) { + this.device = null; + } else if (name.equals("function")) { + this.function = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3483,6 +3572,44 @@ public class GenomicStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new GenomicStudyStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("startDate")) { + this.startDate = null; + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("referrer")) { + this.referrer = null; + } else if (name.equals("interpreter")) { + this.getInterpreter().remove(value); + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.instantiatesCanonical = null; + } else if (name.equals("instantiatesUri")) { + this.instantiatesUri = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("analysis")) { + this.getAnalysis().add((GenomicStudyAnalysisComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Goal.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Goal.java index 472bab299..2a61eb26b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Goal.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Goal.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -565,6 +565,19 @@ public class Goal extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("measure")) { + this.measure = null; + } else if (name.equals("detail[x]")) { + this.detail = null; + } else if (name.equals("due[x]")) { + this.due = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1663,6 +1676,46 @@ public class Goal extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("lifecycleStatus")) { + value = new GoalLifecycleStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.lifecycleStatus = (Enumeration) value; // Enumeration + } else if (name.equals("achievementStatus")) { + this.achievementStatus = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("continuous")) { + this.continuous = null; + } else if (name.equals("priority")) { + this.priority = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("start[x]")) { + this.start = null; + } else if (name.equals("target")) { + this.getTarget().add((GoalTargetComponent) value); + } else if (name.equals("statusDate")) { + this.statusDate = null; + } else if (name.equals("statusReason")) { + this.statusReason = null; + } else if (name.equals("source")) { + this.source = null; + } else if (name.equals("addresses")) { + this.getAddresses().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("outcome")) { + this.getOutcome().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GraphDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GraphDefinition.java index 7e9ccafa1..e8ed28ec3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GraphDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GraphDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -583,6 +583,22 @@ public class GraphDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("nodeId")) { + this.nodeId = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("type")) { + value = new VersionIndependentResourceTypesAllEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("profile")) { + this.profile = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1296,6 +1312,31 @@ public class GraphDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("min")) { + this.min = null; + } else if (name.equals("max")) { + this.max = null; + } else if (name.equals("sourceId")) { + this.sourceId = null; + } else if (name.equals("path")) { + this.path = null; + } else if (name.equals("sliceName")) { + this.sliceName = null; + } else if (name.equals("targetId")) { + this.targetId = null; + } else if (name.equals("params")) { + this.params = null; + } else if (name.equals("compartment")) { + this.getCompartment().add((GraphDefinitionLinkCompartmentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1796,6 +1837,26 @@ public class GraphDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("use")) { + value = new GraphCompartmentUseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.use = (Enumeration) value; // Enumeration + } else if (name.equals("rule")) { + value = new GraphCompartmentRuleEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.rule = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + value = new CompartmentTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.code = (Enumeration) value; // Enumeration + } else if (name.equals("expression")) { + this.expression = null; + } else if (name.equals("description")) { + this.description = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3249,6 +3310,54 @@ public class GraphDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("start")) { + this.start = null; + } else if (name.equals("node")) { + this.getNode().add((GraphDefinitionNodeComponent) value); + } else if (name.equals("link")) { + this.getLink().add((GraphDefinitionLinkComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Group.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Group.java index 66f672a12..86c0a4c94 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Group.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Group.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -684,6 +684,21 @@ public class Group extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("exclude")) { + this.exclude = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -985,6 +1000,19 @@ public class Group extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("entity")) { + this.entity = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("inactive")) { + this.inactive = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1794,6 +1822,37 @@ public class Group extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("type")) { + value = new GroupTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("membership")) { + value = new GroupMembershipBasisEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.membership = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("managingEntity")) { + this.managingEntity = null; + } else if (name.equals("characteristic")) { + this.getCharacteristic().add((GroupCharacteristicComponent) value); + } else if (name.equals("member")) { + this.getMember().add((GroupMemberComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GuidanceResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GuidanceResponse.java index 425dd41c2..1fb9045e4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GuidanceResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GuidanceResponse.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1053,6 +1053,42 @@ public class GuidanceResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("requestIdentifier")) { + this.requestIdentifier = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("module[x]")) { + this.module = null; + } else if (name.equals("status")) { + value = new GuidanceResponseStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("occurrenceDateTime")) { + this.occurrenceDateTime = null; + } else if (name.equals("performer")) { + this.performer = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("evaluationMessage")) { + this.evaluationMessage = null; + } else if (name.equals("outputParameters")) { + this.outputParameters = null; + } else if (name.equals("result")) { + this.getResult().remove(value); + } else if (name.equals("dataRequirement")) { + this.getDataRequirement().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HealthcareService.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HealthcareService.java index e69ddaf84..19295e389 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HealthcareService.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HealthcareService.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -202,6 +202,17 @@ public class HealthcareService extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("comment")) { + this.comment = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1808,6 +1819,59 @@ public class HealthcareService extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("providedBy")) { + this.providedBy = null; + } else if (name.equals("offeredIn")) { + this.getOfferedIn().remove(value); + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("specialty")) { + this.getSpecialty().remove(value); + } else if (name.equals("location")) { + this.getLocation().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("comment")) { + this.comment = null; + } else if (name.equals("extraDetails")) { + this.extraDetails = null; + } else if (name.equals("photo")) { + this.photo = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("coverageArea")) { + this.getCoverageArea().remove(value); + } else if (name.equals("serviceProvisionCode")) { + this.getServiceProvisionCode().remove(value); + } else if (name.equals("eligibility")) { + this.getEligibility().add((HealthcareServiceEligibilityComponent) value); + } else if (name.equals("program")) { + this.getProgram().remove(value); + } else if (name.equals("characteristic")) { + this.getCharacteristic().remove(value); + } else if (name.equals("communication")) { + this.getCommunication().remove(value); + } else if (name.equals("referralMethod")) { + this.getReferralMethod().remove(value); + } else if (name.equals("appointmentRequired")) { + this.appointmentRequired = null; + } else if (name.equals("availability")) { + this.getAvailability().remove(value); + } else if (name.equals("endpoint")) { + this.getEndpoint().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HumanName.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HumanName.java index ccbfcb735..924c3fb2d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HumanName.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HumanName.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -735,6 +735,28 @@ public class HumanName extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("use")) { + value = new NameUseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.use = (Enumeration) value; // Enumeration + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("family")) { + this.family = null; + } else if (name.equals("given")) { + this.getGiven().remove(value); + } else if (name.equals("prefix")) { + this.getPrefix().remove(value); + } else if (name.equals("suffix")) { + this.getSuffix().remove(value); + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Identifier.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Identifier.java index 52e586937..57b72fe6b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Identifier.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Identifier.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -552,6 +552,26 @@ public class Identifier extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("use")) { + value = new IdentifierUseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.use = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("system")) { + this.system = null; + } else if (name.equals("value")) { + this.value = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("assigner")) { + this.assigner = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingSelection.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingSelection.java index 4b11069fa..94539a667 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingSelection.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingSelection.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -595,6 +595,17 @@ public class ImagingSelection extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1125,6 +1136,25 @@ public class ImagingSelection extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("uid")) { + this.uid = null; + } else if (name.equals("number")) { + this.number = null; + } else if (name.equals("sopClass")) { + this.sopClass = null; + } else if (name.equals("subset")) { + this.getSubset().remove(value); + } else if (name.equals("imageRegion2D")) { + this.getImageRegion2D().add((ImageRegion2DComponent) value); + } else if (name.equals("imageRegion3D")) { + this.getImageRegion3D().add((ImageRegion3DComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1440,6 +1470,18 @@ public class ImagingSelection extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("regionType")) { + value = new ImagingSelection2DGraphicTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.regionType = (Enumeration) value; // Enumeration + } else if (name.equals("coordinate")) { + this.getCoordinate().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1715,6 +1757,18 @@ public class ImagingSelection extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("regionType")) { + value = new ImagingSelection3DGraphicTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.regionType = (Enumeration) value; // Enumeration + } else if (name.equals("coordinate")) { + this.getCoordinate().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2892,6 +2946,48 @@ public class ImagingSelection extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new ImagingSelectionStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("issued")) { + this.issued = null; + } else if (name.equals("performer")) { + this.getPerformer().add((ImagingSelectionPerformerComponent) value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("studyUid")) { + this.studyUid = null; + } else if (name.equals("derivedFrom")) { + this.getDerivedFrom().remove(value); + } else if (name.equals("endpoint")) { + this.getEndpoint().remove(value); + } else if (name.equals("seriesUid")) { + this.seriesUid = null; + } else if (name.equals("seriesNumber")) { + this.seriesNumber = null; + } else if (name.equals("frameOfReferenceUid")) { + this.frameOfReferenceUid = null; + } else if (name.equals("bodySite")) { + this.bodySite = null; + } else if (name.equals("focus")) { + this.getFocus().remove(value); + } else if (name.equals("instance")) { + this.getInstance().add((ImagingSelectionInstanceComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingStudy.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingStudy.java index 9cd74d6b0..955c121d8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingStudy.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingStudy.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -952,6 +952,37 @@ public class ImagingStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("uid")) { + this.uid = null; + } else if (name.equals("number")) { + this.number = null; + } else if (name.equals("modality")) { + this.modality = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("numberOfInstances")) { + this.numberOfInstances = null; + } else if (name.equals("endpoint")) { + this.getEndpoint().remove(value); + } else if (name.equals("bodySite")) { + this.bodySite = null; + } else if (name.equals("laterality")) { + this.laterality = null; + } else if (name.equals("specimen")) { + this.getSpecimen().remove(value); + } else if (name.equals("started")) { + this.started = null; + } else if (name.equals("performer")) { + this.getPerformer().add((ImagingStudySeriesPerformerComponent) value); + } else if (name.equals("instance")) { + this.getInstance().add((ImagingStudySeriesInstanceComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1247,6 +1278,17 @@ public class ImagingStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1603,6 +1645,21 @@ public class ImagingStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("uid")) { + this.uid = null; + } else if (name.equals("sopClass")) { + this.sopClass = null; + } else if (name.equals("number")) { + this.number = null; + } else if (name.equals("title")) { + this.title = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2829,6 +2886,50 @@ public class ImagingStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new ImagingStudyStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("modality")) { + this.getModality().remove(value); + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("started")) { + this.started = null; + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("referrer")) { + this.referrer = null; + } else if (name.equals("endpoint")) { + this.getEndpoint().remove(value); + } else if (name.equals("numberOfSeries")) { + this.numberOfSeries = null; + } else if (name.equals("numberOfInstances")) { + this.numberOfInstances = null; + } else if (name.equals("procedure")) { + this.getProcedure().remove(value); + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("series")) { + this.getSeries().add((ImagingStudySeriesComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Immunization.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Immunization.java index f44458ecb..5b7d8345c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Immunization.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Immunization.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -298,6 +298,17 @@ public class Immunization extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -510,6 +521,17 @@ public class Immunization extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("program")) { + this.program = null; + } else if (name.equals("programStatus")) { + this.programStatus = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -797,6 +819,19 @@ public class Immunization extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("date")) { + this.date = null; + } else if (name.equals("manifestation")) { + this.manifestation = null; + } else if (name.equals("reported")) { + this.reported = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1231,6 +1266,23 @@ public class Immunization extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("series")) { + this.series = null; + } else if (name.equals("authority")) { + this.authority = null; + } else if (name.equals("targetDisease")) { + this.getTargetDisease().remove(value); + } else if (name.equals("doseNumber")) { + this.doseNumber = null; + } else if (name.equals("seriesDoses")) { + this.seriesDoses = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2924,6 +2976,70 @@ public class Immunization extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("status")) { + value = new ImmunizationStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.statusReason = null; + } else if (name.equals("vaccineCode")) { + this.vaccineCode = null; + } else if (name.equals("administeredProduct")) { + this.administeredProduct = null; + } else if (name.equals("manufacturer")) { + this.manufacturer = null; + } else if (name.equals("lotNumber")) { + this.lotNumber = null; + } else if (name.equals("expirationDate")) { + this.expirationDate = null; + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("supportingInformation")) { + this.getSupportingInformation().remove(value); + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("primarySource")) { + this.primarySource = null; + } else if (name.equals("informationSource")) { + this.informationSource = null; + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("site")) { + this.site = null; + } else if (name.equals("route")) { + this.route = null; + } else if (name.equals("doseQuantity")) { + this.doseQuantity = null; + } else if (name.equals("performer")) { + this.getPerformer().add((ImmunizationPerformerComponent) value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("isSubpotent")) { + this.isSubpotent = null; + } else if (name.equals("subpotentReason")) { + this.getSubpotentReason().remove(value); + } else if (name.equals("programEligibility")) { + this.getProgramEligibility().add((ImmunizationProgramEligibilityComponent) value); + } else if (name.equals("fundingSource")) { + this.fundingSource = null; + } else if (name.equals("reaction")) { + this.getReaction().add((ImmunizationReactionComponent) value); + } else if (name.equals("protocolApplied")) { + this.getProtocolApplied().add((ImmunizationProtocolAppliedComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationEvaluation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationEvaluation.java index 1d5a6be93..f137d8af4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationEvaluation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationEvaluation.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -922,6 +922,40 @@ public class ImmunizationEvaluation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new ImmunizationEvaluationStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("authority")) { + this.authority = null; + } else if (name.equals("targetDisease")) { + this.targetDisease = null; + } else if (name.equals("immunizationEvent")) { + this.immunizationEvent = null; + } else if (name.equals("doseStatus")) { + this.doseStatus = null; + } else if (name.equals("doseStatusReason")) { + this.getDoseStatusReason().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("series")) { + this.series = null; + } else if (name.equals("doseNumber")) { + this.doseNumber = null; + } else if (name.equals("seriesDoses")) { + this.seriesDoses = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationRecommendation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationRecommendation.java index 2337b150e..c3ee81361 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationRecommendation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationRecommendation.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -883,6 +883,37 @@ public class ImmunizationRecommendation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("vaccineCode")) { + this.getVaccineCode().remove(value); + } else if (name.equals("targetDisease")) { + this.getTargetDisease().remove(value); + } else if (name.equals("contraindicatedVaccineCode")) { + this.getContraindicatedVaccineCode().remove(value); + } else if (name.equals("forecastStatus")) { + this.forecastStatus = null; + } else if (name.equals("forecastReason")) { + this.getForecastReason().remove(value); + } else if (name.equals("dateCriterion")) { + this.getDateCriterion().add((ImmunizationRecommendationRecommendationDateCriterionComponent) value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("series")) { + this.series = null; + } else if (name.equals("doseNumber")) { + this.doseNumber = null; + } else if (name.equals("seriesDoses")) { + this.seriesDoses = null; + } else if (name.equals("supportingImmunization")) { + this.getSupportingImmunization().remove(value); + } else if (name.equals("supportingPatientInformation")) { + this.getSupportingPatientInformation().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1211,6 +1242,17 @@ public class ImmunizationRecommendation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1615,6 +1657,23 @@ public class ImmunizationRecommendation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("authority")) { + this.authority = null; + } else if (name.equals("recommendation")) { + this.getRecommendation().add((ImmunizationRecommendationRecommendationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImplementationGuide.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImplementationGuide.java index 6ffb943e3..3b599a042 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImplementationGuide.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImplementationGuide.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -9484,6 +9484,21 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("uri")) { + this.uri = null; + } else if (name.equals("packageId")) { + this.packageId = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("reason")) { + this.reason = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -9750,6 +9765,17 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("profile")) { + this.profile = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -10182,6 +10208,23 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("grouping")) { + this.getGrouping().add((ImplementationGuideDefinitionGroupingComponent) value); + } else if (name.equals("resource")) { + this.getResource().add((ImplementationGuideDefinitionResourceComponent) value); + } else if (name.equals("page")) { + this.page = (ImplementationGuideDefinitionPageComponent) value; // ImplementationGuideDefinitionPageComponent + } else if (name.equals("parameter")) { + this.getParameter().add((ImplementationGuideDefinitionParameterComponent) value); + } else if (name.equals("template")) { + this.getTemplate().add((ImplementationGuideDefinitionTemplateComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -10472,6 +10515,17 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("description")) { + this.description = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -11053,6 +11107,28 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("reference")) { + this.reference = null; + } else if (name.equals("fhirVersion")) { + value = new FHIRVersionEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getFhirVersion().add((Enumeration) value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("isExample")) { + this.isExample = null; + } else if (name.equals("profile")) { + this.getProfile().remove(value); + } else if (name.equals("groupingId")) { + this.groupingId = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -11567,6 +11643,24 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("source[x]")) { + this.source = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("generation")) { + value = new GuidePageGenerationEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.generation = (Enumeration) value; // Enumeration + } else if (name.equals("page")) { + this.getPage().add((ImplementationGuideDefinitionPageComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -11832,6 +11926,17 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -12147,6 +12252,19 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("source")) { + this.source = null; + } else if (name.equals("scope")) { + this.scope = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -12636,6 +12754,23 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("rendering")) { + this.rendering = null; + } else if (name.equals("resource")) { + this.getResource().add((ManifestResourceComponent) value); + } else if (name.equals("page")) { + this.getPage().add((ManifestPageComponent) value); + } else if (name.equals("image")) { + this.getImage().remove(value); + } else if (name.equals("other")) { + this.getOther().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -13041,6 +13176,21 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("reference")) { + this.reference = null; + } else if (name.equals("isExample")) { + this.isExample = null; + } else if (name.equals("profile")) { + this.getProfile().remove(value); + } else if (name.equals("relativePath")) { + this.relativePath = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -13393,6 +13543,19 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("anchor")) { + this.getAnchor().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -15054,6 +15217,64 @@ public class ImplementationGuide extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("packageId")) { + this.packageId = null; + } else if (name.equals("license")) { + value = new SPDXLicenseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.license = (Enumeration) value; // Enumeration + } else if (name.equals("fhirVersion")) { + value = new FHIRVersionEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getFhirVersion().add((Enumeration) value); + } else if (name.equals("dependsOn")) { + this.getDependsOn().add((ImplementationGuideDependsOnComponent) value); + } else if (name.equals("global")) { + this.getGlobal().add((ImplementationGuideGlobalComponent) value); + } else if (name.equals("definition")) { + this.definition = (ImplementationGuideDefinitionComponent) value; // ImplementationGuideDefinitionComponent + } else if (name.equals("manifest")) { + this.manifest = (ImplementationGuideManifestComponent) value; // ImplementationGuideManifestComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ingredient.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ingredient.java index 2dd981167..fa861442e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ingredient.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ingredient.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -325,6 +325,18 @@ public class Ingredient extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("role")) { + value = new IngredientManufacturerRoleEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.role = (Enumeration) value; // Enumeration + } else if (name.equals("manufacturer")) { + this.manufacturer = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -563,6 +575,17 @@ public class Ingredient extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("strength")) { + this.getStrength().add((IngredientSubstanceStrengthComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1259,6 +1282,29 @@ public class Ingredient extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("presentation[x]")) { + this.presentation = null; + } else if (name.equals("textPresentation")) { + this.textPresentation = null; + } else if (name.equals("concentration[x]")) { + this.concentration = null; + } else if (name.equals("textConcentration")) { + this.textConcentration = null; + } else if (name.equals("basis")) { + this.basis = null; + } else if (name.equals("measurementPoint")) { + this.measurementPoint = null; + } else if (name.equals("country")) { + this.getCountry().remove(value); + } else if (name.equals("referenceStrength")) { + this.getReferenceStrength().add((IngredientSubstanceStrengthReferenceStrengthComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1727,6 +1773,21 @@ public class Ingredient extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("substance")) { + this.substance = null; + } else if (name.equals("strength[x]")) { + this.strength = null; + } else if (name.equals("measurementPoint")) { + this.measurementPoint = null; + } else if (name.equals("country")) { + this.getCountry().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2434,6 +2495,34 @@ public class Ingredient extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("for")) { + this.getFor().remove(value); + } else if (name.equals("role")) { + this.role = null; + } else if (name.equals("function")) { + this.getFunction().remove(value); + } else if (name.equals("group")) { + this.group = null; + } else if (name.equals("allergenicIndicator")) { + this.allergenicIndicator = null; + } else if (name.equals("comment")) { + this.comment = null; + } else if (name.equals("manufacturer")) { + this.getManufacturer().add((IngredientManufacturerComponent) value); + } else if (name.equals("substance")) { + this.substance = (IngredientSubstanceComponent) value; // IngredientSubstanceComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InsurancePlan.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InsurancePlan.java index c88a86f7d..15fe6ab66 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InsurancePlan.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InsurancePlan.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -283,6 +283,19 @@ public class InsurancePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("network")) { + this.getNetwork().remove(value); + } else if (name.equals("benefit")) { + this.getBenefit().add((CoverageBenefitComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -599,6 +612,19 @@ public class InsurancePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("requirement")) { + this.requirement = null; + } else if (name.equals("limit")) { + this.getLimit().add((CoverageBenefitLimitComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -811,6 +837,17 @@ public class InsurancePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value")) { + this.value = null; + } else if (name.equals("code")) { + this.code = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1313,6 +1350,25 @@ public class InsurancePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("coverageArea")) { + this.getCoverageArea().remove(value); + } else if (name.equals("network")) { + this.getNetwork().remove(value); + } else if (name.equals("generalCost")) { + this.getGeneralCost().add((InsurancePlanPlanGeneralCostComponent) value); + } else if (name.equals("specificCost")) { + this.getSpecificCost().add((InsurancePlanPlanSpecificCostComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1684,6 +1740,21 @@ public class InsurancePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("groupSize")) { + this.groupSize = null; + } else if (name.equals("cost")) { + this.cost = null; + } else if (name.equals("comment")) { + this.comment = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1936,6 +2007,17 @@ public class InsurancePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("benefit")) { + this.getBenefit().add((PlanBenefitComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2177,6 +2259,17 @@ public class InsurancePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("cost")) { + this.getCost().add((PlanBenefitCostComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2497,6 +2590,21 @@ public class InsurancePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("applicability")) { + this.applicability = null; + } else if (name.equals("qualifiers")) { + this.getQualifiers().remove(value); + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3506,6 +3614,42 @@ public class InsurancePlan extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("alias")) { + this.getAlias().remove(value); + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("ownedBy")) { + this.ownedBy = null; + } else if (name.equals("administeredBy")) { + this.administeredBy = null; + } else if (name.equals("coverageArea")) { + this.getCoverageArea().remove(value); + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("endpoint")) { + this.getEndpoint().remove(value); + } else if (name.equals("network")) { + this.getNetwork().remove(value); + } else if (name.equals("coverage")) { + this.getCoverage().add((InsurancePlanCoverageComponent) value); + } else if (name.equals("plan")) { + this.getPlan().add((InsurancePlanPlanComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryItem.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryItem.java index 250bc8f0f..115c9e1f0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryItem.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryItem.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -400,6 +400,20 @@ public class InventoryItem extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("nameType")) { + this.nameType = null; + } else if (name.equals("language")) { + value = new CommonLanguagesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.language = (Enumeration) value; // Enumeration + } else if (name.equals("name")) { + this.name = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -617,6 +631,17 @@ public class InventoryItem extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("role")) { + this.role = null; + } else if (name.equals("organization")) { + this.organization = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -871,6 +896,18 @@ public class InventoryItem extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("language")) { + value = new CommonLanguagesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.language = (Enumeration) value; // Enumeration + } else if (name.equals("description")) { + this.description = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1121,6 +1158,19 @@ public class InventoryItem extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("associationType")) { + this.associationType = null; + } else if (name.equals("relatedItem")) { + this.relatedItem = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1546,6 +1596,17 @@ public class InventoryItem extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("characteristicType")) { + this.characteristicType = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1994,6 +2055,23 @@ public class InventoryItem extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("lotNumber")) { + this.lotNumber = null; + } else if (name.equals("expiry")) { + this.expiry = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("location")) { + this.location = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2950,6 +3028,42 @@ public class InventoryItem extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new InventoryItemStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("name")) { + this.getName().add((InventoryItemNameComponent) value); + } else if (name.equals("responsibleOrganization")) { + this.getResponsibleOrganization().add((InventoryItemResponsibleOrganizationComponent) value); + } else if (name.equals("description")) { + this.description = (InventoryItemDescriptionComponent) value; // InventoryItemDescriptionComponent + } else if (name.equals("inventoryStatus")) { + this.getInventoryStatus().remove(value); + } else if (name.equals("baseUnit")) { + this.baseUnit = null; + } else if (name.equals("netContent")) { + this.netContent = null; + } else if (name.equals("association")) { + this.getAssociation().add((InventoryItemAssociationComponent) value); + } else if (name.equals("characteristic")) { + this.getCharacteristic().add((InventoryItemCharacteristicComponent) value); + } else if (name.equals("instance")) { + this.instance = (InventoryItemInstanceComponent) value; // InventoryItemInstanceComponent + } else if (name.equals("productReference")) { + this.productReference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryReport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryReport.java index 7bd71c6dd..2778c90da 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryReport.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryReport.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -533,6 +533,21 @@ public class InventoryReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("location")) { + this.location = null; + } else if (name.equals("itemStatus")) { + this.itemStatus = null; + } else if (name.equals("countingDateTime")) { + this.countingDateTime = null; + } else if (name.equals("item")) { + this.getItem().add((InventoryReportInventoryListingItemComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -800,6 +815,19 @@ public class InventoryReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("item")) { + this.item = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1486,6 +1514,35 @@ public class InventoryReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new InventoryReportStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("countType")) { + value = new InventoryCountTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.countType = (Enumeration) value; // Enumeration + } else if (name.equals("operationType")) { + this.operationType = null; + } else if (name.equals("operationTypeReason")) { + this.operationTypeReason = null; + } else if (name.equals("reportedDateTime")) { + this.reportedDateTime = null; + } else if (name.equals("reporter")) { + this.reporter = null; + } else if (name.equals("reportingPeriod")) { + this.reportingPeriod = null; + } else if (name.equals("inventoryListing")) { + this.getInventoryListing().add((InventoryReportInventoryListingComponent) value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Invoice.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Invoice.java index 9c5bb30f4..73c521cb9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Invoice.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Invoice.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -329,6 +329,17 @@ public class Invoice extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("role")) { + this.role = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -726,6 +737,21 @@ public class Invoice extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("serviced[x]")) { + this.serviced = null; + } else if (name.equals("chargeItem[x]")) { + this.chargeItem = null; + } else if (name.equals("priceComponent")) { + this.getPriceComponent().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1884,6 +1910,50 @@ public class Invoice extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new InvoiceStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("cancelledReason")) { + this.cancelledReason = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("recipient")) { + this.recipient = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("creation")) { + this.creation = null; + } else if (name.equals("period[x]")) { + this.period = null; + } else if (name.equals("participant")) { + this.getParticipant().add((InvoiceParticipantComponent) value); + } else if (name.equals("issuer")) { + this.issuer = null; + } else if (name.equals("account")) { + this.account = null; + } else if (name.equals("lineItem")) { + this.getLineItem().add((InvoiceLineItemComponent) value); + } else if (name.equals("totalPriceComponent")) { + this.getTotalPriceComponent().remove(value); + } else if (name.equals("totalNet")) { + this.totalNet = null; + } else if (name.equals("totalGross")) { + this.totalGross = null; + } else if (name.equals("paymentTerms")) { + this.paymentTerms = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Library.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Library.java index aba015e54..6a7778466 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Library.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Library.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -2230,6 +2230,80 @@ public class Library extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("subtitle")) { + this.subtitle = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("subject[x]")) { + this.subject = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("usage")) { + this.usage = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("topic")) { + this.getTopic().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("parameter")) { + this.getParameter().remove(value); + } else if (name.equals("dataRequirement")) { + this.getDataRequirement().remove(value); + } else if (name.equals("content")) { + this.getContent().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Linkage.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Linkage.java index 5635cadd4..03ad6bc56 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Linkage.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Linkage.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -322,6 +322,18 @@ public class Linkage extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new LinkageTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("resource")) { + this.resource = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -617,6 +629,19 @@ public class Linkage extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("active")) { + this.active = null; + } else if (name.equals("author")) { + this.author = null; + } else if (name.equals("item")) { + this.getItem().add((LinkageItemComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ListResource.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ListResource.java index 68e1c69da..11fed1907 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ListResource.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ListResource.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -422,6 +422,21 @@ public class ListResource extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("flag")) { + this.flag = null; + } else if (name.equals("deleted")) { + this.deleted = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("item")) { + this.item = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1290,6 +1305,41 @@ public class ListResource extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new ListStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("mode")) { + value = new ListModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.mode = (Enumeration) value; // Enumeration + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.getSubject().remove(value); + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("source")) { + this.source = null; + } else if (name.equals("orderedBy")) { + this.orderedBy = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("entry")) { + this.getEntry().add((ListResourceEntryComponent) value); + } else if (name.equals("emptyReason")) { + this.emptyReason = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Location.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Location.java index 23ecf9490..14bc28d6f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Location.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Location.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -555,6 +555,19 @@ public class Location extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("longitude")) { + this.longitude = null; + } else if (name.equals("latitude")) { + this.latitude = null; + } else if (name.equals("altitude")) { + this.altitude = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1735,6 +1748,51 @@ public class Location extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new LocationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("operationalStatus")) { + this.operationalStatus = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("alias")) { + this.getAlias().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("mode")) { + value = new LocationModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.mode = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("address")) { + this.address = null; + } else if (name.equals("form")) { + this.form = null; + } else if (name.equals("position")) { + this.position = (LocationPositionComponent) value; // LocationPositionComponent + } else if (name.equals("managingOrganization")) { + this.managingOrganization = null; + } else if (name.equals("partOf")) { + this.partOf = null; + } else if (name.equals("characteristic")) { + this.getCharacteristic().remove(value); + } else if (name.equals("hoursOfOperation")) { + this.getHoursOfOperation().remove(value); + } else if (name.equals("virtualService")) { + this.getVirtualService().remove(value); + } else if (name.equals("endpoint")) { + this.getEndpoint().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ManufacturedItemDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ManufacturedItemDefinition.java index 06259ea8f..cbca84f33 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ManufacturedItemDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ManufacturedItemDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -296,6 +296,17 @@ public class ManufacturedItemDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -831,6 +842,25 @@ public class ManufacturedItemDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("function")) { + this.getFunction().remove(value); + } else if (name.equals("amount")) { + this.getAmount().remove(value); + } else if (name.equals("constituent")) { + this.getConstituent().add((ManufacturedItemDefinitionComponentConstituentComponent) value); + } else if (name.equals("property")) { + this.getProperty().add((ManufacturedItemDefinitionPropertyComponent) value); + } else if (name.equals("component")) { + this.getComponent().add((ManufacturedItemDefinitionComponentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1272,6 +1302,21 @@ public class ManufacturedItemDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("amount")) { + this.getAmount().remove(value); + } else if (name.equals("location")) { + this.getLocation().remove(value); + } else if (name.equals("function")) { + this.getFunction().remove(value); + } else if (name.equals("hasIngredient")) { + this.getHasIngredient().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2046,6 +2091,34 @@ public class ManufacturedItemDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("manufacturedDoseForm")) { + this.manufacturedDoseForm = null; + } else if (name.equals("unitOfPresentation")) { + this.unitOfPresentation = null; + } else if (name.equals("manufacturer")) { + this.getManufacturer().remove(value); + } else if (name.equals("marketingStatus")) { + this.getMarketingStatus().remove(value); + } else if (name.equals("ingredient")) { + this.getIngredient().remove(value); + } else if (name.equals("property")) { + this.getProperty().add((ManufacturedItemDefinitionPropertyComponent) value); + } else if (name.equals("component")) { + this.getComponent().add((ManufacturedItemDefinitionComponentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MarketingStatus.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MarketingStatus.java index 4746fe0e2..fc350f531 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MarketingStatus.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MarketingStatus.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -322,6 +322,23 @@ public class MarketingStatus extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("country")) { + this.country = null; + } else if (name.equals("jurisdiction")) { + this.jurisdiction = null; + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("dateRange")) { + this.dateRange = null; + } else if (name.equals("restoreDate")) { + this.restoreDate = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Measure.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Measure.java index 88a98db2c..d3c04f031 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Measure.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Measure.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -203,6 +203,17 @@ public class Measure extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("definition")) { + this.definition = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1095,6 +1106,40 @@ public class Measure extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("subject[x]")) { + this.subject = null; + } else if (name.equals("basis")) { + value = new FHIRTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.basis = (Enumeration) value; // Enumeration + } else if (name.equals("scoring")) { + this.scoring = null; + } else if (name.equals("scoringUnit")) { + this.scoringUnit = null; + } else if (name.equals("rateAggregation")) { + this.rateAggregation = null; + } else if (name.equals("improvementNotation")) { + this.improvementNotation = null; + } else if (name.equals("library")) { + this.getLibrary().remove(value); + } else if (name.equals("population")) { + this.getPopulation().add((MeasureGroupPopulationComponent) value); + } else if (name.equals("stratifier")) { + this.getStratifier().add((MeasureGroupStratifierComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1666,6 +1711,27 @@ public class Measure extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("criteria")) { + this.criteria = null; + } else if (name.equals("groupDefinition")) { + this.groupDefinition = null; + } else if (name.equals("inputPopulationId")) { + this.inputPopulationId = null; + } else if (name.equals("aggregateMethod")) { + this.aggregateMethod = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2140,6 +2206,25 @@ public class Measure extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("criteria")) { + this.criteria = null; + } else if (name.equals("groupDefinition")) { + this.groupDefinition = null; + } else if (name.equals("component")) { + this.getComponent().add((MeasureGroupStratifierComponentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2541,6 +2626,23 @@ public class Measure extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("criteria")) { + this.criteria = null; + } else if (name.equals("groupDefinition")) { + this.groupDefinition = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2970,6 +3072,23 @@ public class Measure extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("usage")) { + this.getUsage().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("criteria")) { + this.criteria = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5963,6 +6082,105 @@ public class Measure extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("subtitle")) { + this.subtitle = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("subject[x]")) { + this.subject = null; + } else if (name.equals("basis")) { + value = new FHIRTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.basis = (Enumeration) value; // Enumeration + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("usage")) { + this.usage = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("topic")) { + this.getTopic().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("library")) { + this.getLibrary().remove(value); + } else if (name.equals("disclaimer")) { + this.disclaimer = null; + } else if (name.equals("scoring")) { + this.scoring = null; + } else if (name.equals("scoringUnit")) { + this.scoringUnit = null; + } else if (name.equals("compositeScoring")) { + this.compositeScoring = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("riskAdjustment")) { + this.riskAdjustment = null; + } else if (name.equals("rateAggregation")) { + this.rateAggregation = null; + } else if (name.equals("rationale")) { + this.rationale = null; + } else if (name.equals("clinicalRecommendationStatement")) { + this.clinicalRecommendationStatement = null; + } else if (name.equals("improvementNotation")) { + this.improvementNotation = null; + } else if (name.equals("term")) { + this.getTerm().add((MeasureTermComponent) value); + } else if (name.equals("guidance")) { + this.guidance = null; + } else if (name.equals("group")) { + this.getGroup().add((MeasureGroupComponent) value); + } else if (name.equals("supplementalData")) { + this.getSupplementalData().add((MeasureSupplementalDataComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MeasureReport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MeasureReport.java index 2b82daa78..b4c1ab76c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MeasureReport.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MeasureReport.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -847,6 +847,25 @@ public class MeasureReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("population")) { + this.getPopulation().add((MeasureReportGroupPopulationComponent) value); + } else if (name.equals("measureScore[x]")) { + this.measureScore = null; + } else if (name.equals("stratifier")) { + this.getStratifier().add((MeasureReportGroupStratifierComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1337,6 +1356,25 @@ public class MeasureReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("count")) { + this.count = null; + } else if (name.equals("subjectResults")) { + this.subjectResults = null; + } else if (name.equals("subjectReport")) { + this.getSubjectReport().remove(value); + } else if (name.equals("subjects")) { + this.subjects = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1664,6 +1702,19 @@ public class MeasureReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("stratum")) { + this.getStratum().add((StratifierGroupComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2184,6 +2235,21 @@ public class MeasureReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("component")) { + this.getComponent().add((StratifierGroupComponentComponent) value); + } else if (name.equals("population")) { + this.getPopulation().add((StratifierGroupPopulationComponent) value); + } else if (name.equals("measureScore[x]")) { + this.measureScore = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2598,6 +2664,19 @@ public class MeasureReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3055,6 +3134,25 @@ public class MeasureReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("count")) { + this.count = null; + } else if (name.equals("subjectResults")) { + this.subjectResults = null; + } else if (name.equals("subjectReport")) { + this.getSubjectReport().remove(value); + } else if (name.equals("subjects")) { + this.subjects = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4125,6 +4223,50 @@ public class MeasureReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new MeasureReportStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + value = new MeasureReportTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("dataUpdateType")) { + value = new SubmitDataUpdateTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.dataUpdateType = (Enumeration) value; // Enumeration + } else if (name.equals("measure")) { + this.measure = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("reporter")) { + this.reporter = null; + } else if (name.equals("reportingVendor")) { + this.reportingVendor = null; + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("inputParameters")) { + this.inputParameters = null; + } else if (name.equals("scoring")) { + this.scoring = null; + } else if (name.equals("improvementNotation")) { + this.improvementNotation = null; + } else if (name.equals("group")) { + this.getGroup().add((MeasureReportGroupComponent) value); + } else if (name.equals("supplementalData")) { + this.getSupplementalData().remove(value); + } else if (name.equals("evaluatedResource")) { + this.getEvaluatedResource().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Medication.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Medication.java index 7b7c319ea..fd2ee37d2 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Medication.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Medication.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -405,6 +405,19 @@ public class Medication extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item")) { + this.item = null; + } else if (name.equals("isActive")) { + this.isActive = null; + } else if (name.equals("strength[x]")) { + this.strength = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -673,6 +686,17 @@ public class Medication extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("lotNumber")) { + this.lotNumber = null; + } else if (name.equals("expirationDate")) { + this.expirationDate = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1234,6 +1258,32 @@ public class Medication extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("status")) { + value = new MedicationStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("marketingAuthorizationHolder")) { + this.marketingAuthorizationHolder = null; + } else if (name.equals("doseForm")) { + this.doseForm = null; + } else if (name.equals("totalVolume")) { + this.totalVolume = null; + } else if (name.equals("ingredient")) { + this.getIngredient().add((MedicationIngredientComponent) value); + } else if (name.equals("batch")) { + this.batch = (MedicationBatchComponent) value; // MedicationBatchComponent + } else if (name.equals("definition")) { + this.definition = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationAdministration.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationAdministration.java index 4064a1255..49acfee27 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationAdministration.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationAdministration.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -362,6 +362,17 @@ public class MedicationAdministration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -777,6 +788,25 @@ public class MedicationAdministration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("text")) { + this.text = null; + } else if (name.equals("site")) { + this.site = null; + } else if (name.equals("route")) { + this.route = null; + } else if (name.equals("method")) { + this.method = null; + } else if (name.equals("dose")) { + this.dose = null; + } else if (name.equals("rate[x]")) { + this.rate = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2232,6 +2262,56 @@ public class MedicationAdministration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new MedicationAdministrationStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.getStatusReason().remove(value); + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("medication")) { + this.medication = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("supportingInformation")) { + this.getSupportingInformation().remove(value); + } else if (name.equals("occurence[x]")) { + this.occurence = null; + } else if (name.equals("recorded")) { + this.recorded = null; + } else if (name.equals("isSubPotent")) { + this.isSubPotent = null; + } else if (name.equals("subPotentReason")) { + this.getSubPotentReason().remove(value); + } else if (name.equals("performer")) { + this.getPerformer().add((MedicationAdministrationPerformerComponent) value); + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("request")) { + this.request = null; + } else if (name.equals("device")) { + this.getDevice().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("dosage")) { + this.dosage = (MedicationAdministrationDosageComponent) value; // MedicationAdministrationDosageComponent + } else if (name.equals("eventHistory")) { + this.getEventHistory().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationDispense.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationDispense.java index a86de7356..eff6110c8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationDispense.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationDispense.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -394,6 +394,17 @@ public class MedicationDispense extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -733,6 +744,21 @@ public class MedicationDispense extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("wasSubstituted")) { + this.wasSubstituted = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("responsibleParty")) { + this.responsibleParty = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2407,6 +2433,68 @@ public class MedicationDispense extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new MedicationDispenseStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("notPerformedReason")) { + this.notPerformedReason = null; + } else if (name.equals("statusChanged")) { + this.statusChanged = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("medication")) { + this.medication = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("supportingInformation")) { + this.getSupportingInformation().remove(value); + } else if (name.equals("performer")) { + this.getPerformer().add((MedicationDispensePerformerComponent) value); + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("authorizingPrescription")) { + this.getAuthorizingPrescription().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("daysSupply")) { + this.daysSupply = null; + } else if (name.equals("recorded")) { + this.recorded = null; + } else if (name.equals("whenPrepared")) { + this.whenPrepared = null; + } else if (name.equals("whenHandedOver")) { + this.whenHandedOver = null; + } else if (name.equals("destination")) { + this.destination = null; + } else if (name.equals("receiver")) { + this.getReceiver().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("renderedDosageInstruction")) { + this.renderedDosageInstruction = null; + } else if (name.equals("dosageInstruction")) { + this.getDosageInstruction().remove(value); + } else if (name.equals("substitution")) { + this.substitution = (MedicationDispenseSubstitutionComponent) value; // MedicationDispenseSubstitutionComponent + } else if (name.equals("eventHistory")) { + this.getEventHistory().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationKnowledge.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationKnowledge.java index 527c53bb4..2724f0a6b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationKnowledge.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationKnowledge.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -327,6 +327,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("reference")) { + this.getReference().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -531,6 +542,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("source")) { + this.source = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -904,6 +926,21 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("effectiveDate")) { + this.getEffectiveDate().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("source")) { + this.source = null; + } else if (name.equals("cost[x]")) { + this.cost = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1153,6 +1190,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("name")) { + this.name = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1411,6 +1459,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("indication")) { + this.getIndication().remove(value); + } else if (name.equals("dosingGuideline")) { + this.getDosingGuideline().add((MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1756,6 +1815,21 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("treatmentIntent")) { + this.treatmentIntent = null; + } else if (name.equals("dosage")) { + this.getDosage().add((MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent) value); + } else if (name.equals("administrationTreatment")) { + this.administrationTreatment = null; + } else if (name.equals("patientCharacteristic")) { + this.getPatientCharacteristic().add((MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2018,6 +2092,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("dosage")) { + this.getDosage().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2276,6 +2361,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2592,6 +2688,19 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("source[x]")) { + this.source = null; + } else if (name.equals("classification")) { + this.getClassification().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2839,6 +2948,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("cost")) { + this.getCost().add((MedicationKnowledgeCostComponent) value); + } else if (name.equals("packagedProduct")) { + this.packagedProduct = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3205,6 +3325,21 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("reference")) { + this.reference = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("stabilityDuration")) { + this.stabilityDuration = null; + } else if (name.equals("environmentalSetting")) { + this.getEnvironmentalSetting().add((MedicationKnowledgeStorageGuidelineEnvironmentalSettingComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3482,6 +3617,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3836,6 +3982,21 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("regulatoryAuthority")) { + this.regulatoryAuthority = null; + } else if (name.equals("substitution")) { + this.getSubstitution().add((MedicationKnowledgeRegulatorySubstitutionComponent) value); + } else if (name.equals("schedule")) { + this.getSchedule().remove(value); + } else if (name.equals("maxDispense")) { + this.maxDispense = (MedicationKnowledgeRegulatoryMaxDispenseComponent) value; // MedicationKnowledgeRegulatoryMaxDispenseComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4089,6 +4250,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("allowed")) { + this.allowed = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4297,6 +4469,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4733,6 +4916,23 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("definition")) { + this.getDefinition().remove(value); + } else if (name.equals("doseForm")) { + this.doseForm = null; + } else if (name.equals("intendedRoute")) { + this.getIntendedRoute().remove(value); + } else if (name.equals("ingredient")) { + this.getIngredient().add((MedicationKnowledgeDefinitionalIngredientComponent) value); + } else if (name.equals("drugCharacteristic")) { + this.getDrugCharacteristic().add((MedicationKnowledgeDefinitionalDrugCharacteristicComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5065,6 +5265,19 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item")) { + this.item = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("strength[x]")) { + this.strength = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5362,6 +5575,17 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6777,6 +7001,54 @@ public class MedicationKnowledge extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("status")) { + value = new MedicationKnowledgeStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("author")) { + this.author = null; + } else if (name.equals("intendedJurisdiction")) { + this.getIntendedJurisdiction().remove(value); + } else if (name.equals("name")) { + this.getName().remove(value); + } else if (name.equals("relatedMedicationKnowledge")) { + this.getRelatedMedicationKnowledge().add((MedicationKnowledgeRelatedMedicationKnowledgeComponent) value); + } else if (name.equals("associatedMedication")) { + this.getAssociatedMedication().remove(value); + } else if (name.equals("productType")) { + this.getProductType().remove(value); + } else if (name.equals("monograph")) { + this.getMonograph().add((MedicationKnowledgeMonographComponent) value); + } else if (name.equals("preparationInstruction")) { + this.preparationInstruction = null; + } else if (name.equals("cost")) { + this.getCost().add((MedicationKnowledgeCostComponent) value); + } else if (name.equals("monitoringProgram")) { + this.getMonitoringProgram().add((MedicationKnowledgeMonitoringProgramComponent) value); + } else if (name.equals("indicationGuideline")) { + this.getIndicationGuideline().add((MedicationKnowledgeIndicationGuidelineComponent) value); + } else if (name.equals("medicineClassification")) { + this.getMedicineClassification().add((MedicationKnowledgeMedicineClassificationComponent) value); + } else if (name.equals("packaging")) { + this.getPackaging().add((MedicationKnowledgePackagingComponent) value); + } else if (name.equals("clinicalUseIssue")) { + this.getClinicalUseIssue().remove(value); + } else if (name.equals("storageGuideline")) { + this.getStorageGuideline().add((MedicationKnowledgeStorageGuidelineComponent) value); + } else if (name.equals("regulatory")) { + this.getRegulatory().add((MedicationKnowledgeRegulatoryComponent) value); + } else if (name.equals("definitional")) { + this.definitional = (MedicationKnowledgeDefinitionalComponent) value; // MedicationKnowledgeDefinitionalComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationRequest.java index 6658a6c1e..113e6d30f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationRequest.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -901,6 +901,31 @@ public class MedicationRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("initialFill")) { + this.initialFill = (MedicationRequestDispenseRequestInitialFillComponent) value; // MedicationRequestDispenseRequestInitialFillComponent + } else if (name.equals("dispenseInterval")) { + this.dispenseInterval = null; + } else if (name.equals("validityPeriod")) { + this.validityPeriod = null; + } else if (name.equals("numberOfRepeatsAllowed")) { + this.numberOfRepeatsAllowed = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("expectedSupplyDuration")) { + this.expectedSupplyDuration = null; + } else if (name.equals("dispenser")) { + this.dispenser = null; + } else if (name.equals("dispenserInstruction")) { + this.getDispenserInstruction().remove(value); + } else if (name.equals("doseAdministrationAid")) { + this.doseAdministrationAid = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1159,6 +1184,17 @@ public class MedicationRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("duration")) { + this.duration = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1400,6 +1436,17 @@ public class MedicationRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("allowed[x]")) { + this.allowed = null; + } else if (name.equals("reason")) { + this.reason = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3371,6 +3418,82 @@ public class MedicationRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("priorPrescription")) { + this.priorPrescription = null; + } else if (name.equals("groupIdentifier")) { + this.groupIdentifier = null; + } else if (name.equals("status")) { + value = new MedicationrequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.statusReason = null; + } else if (name.equals("statusChanged")) { + this.statusChanged = null; + } else if (name.equals("intent")) { + value = new MedicationRequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("doNotPerform")) { + this.doNotPerform = null; + } else if (name.equals("medication")) { + this.medication = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("informationSource")) { + this.getInformationSource().remove(value); + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("supportingInformation")) { + this.getSupportingInformation().remove(value); + } else if (name.equals("authoredOn")) { + this.authoredOn = null; + } else if (name.equals("requester")) { + this.requester = null; + } else if (name.equals("reported")) { + this.reported = null; + } else if (name.equals("performerType")) { + this.performerType = null; + } else if (name.equals("performer")) { + this.getPerformer().remove(value); + } else if (name.equals("device")) { + this.getDevice().remove(value); + } else if (name.equals("recorder")) { + this.recorder = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("courseOfTherapyType")) { + this.courseOfTherapyType = null; + } else if (name.equals("insurance")) { + this.getInsurance().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("renderedDosageInstruction")) { + this.renderedDosageInstruction = null; + } else if (name.equals("effectiveDosePeriod")) { + this.effectiveDosePeriod = null; + } else if (name.equals("dosageInstruction")) { + this.getDosageInstruction().remove(value); + } else if (name.equals("dispenseRequest")) { + this.dispenseRequest = (MedicationRequestDispenseRequestComponent) value; // MedicationRequestDispenseRequestComponent + } else if (name.equals("substitution")) { + this.substitution = (MedicationRequestSubstitutionComponent) value; // MedicationRequestSubstitutionComponent + } else if (name.equals("eventHistory")) { + this.getEventHistory().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationStatement.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationStatement.java index 0a359d6d7..d888d4875 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationStatement.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationStatement.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -301,6 +301,17 @@ public class MedicationStatement extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("reason")) { + this.reason = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1479,6 +1490,48 @@ public class MedicationStatement extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new MedicationStatementStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("medication")) { + this.medication = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("effective[x]")) { + this.effective = null; + } else if (name.equals("dateAsserted")) { + this.dateAsserted = null; + } else if (name.equals("informationSource")) { + this.getInformationSource().remove(value); + } else if (name.equals("derivedFrom")) { + this.getDerivedFrom().remove(value); + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("relatedClinicalInformation")) { + this.getRelatedClinicalInformation().remove(value); + } else if (name.equals("renderedDosageInstruction")) { + this.renderedDosageInstruction = null; + } else if (name.equals("dosage")) { + this.getDosage().remove(value); + } else if (name.equals("adherence")) { + this.adherence = (MedicationStatementAdherenceComponent) value; // MedicationStatementAdherenceComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicinalProductDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicinalProductDefinition.java index f051e3977..af79b0f72 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicinalProductDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicinalProductDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -186,6 +186,17 @@ public class MedicinalProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("contact")) { + this.contact = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -553,6 +564,21 @@ public class MedicinalProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("productName")) { + this.productName = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("part")) { + this.getPart().add((MedicinalProductDefinitionNamePartComponent) value); + } else if (name.equals("usage")) { + this.getUsage().add((MedicinalProductDefinitionNameUsageComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -806,6 +832,17 @@ public class MedicinalProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("part")) { + this.part = null; + } else if (name.equals("type")) { + this.type = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1057,6 +1094,19 @@ public class MedicinalProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("country")) { + this.country = null; + } else if (name.equals("jurisdiction")) { + this.jurisdiction = null; + } else if (name.equals("language")) { + this.language = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1276,6 +1326,17 @@ public class MedicinalProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("product")) { + this.product = null; + } else if (name.equals("type")) { + this.type = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1585,6 +1646,21 @@ public class MedicinalProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("effectiveDate")) { + this.effectiveDate = null; + } else if (name.equals("organization")) { + this.getOrganization().remove(value); + } else if (name.equals("confidentialityIndicator")) { + this.confidentialityIndicator = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1924,6 +2000,17 @@ public class MedicinalProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3845,6 +3932,71 @@ public class MedicinalProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("domain")) { + this.domain = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("statusDate")) { + this.statusDate = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("combinedPharmaceuticalDoseForm")) { + this.combinedPharmaceuticalDoseForm = null; + } else if (name.equals("route")) { + this.getRoute().remove(value); + } else if (name.equals("indication")) { + this.indication = null; + } else if (name.equals("legalStatusOfSupply")) { + this.legalStatusOfSupply = null; + } else if (name.equals("additionalMonitoringIndicator")) { + this.additionalMonitoringIndicator = null; + } else if (name.equals("specialMeasures")) { + this.getSpecialMeasures().remove(value); + } else if (name.equals("pediatricUseIndicator")) { + this.pediatricUseIndicator = null; + } else if (name.equals("classification")) { + this.getClassification().remove(value); + } else if (name.equals("marketingStatus")) { + this.getMarketingStatus().remove(value); + } else if (name.equals("packagedMedicinalProduct")) { + this.getPackagedMedicinalProduct().remove(value); + } else if (name.equals("comprisedOf")) { + this.getComprisedOf().remove(value); + } else if (name.equals("ingredient")) { + this.getIngredient().remove(value); + } else if (name.equals("impurity")) { + this.getImpurity().remove(value); + } else if (name.equals("attachedDocument")) { + this.getAttachedDocument().remove(value); + } else if (name.equals("masterFile")) { + this.getMasterFile().remove(value); + } else if (name.equals("contact")) { + this.getContact().add((MedicinalProductDefinitionContactComponent) value); + } else if (name.equals("clinicalTrial")) { + this.getClinicalTrial().remove(value); + } else if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("name")) { + this.getName().add((MedicinalProductDefinitionNameComponent) value); + } else if (name.equals("crossReference")) { + this.getCrossReference().add((MedicinalProductDefinitionCrossReferenceComponent) value); + } else if (name.equals("operation")) { + this.getOperation().add((MedicinalProductDefinitionOperationComponent) value); + } else if (name.equals("characteristic")) { + this.getCharacteristic().add((MedicinalProductDefinitionCharacteristicComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageDefinition.java index d2103c2d2..2ff6a1d20 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -597,6 +597,21 @@ public class MessageDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("profile")) { + this.profile = null; + } else if (name.equals("min")) { + this.min = null; + } else if (name.equals("max")) { + this.max = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -865,6 +880,17 @@ public class MessageDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("message")) { + this.message = null; + } else if (name.equals("situation")) { + this.situation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2716,6 +2742,68 @@ public class MessageDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("replaces")) { + this.getReplaces().remove(value); + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("base")) { + this.base = null; + } else if (name.equals("parent")) { + this.getParent().remove(value); + } else if (name.equals("event[x]")) { + this.event = null; + } else if (name.equals("category")) { + value = new MessageSignificanceCategoryEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.category = (Enumeration) value; // Enumeration + } else if (name.equals("focus")) { + this.getFocus().add((MessageDefinitionFocusComponent) value); + } else if (name.equals("responseRequired")) { + value = new MessageheaderResponseRequestEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.responseRequired = (Enumeration) value; // Enumeration + } else if (name.equals("allowedResponse")) { + this.getAllowedResponse().add((MessageDefinitionAllowedResponseComponent) value); + } else if (name.equals("graph")) { + this.graph = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageHeader.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageHeader.java index dfcfc4c66..0b2175431 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageHeader.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageHeader.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -422,6 +422,21 @@ public class MessageHeader extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("endpoint[x]")) { + this.endpoint = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("target")) { + this.target = null; + } else if (name.equals("receiver")) { + this.receiver = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -865,6 +880,23 @@ public class MessageHeader extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("endpoint[x]")) { + this.endpoint = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("software")) { + this.software = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("contact")) { + this.contact = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1164,6 +1196,20 @@ public class MessageHeader extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("code")) { + value = new ResponseTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.code = (Enumeration) value; // Enumeration + } else if (name.equals("details")) { + this.details = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1806,6 +1852,33 @@ public class MessageHeader extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("event[x]")) { + this.event = null; + } else if (name.equals("destination")) { + this.getDestination().add((MessageDestinationComponent) value); + } else if (name.equals("sender")) { + this.sender = null; + } else if (name.equals("author")) { + this.author = null; + } else if (name.equals("source")) { + this.source = (MessageSourceComponent) value; // MessageSourceComponent + } else if (name.equals("responsible")) { + this.responsible = null; + } else if (name.equals("reason")) { + this.reason = null; + } else if (name.equals("response")) { + this.response = (MessageHeaderResponseComponent) value; // MessageHeaderResponseComponent + } else if (name.equals("focus")) { + this.getFocus().remove(value); + } else if (name.equals("definition")) { + this.definition = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Meta.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Meta.java index 9b6eb3722..b7917d558 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Meta.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Meta.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -502,6 +502,25 @@ public class Meta extends DataType implements IBaseMetaType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("versionId")) { + this.versionId = null; + } else if (name.equals("lastUpdated")) { + this.lastUpdated = null; + } else if (name.equals("source")) { + this.source = null; + } else if (name.equals("profile")) { + this.getProfile().remove(value); + } else if (name.equals("security")) { + this.getSecurity().remove(value); + } else if (name.equals("tag")) { + this.getTag().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MetadataResource.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MetadataResource.java index 9dc178e11..5ac0e97b6 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MetadataResource.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MetadataResource.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -293,6 +293,11 @@ public abstract class MetadataResource extends CanonicalResource { return super.setProperty(name, value); } + @Override + public void removeChild(String name, Base value) throws FHIRException { + super.removeChild(name, value); + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MolecularSequence.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MolecularSequence.java index 830ab38fa..6ee0f6e7f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MolecularSequence.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MolecularSequence.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -657,6 +657,23 @@ public class MolecularSequence extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("coordinateSystem")) { + this.coordinateSystem = null; + } else if (name.equals("ordinalPosition")) { + this.ordinalPosition = null; + } else if (name.equals("sequenceRange")) { + this.sequenceRange = null; + } else if (name.equals("startingSequence")) { + this.startingSequence = (MolecularSequenceRelativeStartingSequenceComponent) value; // MolecularSequenceRelativeStartingSequenceComponent + } else if (name.equals("edit")) { + this.getEdit().add((MolecularSequenceRelativeEditComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1225,6 +1242,29 @@ public class MolecularSequence extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("genomeAssembly")) { + this.genomeAssembly = null; + } else if (name.equals("chromosome")) { + this.chromosome = null; + } else if (name.equals("sequence[x]")) { + this.sequence = null; + } else if (name.equals("windowStart")) { + this.windowStart = null; + } else if (name.equals("windowEnd")) { + this.windowEnd = null; + } else if (name.equals("orientation")) { + value = new OrientationTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.orientation = (Enumeration) value; // Enumeration + } else if (name.equals("strand")) { + value = new StrandTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.strand = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1640,6 +1680,21 @@ public class MolecularSequence extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("start")) { + this.start = null; + } else if (name.equals("end")) { + this.end = null; + } else if (name.equals("replacementSequence")) { + this.replacementSequence = null; + } else if (name.equals("replacedSequence")) { + this.replacedSequence = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2333,6 +2388,34 @@ public class MolecularSequence extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("type")) { + value = new SequenceTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("focus")) { + this.getFocus().remove(value); + } else if (name.equals("specimen")) { + this.specimen = null; + } else if (name.equals("device")) { + this.device = null; + } else if (name.equals("performer")) { + this.performer = null; + } else if (name.equals("literal")) { + this.literal = null; + } else if (name.equals("formatted")) { + this.getFormatted().remove(value); + } else if (name.equals("relative")) { + this.getRelative().add((MolecularSequenceRelativeComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MonetaryComponent.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MonetaryComponent.java index 85bd2a688..ea83deae0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MonetaryComponent.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MonetaryComponent.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -487,6 +487,22 @@ public class MonetaryComponent extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new PriceComponentTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("amount")) { + this.amount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Money.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Money.java index a0bcdbbd1..9a28d531f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Money.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Money.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -243,6 +243,17 @@ public class Money extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value")) { + this.value = null; + } else if (name.equals("currency")) { + this.currency = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java index 0fbe2a662..b3144f512 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -726,6 +726,26 @@ public class NamingSystem extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new NamingSystemIdentifierTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("value")) { + this.value = null; + } else if (name.equals("preferred")) { + this.preferred = null; + } else if (name.equals("comment")) { + this.comment = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("authoritative")) { + this.authoritative = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2859,6 +2879,77 @@ public class NamingSystem extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("kind")) { + value = new NamingSystemTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.kind = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("responsible")) { + this.responsible = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("topic")) { + this.getTopic().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("usage")) { + this.usage = null; + } else if (name.equals("uniqueId")) { + this.getUniqueId().add((NamingSystemUniqueIdComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Narrative.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Narrative.java index e90d3298b..f2141a0ab 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Narrative.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Narrative.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -337,6 +337,18 @@ public class Narrative extends BaseNarrative implements INarrative { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("status")) { + value = new NarrativeStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("div")) { + this.div = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionIntake.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionIntake.java index cf8e49f3b..4239f0f4b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionIntake.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionIntake.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -405,6 +405,27 @@ public class NutritionIntake extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("nutritionProduct")) { + this.nutritionProduct = null; + } else if (name.equals("schedule")) { + this.schedule = null; + } else if (name.equals("amount")) { + this.amount = null; + } else if (name.equals("rate")) { + this.rate = null; + } else if (name.equals("notConsumed")) { + this.notConsumed = null; + } else if (name.equals("notConsumedReason")) { + this.notConsumedReason = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -654,6 +675,17 @@ public class NutritionIntake extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("nutrient")) { + this.nutrient = null; + } else if (name.equals("amount")) { + this.amount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -864,6 +896,17 @@ public class NutritionIntake extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2251,6 +2294,54 @@ public class NutritionIntake extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.getInstantiatesCanonical().remove(value); + } else if (name.equals("instantiatesUri")) { + this.getInstantiatesUri().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new EventStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.getStatusReason().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("recorded")) { + this.recorded = null; + } else if (name.equals("reported[x]")) { + this.reported = null; + } else if (name.equals("consumedItem")) { + this.getConsumedItem().add((NutritionIntakeConsumedItemComponent) value); + } else if (name.equals("ingredientLabel")) { + this.getIngredientLabel().add((NutritionIntakeIngredientLabelComponent) value); + } else if (name.equals("performer")) { + this.getPerformer().add((NutritionIntakePerformerComponent) value); + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("derivedFrom")) { + this.getDerivedFrom().remove(value); + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionOrder.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionOrder.java index 2a65036a3..13079525b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionOrder.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionOrder.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -476,6 +476,25 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("schedule")) { + this.schedule = (OralDietScheduleComponent) value; // OralDietScheduleComponent + } else if (name.equals("nutrient")) { + this.getNutrient().add((NutritionOrderOralDietNutrientComponent) value); + } else if (name.equals("texture")) { + this.getTexture().add((NutritionOrderOralDietTextureComponent) value); + } else if (name.equals("fluidConsistencyType")) { + this.getFluidConsistencyType().remove(value); + } else if (name.equals("instruction")) { + this.instruction = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -809,6 +828,19 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("timing")) { + this.getTiming().remove(value); + } else if (name.equals("asNeeded")) { + this.asNeeded = null; + } else if (name.equals("asNeededFor")) { + this.asNeededFor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1022,6 +1054,17 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("modifier")) { + this.modifier = null; + } else if (name.equals("amount")) { + this.amount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1225,6 +1268,17 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("modifier")) { + this.modifier = null; + } else if (name.equals("foodType")) { + this.foodType = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1594,6 +1648,23 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("productName")) { + this.productName = null; + } else if (name.equals("schedule")) { + this.schedule = (SupplementScheduleComponent) value; // SupplementScheduleComponent + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("instruction")) { + this.instruction = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1907,6 +1978,19 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("timing")) { + this.getTiming().remove(value); + } else if (name.equals("asNeeded")) { + this.asNeeded = null; + } else if (name.equals("asNeededFor")) { + this.asNeededFor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2531,6 +2615,31 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("baseFormulaType")) { + this.baseFormulaType = null; + } else if (name.equals("baseFormulaProductName")) { + this.baseFormulaProductName = null; + } else if (name.equals("deliveryDevice")) { + this.getDeliveryDevice().remove(value); + } else if (name.equals("additive")) { + this.getAdditive().add((NutritionOrderEnteralFormulaAdditiveComponent) value); + } else if (name.equals("caloricDensity")) { + this.caloricDensity = null; + } else if (name.equals("routeOfAdministration")) { + this.routeOfAdministration = null; + } else if (name.equals("administration")) { + this.getAdministration().add((NutritionOrderEnteralFormulaAdministrationComponent) value); + } else if (name.equals("maxVolumeToDeliver")) { + this.maxVolumeToDeliver = null; + } else if (name.equals("administrationInstruction")) { + this.administrationInstruction = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2860,6 +2969,19 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("productName")) { + this.productName = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3138,6 +3260,19 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("schedule")) { + this.schedule = (EnteralFormulaScheduleComponent) value; // EnteralFormulaScheduleComponent + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("rate[x]")) { + this.rate = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3443,6 +3578,19 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("timing")) { + this.getTiming().remove(value); + } else if (name.equals("asNeeded")) { + this.asNeeded = null; + } else if (name.equals("asNeededFor")) { + this.asNeededFor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4975,6 +5123,62 @@ public class NutritionOrder extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.getInstantiatesCanonical().remove(value); + } else if (name.equals("instantiatesUri")) { + this.getInstantiatesUri().remove(value); + } else if (name.equals("instantiates")) { + this.getInstantiates().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("groupIdentifier")) { + this.groupIdentifier = null; + } else if (name.equals("status")) { + value = new RequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("intent")) { + value = new RequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("supportingInformation")) { + this.getSupportingInformation().remove(value); + } else if (name.equals("dateTime")) { + this.dateTime = null; + } else if (name.equals("orderer")) { + this.orderer = null; + } else if (name.equals("performer")) { + this.getPerformer().remove(value); + } else if (name.equals("allergyIntolerance")) { + this.getAllergyIntolerance().remove(value); + } else if (name.equals("foodPreferenceModifier")) { + this.getFoodPreferenceModifier().remove(value); + } else if (name.equals("excludeFoodModifier")) { + this.getExcludeFoodModifier().remove(value); + } else if (name.equals("outsideFoodAllowed")) { + this.outsideFoodAllowed = null; + } else if (name.equals("oralDiet")) { + this.oralDiet = (NutritionOrderOralDietComponent) value; // NutritionOrderOralDietComponent + } else if (name.equals("supplement")) { + this.getSupplement().add((NutritionOrderSupplementComponent) value); + } else if (name.equals("enteralFormula")) { + this.enteralFormula = (NutritionOrderEnteralFormulaComponent) value; // NutritionOrderEnteralFormulaComponent + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionProduct.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionProduct.java index 562ac652c..96727c051 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionProduct.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionProduct.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -319,6 +319,17 @@ public class NutritionProduct extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item")) { + this.item = null; + } else if (name.equals("amount")) { + this.getAmount().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -560,6 +571,17 @@ public class NutritionProduct extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item")) { + this.item = null; + } else if (name.equals("amount")) { + this.getAmount().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -868,6 +890,17 @@ public class NutritionProduct extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1414,6 +1447,27 @@ public class NutritionProduct extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("lotNumber")) { + this.lotNumber = null; + } else if (name.equals("expiry")) { + this.expiry = null; + } else if (name.equals("useBy")) { + this.useBy = null; + } else if (name.equals("biologicalSourceEvent")) { + this.biologicalSourceEvent = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2230,6 +2284,34 @@ public class NutritionProduct extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("status")) { + value = new NutritionProductStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("manufacturer")) { + this.getManufacturer().remove(value); + } else if (name.equals("nutrient")) { + this.getNutrient().add((NutritionProductNutrientComponent) value); + } else if (name.equals("ingredient")) { + this.getIngredient().add((NutritionProductIngredientComponent) value); + } else if (name.equals("knownAllergen")) { + this.getKnownAllergen().remove(value); + } else if (name.equals("characteristic")) { + this.getCharacteristic().add((NutritionProductCharacteristicComponent) value); + } else if (name.equals("instance")) { + this.getInstance().add((NutritionProductInstanceComponent) value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Observation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Observation.java index 8b22384cd..61182b06b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Observation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Observation.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -391,6 +391,20 @@ Reflex | Repeat | Re-run. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("observation")) { + this.observation = null; + } else if (name.equals("type")) { + value = new TriggeredBytypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("reason")) { + this.reason = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -851,6 +865,27 @@ Reflex | Repeat | Re-run. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("low")) { + this.low = null; + } else if (name.equals("high")) { + this.high = null; + } else if (name.equals("normalValue")) { + this.normalValue = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("appliesTo")) { + this.getAppliesTo().remove(value); + } else if (name.equals("age")) { + this.age = null; + } else if (name.equals("text")) { + this.text = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1484,6 +1519,23 @@ Reflex | Repeat | Re-run. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("dataAbsentReason")) { + this.dataAbsentReason = null; + } else if (name.equals("interpretation")) { + this.getInterpretation().remove(value); + } else if (name.equals("referenceRange")) { + this.getReferenceRange().add((ObservationReferenceRangeComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3476,6 +3528,68 @@ Reflex | Repeat | Re-run. return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiates[x]")) { + this.instantiates = null; + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("triggeredBy")) { + this.getTriggeredBy().add((ObservationTriggeredByComponent) value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new ObservationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("focus")) { + this.getFocus().remove(value); + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("effective[x]")) { + this.effective = null; + } else if (name.equals("issued")) { + this.issued = null; + } else if (name.equals("performer")) { + this.getPerformer().remove(value); + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("dataAbsentReason")) { + this.dataAbsentReason = null; + } else if (name.equals("interpretation")) { + this.getInterpretation().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("bodySite")) { + this.bodySite = null; + } else if (name.equals("bodyStructure")) { + this.bodyStructure = null; + } else if (name.equals("method")) { + this.method = null; + } else if (name.equals("specimen")) { + this.specimen = null; + } else if (name.equals("device")) { + this.device = null; + } else if (name.equals("referenceRange")) { + this.getReferenceRange().add((ObservationReferenceRangeComponent) value); + } else if (name.equals("hasMember")) { + this.getHasMember().remove(value); + } else if (name.equals("derivedFrom")) { + this.getDerivedFrom().remove(value); + } else if (name.equals("component")) { + this.getComponent().add((ObservationComponentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ObservationDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ObservationDefinition.java index 9b140cfe4..098d94ab8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ObservationDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ObservationDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1131,6 +1131,39 @@ public class ObservationDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("context")) { + this.context = null; + } else if (name.equals("appliesTo")) { + this.getAppliesTo().remove(value); + } else if (name.equals("gender")) { + value = new AdministrativeGenderEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.gender = (Enumeration) value; // Enumeration + } else if (name.equals("age")) { + this.age = null; + } else if (name.equals("gestationalAge")) { + this.gestationalAge = null; + } else if (name.equals("condition")) { + this.condition = null; + } else if (name.equals("rangeCategory")) { + value = new ObservationRangeCategoryEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.rangeCategory = (Enumeration) value; // Enumeration + } else if (name.equals("range")) { + this.range = null; + } else if (name.equals("validCodedValueSet")) { + this.validCodedValueSet = null; + } else if (name.equals("normalCodedValueSet")) { + this.normalCodedValueSet = null; + } else if (name.equals("abnormalCodedValueSet")) { + this.abnormalCodedValueSet = null; + } else if (name.equals("criticalCodedValueSet")) { + this.criticalCodedValueSet = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1593,6 +1626,22 @@ public class ObservationDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("permittedDataType")) { + value = new ObservationDataTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getPermittedDataType().add((Enumeration) value); + } else if (name.equals("permittedUnit")) { + this.getPermittedUnit().remove(value); + } else if (name.equals("qualifiedValue")) { + this.getQualifiedValue().add((ObservationDefinitionQualifiedValueComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4053,6 +4102,89 @@ public class ObservationDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("derivedFromCanonical")) { + this.getDerivedFromCanonical().remove(value); + } else if (name.equals("derivedFromUri")) { + this.getDerivedFromUri().remove(value); + } else if (name.equals("subject")) { + this.getSubject().remove(value); + } else if (name.equals("performerType")) { + this.performerType = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("permittedDataType")) { + value = new ObservationDataTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getPermittedDataType().add((Enumeration) value); + } else if (name.equals("multipleResultsAllowed")) { + this.multipleResultsAllowed = null; + } else if (name.equals("bodySite")) { + this.bodySite = null; + } else if (name.equals("method")) { + this.method = null; + } else if (name.equals("specimen")) { + this.getSpecimen().remove(value); + } else if (name.equals("device")) { + this.getDevice().remove(value); + } else if (name.equals("preferredReportName")) { + this.preferredReportName = null; + } else if (name.equals("permittedUnit")) { + this.getPermittedUnit().remove(value); + } else if (name.equals("qualifiedValue")) { + this.getQualifiedValue().add((ObservationDefinitionQualifiedValueComponent) value); + } else if (name.equals("hasMember")) { + this.getHasMember().remove(value); + } else if (name.equals("component")) { + this.getComponent().add((ObservationDefinitionComponentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationDefinition.java index 8f81a3b66..107da31ca 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1168,6 +1168,44 @@ public class OperationDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("use")) { + value = new OperationParameterUseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.use = (Enumeration) value; // Enumeration + } else if (name.equals("scope")) { + value = new OperationParameterScopeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getScope().add((Enumeration) value); + } else if (name.equals("min")) { + this.min = null; + } else if (name.equals("max")) { + this.max = null; + } else if (name.equals("documentation")) { + this.documentation = null; + } else if (name.equals("type")) { + value = new FHIRTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("allowedType")) { + value = new FHIRTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getAllowedType().add((Enumeration) value); + } else if (name.equals("targetProfile")) { + this.getTargetProfile().remove(value); + } else if (name.equals("searchType")) { + value = new SearchParamTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.searchType = (Enumeration) value; // Enumeration + } else if (name.equals("binding")) { + this.binding = (OperationDefinitionParameterBindingComponent) value; // OperationDefinitionParameterBindingComponent + } else if (name.equals("referencedFrom")) { + this.getReferencedFrom().add((OperationDefinitionParameterReferencedFromComponent) value); + } else if (name.equals("part")) { + this.getPart().add((OperationDefinitionParameterComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1517,6 +1555,18 @@ public class OperationDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("strength")) { + value = new BindingStrengthEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.strength = (Enumeration) value; // Enumeration + } else if (name.equals("valueSet")) { + this.valueSet = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1770,6 +1820,17 @@ public class OperationDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("source")) { + this.source = null; + } else if (name.equals("sourceId")) { + this.sourceId = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2031,6 +2092,17 @@ public class OperationDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("parameterName")) { + this.getParameterName().remove(value); + } else if (name.equals("comment")) { + this.comment = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4106,6 +4178,76 @@ public class OperationDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("kind")) { + value = new OperationKindEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.kind = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("affectsState")) { + this.affectsState = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("comment")) { + this.comment = null; + } else if (name.equals("base")) { + this.base = null; + } else if (name.equals("resource")) { + value = new VersionIndependentResourceTypesAllEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getResource().add((Enumeration) value); + } else if (name.equals("system")) { + this.system = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("instance")) { + this.instance = null; + } else if (name.equals("inputProfile")) { + this.inputProfile = null; + } else if (name.equals("outputProfile")) { + this.outputProfile = null; + } else if (name.equals("parameter")) { + this.getParameter().add((OperationDefinitionParameterComponent) value); + } else if (name.equals("overload")) { + this.getOverload().add((OperationDefinitionOverloadComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationOutcome.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationOutcome.java index b0ce78ede..82acb98e5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationOutcome.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationOutcome.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1237,6 +1237,27 @@ For resource issues, this will be a simple XPath limited to element names, repet return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("severity")) { + value = new IssueSeverityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.severity = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + value = new IssueTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.code = (Enumeration) value; // Enumeration + } else if (name.equals("details")) { + this.details = null; + } else if (name.equals("diagnostics")) { + this.diagnostics = null; + } else if (name.equals("location")) { + this.getLocation().remove(value); + } else if (name.equals("expression")) { + this.getExpression().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1503,6 +1524,15 @@ public boolean isInformationorLess() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("issue")) { + this.getIssue().add((OperationOutcomeIssueComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrderedDistribution.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrderedDistribution.java index a1cacfea7..fb6b21c88 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrderedDistribution.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrderedDistribution.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -233,6 +233,17 @@ public class OrderedDistribution extends BackboneType implements ICompositeType return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("rankOrder")) { + this.rankOrder = null; + } else if (name.equals("intervalStatistic")) { + this.getIntervalStatistic().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -705,6 +716,25 @@ public class OrderedDistribution extends BackboneType implements ICompositeType return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("numberOfIntervals")) { + this.numberOfIntervals = null; + } else if (name.equals("bottomOfFirstInterval")) { + this.bottomOfFirstInterval = null; + } else if (name.equals("interval")) { + this.getInterval().add((OrderedDistributionIntervalComponent) value); + } else if (name.equals("topOfInterval")) { + this.topOfInterval = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Organization.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Organization.java index a23fbe526..c83bb6ada 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Organization.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Organization.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -292,6 +292,21 @@ public class Organization extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("issuer")) { + this.issuer = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1076,6 +1091,33 @@ public class Organization extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("alias")) { + this.getAlias().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("partOf")) { + this.partOf = null; + } else if (name.equals("endpoint")) { + this.getEndpoint().remove(value); + } else if (name.equals("qualification")) { + this.getQualification().add((OrganizationQualificationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrganizationAffiliation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrganizationAffiliation.java index ead555824..ff3561815 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrganizationAffiliation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrganizationAffiliation.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -819,6 +819,37 @@ public class OrganizationAffiliation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("organization")) { + this.organization = null; + } else if (name.equals("participatingOrganization")) { + this.participatingOrganization = null; + } else if (name.equals("network")) { + this.getNetwork().remove(value); + } else if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("specialty")) { + this.getSpecialty().remove(value); + } else if (name.equals("location")) { + this.getLocation().remove(value); + } else if (name.equals("healthcareService")) { + this.getHealthcareService().remove(value); + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("endpoint")) { + this.getEndpoint().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PackagedProductDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PackagedProductDefinition.java index 005b449c8..2881baef9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PackagedProductDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PackagedProductDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -179,6 +179,17 @@ public class PackagedProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("jurisdiction")) { + this.jurisdiction = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1008,6 +1019,35 @@ public class PackagedProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("componentPart")) { + this.componentPart = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("material")) { + this.getMaterial().remove(value); + } else if (name.equals("alternateMaterial")) { + this.getAlternateMaterial().remove(value); + } else if (name.equals("shelfLifeStorage")) { + this.getShelfLifeStorage().remove(value); + } else if (name.equals("manufacturer")) { + this.getManufacturer().remove(value); + } else if (name.equals("property")) { + this.getProperty().add((PackagedProductDefinitionPackagingPropertyComponent) value); + } else if (name.equals("containedItem")) { + this.getContainedItem().add((PackagedProductDefinitionPackagingContainedItemComponent) value); + } else if (name.equals("packaging")) { + this.getPackaging().add((PackagedProductDefinitionPackagingComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1388,6 +1428,17 @@ public class PackagedProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1614,6 +1665,17 @@ public class PackagedProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("item")) { + this.item = null; + } else if (name.equals("amount")) { + this.amount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2650,6 +2712,43 @@ public class PackagedProductDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("packageFor")) { + this.getPackageFor().remove(value); + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("statusDate")) { + this.statusDate = null; + } else if (name.equals("containedItemQuantity")) { + this.getContainedItemQuantity().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("legalStatusOfSupply")) { + this.getLegalStatusOfSupply().add((PackagedProductDefinitionLegalStatusOfSupplyComponent) value); + } else if (name.equals("marketingStatus")) { + this.getMarketingStatus().remove(value); + } else if (name.equals("copackagedIndicator")) { + this.copackagedIndicator = null; + } else if (name.equals("manufacturer")) { + this.getManufacturer().remove(value); + } else if (name.equals("attachedDocument")) { + this.getAttachedDocument().remove(value); + } else if (name.equals("packaging")) { + this.packaging = (PackagedProductDefinitionPackagingComponent) value; // PackagedProductDefinitionPackagingComponent + } else if (name.equals("characteristic")) { + this.getCharacteristic().add((PackagedProductDefinitionPackagingPropertyComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ParameterDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ParameterDefinition.java index dc230ec6a..169785454 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ParameterDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ParameterDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -546,6 +546,29 @@ public class ParameterDefinition extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("use")) { + value = new OperationParameterUseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.use = (Enumeration) value; // Enumeration + } else if (name.equals("min")) { + this.min = null; + } else if (name.equals("max")) { + this.max = null; + } else if (name.equals("documentation")) { + this.documentation = null; + } else if (name.equals("type")) { + value = new FHIRTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("profile")) { + this.profile = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Parameters.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Parameters.java index 12516e2cc..6b54abbe4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Parameters.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Parameters.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1172,6 +1172,21 @@ public class Parameters extends Resource implements IBaseParameters { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("resource")) { + this.resource = null; + } else if (name.equals("part")) { + this.getPart().add((ParametersParameterComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1612,6 +1627,15 @@ public String toString() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("parameter")) { + this.getParameter().add((ParametersParameterComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Patient.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Patient.java index b30dffd49..b11a59e7a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Patient.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Patient.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -587,6 +587,28 @@ public class Patient extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("relationship")) { + this.getRelationship().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("telecom")) { + this.getTelecom().remove(value); + } else if (name.equals("address")) { + this.address = null; + } else if (name.equals("gender")) { + value = new AdministrativeGenderEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.gender = (Enumeration) value; // Enumeration + } else if (name.equals("organization")) { + this.organization = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -861,6 +883,17 @@ public class Patient extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("language")) { + this.language = null; + } else if (name.equals("preferred")) { + this.preferred = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1094,6 +1127,18 @@ public class Patient extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("other")) { + this.other = null; + } else if (name.equals("type")) { + value = new LinkTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2259,6 +2304,46 @@ Deceased patients may also be marked as inactive for the same reasons, but may b return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("name")) { + this.getName().remove(value); + } else if (name.equals("telecom")) { + this.getTelecom().remove(value); + } else if (name.equals("gender")) { + value = new AdministrativeGenderEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.gender = (Enumeration) value; // Enumeration + } else if (name.equals("birthDate")) { + this.birthDate = null; + } else if (name.equals("deceased[x]")) { + this.deceased = null; + } else if (name.equals("address")) { + this.getAddress().remove(value); + } else if (name.equals("maritalStatus")) { + this.maritalStatus = null; + } else if (name.equals("multipleBirth[x]")) { + this.multipleBirth = null; + } else if (name.equals("photo")) { + this.getPhoto().remove(value); + } else if (name.equals("contact")) { + this.getContact().add((ContactComponent) value); + } else if (name.equals("communication")) { + this.getCommunication().add((PatientCommunicationComponent) value); + } else if (name.equals("generalPractitioner")) { + this.getGeneralPractitioner().remove(value); + } else if (name.equals("managingOrganization")) { + this.managingOrganization = null; + } else if (name.equals("link")) { + this.getLink().add((PatientLinkComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentNotice.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentNotice.java index ca4b49b88..d26a3e49e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentNotice.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentNotice.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -676,6 +676,38 @@ public class PaymentNotice extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("request")) { + this.request = null; + } else if (name.equals("response")) { + this.response = null; + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("reporter")) { + this.reporter = null; + } else if (name.equals("payment")) { + this.payment = null; + } else if (name.equals("paymentDate")) { + this.paymentDate = null; + } else if (name.equals("payee")) { + this.payee = null; + } else if (name.equals("recipient")) { + this.recipient = null; + } else if (name.equals("amount")) { + this.amount = null; + } else if (name.equals("paymentStatus")) { + this.paymentStatus = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentReconciliation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentReconciliation.java index f5d52b10e..9009cb00f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentReconciliation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentReconciliation.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -918,6 +918,39 @@ public class PaymentReconciliation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("predecessor")) { + this.predecessor = null; + } else if (name.equals("target")) { + this.target = null; + } else if (name.equals("targetItem[x]")) { + this.targetItem = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("account")) { + this.account = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("submitter")) { + this.submitter = null; + } else if (name.equals("response")) { + this.response = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("responsible")) { + this.responsible = null; + } else if (name.equals("payee")) { + this.payee = null; + } else if (name.equals("amount")) { + this.amount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1263,6 +1296,18 @@ public class PaymentReconciliation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new NoteTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("text")) { + this.text = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2886,6 +2931,73 @@ public class PaymentReconciliation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("status")) { + value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("kind")) { + this.kind = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("enterer")) { + this.enterer = null; + } else if (name.equals("issuerType")) { + this.issuerType = null; + } else if (name.equals("paymentIssuer")) { + this.paymentIssuer = null; + } else if (name.equals("request")) { + this.request = null; + } else if (name.equals("requestor")) { + this.requestor = null; + } else if (name.equals("outcome")) { + value = new PaymentOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration + } else if (name.equals("disposition")) { + this.disposition = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("method")) { + this.method = null; + } else if (name.equals("cardBrand")) { + this.cardBrand = null; + } else if (name.equals("accountNumber")) { + this.accountNumber = null; + } else if (name.equals("expirationDate")) { + this.expirationDate = null; + } else if (name.equals("processor")) { + this.processor = null; + } else if (name.equals("referenceNumber")) { + this.referenceNumber = null; + } else if (name.equals("authorization")) { + this.authorization = null; + } else if (name.equals("tenderedAmount")) { + this.tenderedAmount = null; + } else if (name.equals("returnedAmount")) { + this.returnedAmount = null; + } else if (name.equals("amount")) { + this.amount = null; + } else if (name.equals("paymentIdentifier")) { + this.paymentIdentifier = null; + } else if (name.equals("allocation")) { + this.getAllocation().add((PaymentReconciliationAllocationComponent) value); + } else if (name.equals("formCode")) { + this.formCode = null; + } else if (name.equals("processNote")) { + this.getProcessNote().add((NotesComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Period.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Period.java index af777aa2b..f9389bcb0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Period.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Period.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -223,6 +223,17 @@ public class Period extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("start")) { + this.start = null; + } else if (name.equals("end")) { + this.end = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Permission.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Permission.java index a947d76be..f44d3d6e8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Permission.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Permission.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -524,6 +524,17 @@ public class Permission extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("basis")) { + this.getBasis().remove(value); + } else if (name.equals("evidence")) { + this.getEvidence().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -925,6 +936,22 @@ public class Permission extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new ConsentProvisionTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("data")) { + this.getData().add((RuleDataComponent) value); + } else if (name.equals("activity")) { + this.getActivity().add((RuleActivityComponent) value); + } else if (name.equals("limit")) { + this.getLimit().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1315,6 +1342,21 @@ public class Permission extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("resource")) { + this.getResource().add((RuleDataResourceComponent) value); + } else if (name.equals("security")) { + this.getSecurity().remove(value); + } else if (name.equals("period")) { + this.getPeriod().remove(value); + } else if (name.equals("expression")) { + this.expression = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1574,6 +1616,18 @@ public class Permission extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("meaning")) { + value = new ConsentDataMeaningEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.meaning = (Enumeration) value; // Enumeration + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1902,6 +1956,19 @@ public class Permission extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("actor")) { + this.getActor().remove(value); + } else if (name.equals("action")) { + this.getAction().remove(value); + } else if (name.equals("purpose")) { + this.getPurpose().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2436,6 +2503,29 @@ public class Permission extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("status")) { + value = new PermissionStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("asserter")) { + this.asserter = null; + } else if (name.equals("date")) { + this.getDate().remove(value); + } else if (name.equals("validity")) { + this.validity = null; + } else if (name.equals("justification")) { + this.justification = (PermissionJustificationComponent) value; // PermissionJustificationComponent + } else if (name.equals("combining")) { + value = new PermissionRuleCombiningEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.combining = (Enumeration) value; // Enumeration + } else if (name.equals("rule")) { + this.getRule().add((RuleComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Person.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Person.java index ecf78e640..4e640a94e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Person.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Person.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -335,6 +335,17 @@ public class Person extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("language")) { + this.language = null; + } else if (name.equals("preferred")) { + this.preferred = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -571,6 +582,18 @@ public class Person extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("target")) { + this.target = null; + } else if (name.equals("assurance")) { + value = new IdentityAssuranceLevelEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.assurance = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1506,6 +1529,40 @@ public class Person extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("name")) { + this.getName().remove(value); + } else if (name.equals("telecom")) { + this.getTelecom().remove(value); + } else if (name.equals("gender")) { + value = new AdministrativeGenderEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.gender = (Enumeration) value; // Enumeration + } else if (name.equals("birthDate")) { + this.birthDate = null; + } else if (name.equals("deceased[x]")) { + this.deceased = null; + } else if (name.equals("address")) { + this.getAddress().remove(value); + } else if (name.equals("maritalStatus")) { + this.maritalStatus = null; + } else if (name.equals("photo")) { + this.getPhoto().remove(value); + } else if (name.equals("communication")) { + this.getCommunication().add((PersonCommunicationComponent) value); + } else if (name.equals("managingOrganization")) { + this.managingOrganization = null; + } else if (name.equals("link")) { + this.getLink().add((PersonLinkComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PlanDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PlanDefinition.java index 1245f8fc8..6d67752c0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PlanDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PlanDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -472,6 +472,27 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("priority")) { + this.priority = null; + } else if (name.equals("start")) { + this.start = null; + } else if (name.equals("addresses")) { + this.getAddresses().remove(value); + } else if (name.equals("documentation")) { + this.getDocumentation().remove(value); + } else if (name.equals("target")) { + this.getTarget().add((PlanDefinitionGoalTargetComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -870,6 +891,19 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("measure")) { + this.measure = null; + } else if (name.equals("detail[x]")) { + this.detail = null; + } else if (name.equals("due")) { + this.due = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1230,6 +1264,19 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("option")) { + this.getOption().add((PlanDefinitionActorOptionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1573,6 +1620,22 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("typeCanonical")) { + this.typeCanonical = null; + } else if (name.equals("typeReference")) { + this.typeReference = null; + } else if (name.equals("role")) { + this.role = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3628,6 +3691,77 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("prefix")) { + this.prefix = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("textEquivalent")) { + this.textEquivalent = null; + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("documentation")) { + this.getDocumentation().remove(value); + } else if (name.equals("goalId")) { + this.getGoalId().remove(value); + } else if (name.equals("subject[x]")) { + this.subject = null; + } else if (name.equals("trigger")) { + this.getTrigger().remove(value); + } else if (name.equals("condition")) { + this.getCondition().add((PlanDefinitionActionConditionComponent) value); + } else if (name.equals("input")) { + this.getInput().add((PlanDefinitionActionInputComponent) value); + } else if (name.equals("output")) { + this.getOutput().add((PlanDefinitionActionOutputComponent) value); + } else if (name.equals("relatedAction")) { + this.getRelatedAction().add((PlanDefinitionActionRelatedActionComponent) value); + } else if (name.equals("timing[x]")) { + this.timing = null; + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("participant")) { + this.getParticipant().add((PlanDefinitionActionParticipantComponent) value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("groupingBehavior")) { + value = new ActionGroupingBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.groupingBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("selectionBehavior")) { + value = new ActionSelectionBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.selectionBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("requiredBehavior")) { + value = new ActionRequiredBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.requiredBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("precheckBehavior")) { + value = new ActionPrecheckBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.precheckBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("cardinalityBehavior")) { + value = new ActionCardinalityBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.cardinalityBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("definition[x]")) { + this.definition = null; + } else if (name.equals("transform")) { + this.transform = null; + } else if (name.equals("dynamicValue")) { + this.getDynamicValue().add((PlanDefinitionActionDynamicValueComponent) value); + } else if (name.equals("action")) { + this.getAction().add((PlanDefinitionActionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4118,6 +4252,18 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("kind")) { + value = new ActionConditionKindEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.kind = (Enumeration) value; // Enumeration + } else if (name.equals("expression")) { + this.expression = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4407,6 +4553,19 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = null; + } else if (name.equals("requirement")) { + this.requirement = null; + } else if (name.equals("relatedData")) { + this.relatedData = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4704,6 +4863,19 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = null; + } else if (name.equals("requirement")) { + this.requirement = null; + } else if (name.equals("relatedData")) { + this.relatedData = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5102,6 +5274,23 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("targetId")) { + this.targetId = null; + } else if (name.equals("relationship")) { + value = new ActionRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.relationship = (Enumeration) value; // Enumeration + } else if (name.equals("endRelationship")) { + value = new ActionRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.endRelationship = (Enumeration) value; // Enumeration + } else if (name.equals("offset[x]")) { + this.offset = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5559,6 +5748,26 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("actorId")) { + this.actorId = null; + } else if (name.equals("type")) { + value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("typeCanonical")) { + this.typeCanonical = null; + } else if (name.equals("typeReference")) { + this.typeReference = null; + } else if (name.equals("role")) { + this.role = null; + } else if (name.equals("function")) { + this.function = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5814,6 +6023,17 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("path")) { + this.path = null; + } else if (name.equals("expression")) { + this.expression = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8228,6 +8448,84 @@ public class PlanDefinition extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("subtitle")) { + this.subtitle = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("subject[x]")) { + this.subject = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("usage")) { + this.usage = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("topic")) { + this.getTopic().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("library")) { + this.getLibrary().remove(value); + } else if (name.equals("goal")) { + this.getGoal().add((PlanDefinitionGoalComponent) value); + } else if (name.equals("actor")) { + this.getActor().add((PlanDefinitionActorComponent) value); + } else if (name.equals("action")) { + this.getAction().add((PlanDefinitionActionComponent) value); + } else if (name.equals("asNeeded[x]")) { + this.asNeeded = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Practitioner.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Practitioner.java index 68910a22f..00509a8ac 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Practitioner.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Practitioner.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -293,6 +293,21 @@ public class Practitioner extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("issuer")) { + this.issuer = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -543,6 +558,17 @@ public class Practitioner extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("language")) { + this.language = null; + } else if (name.equals("preferred")) { + this.preferred = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1409,6 +1435,36 @@ The `PractitionerRole.communication` property should be used for publishing the return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("name")) { + this.getName().remove(value); + } else if (name.equals("telecom")) { + this.getTelecom().remove(value); + } else if (name.equals("gender")) { + value = new AdministrativeGenderEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.gender = (Enumeration) value; // Enumeration + } else if (name.equals("birthDate")) { + this.birthDate = null; + } else if (name.equals("deceased[x]")) { + this.deceased = null; + } else if (name.equals("address")) { + this.getAddress().remove(value); + } else if (name.equals("photo")) { + this.getPhoto().remove(value); + } else if (name.equals("qualification")) { + this.getQualification().add((PractitionerQualificationComponent) value); + } else if (name.equals("communication")) { + this.getCommunication().add((PractitionerCommunicationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PractitionerRole.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PractitionerRole.java index 73dffb672..feaacde2f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PractitionerRole.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PractitionerRole.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -957,6 +957,41 @@ public class PractitionerRole extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("practitioner")) { + this.practitioner = null; + } else if (name.equals("organization")) { + this.organization = null; + } else if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("specialty")) { + this.getSpecialty().remove(value); + } else if (name.equals("location")) { + this.getLocation().remove(value); + } else if (name.equals("healthcareService")) { + this.getHealthcareService().remove(value); + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("characteristic")) { + this.getCharacteristic().remove(value); + } else if (name.equals("communication")) { + this.getCommunication().remove(value); + } else if (name.equals("availability")) { + this.getAvailability().remove(value); + } else if (name.equals("endpoint")) { + this.getEndpoint().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PrimitiveType.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PrimitiveType.java index 88ab1d141..0c936d3a6 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PrimitiveType.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PrimitiveType.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* Copyright (c) 2011+, HL7, Inc. @@ -206,6 +206,15 @@ public abstract class PrimitiveType extends DataType implements IPrimitiveTyp else return super.setProperty(name, value); return value; + } + + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value")) + setValueAsString(value.toString()); + else + super.removeChild(name, value); + } @Override diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Procedure.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Procedure.java index b043c07d1..03c92b68f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Procedure.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Procedure.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -264,6 +264,21 @@ public class Procedure extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else if (name.equals("onBehalfOf")) { + this.onBehalfOf = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -490,6 +505,17 @@ public class Procedure extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("action")) { + this.action = null; + } else if (name.equals("manipulated")) { + this.manipulated = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2374,6 +2400,70 @@ public class Procedure extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.getInstantiatesCanonical().remove(value); + } else if (name.equals("instantiatesUri")) { + this.getInstantiatesUri().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new EventStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.statusReason = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("focus")) { + this.focus = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("recorded")) { + this.recorded = null; + } else if (name.equals("recorder")) { + this.recorder = null; + } else if (name.equals("reported[x]")) { + this.reported = null; + } else if (name.equals("performer")) { + this.getPerformer().add((ProcedurePerformerComponent) value); + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("bodySite")) { + this.getBodySite().remove(value); + } else if (name.equals("outcome")) { + this.outcome = null; + } else if (name.equals("report")) { + this.getReport().remove(value); + } else if (name.equals("complication")) { + this.getComplication().remove(value); + } else if (name.equals("followUp")) { + this.getFollowUp().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("focalDevice")) { + this.getFocalDevice().add((ProcedureFocalDeviceComponent) value); + } else if (name.equals("used")) { + this.getUsed().remove(value); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProdCharacteristic.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProdCharacteristic.java index 03f05a807..2798980f8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProdCharacteristic.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProdCharacteristic.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -652,6 +652,35 @@ public class ProdCharacteristic extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("height")) { + this.height = null; + } else if (name.equals("width")) { + this.width = null; + } else if (name.equals("depth")) { + this.depth = null; + } else if (name.equals("weight")) { + this.weight = null; + } else if (name.equals("nominalVolume")) { + this.nominalVolume = null; + } else if (name.equals("externalDiameter")) { + this.externalDiameter = null; + } else if (name.equals("shape")) { + this.shape = null; + } else if (name.equals("color")) { + this.getColor().remove(value); + } else if (name.equals("imprint")) { + this.getImprint().remove(value); + } else if (name.equals("image")) { + this.getImage().remove(value); + } else if (name.equals("scoring")) { + this.scoring = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProductShelfLife.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProductShelfLife.java index b6bd9b4c1..118edc9c7 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProductShelfLife.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProductShelfLife.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -270,6 +270,19 @@ public class ProductShelfLife extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("period[x]")) { + this.period = null; + } else if (name.equals("specialPrecautionsForStorage")) { + this.getSpecialPrecautionsForStorage().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Provenance.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Provenance.java index cec2ff15e..d2edcb088 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Provenance.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Provenance.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -438,6 +438,21 @@ public class Provenance extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("role")) { + this.getRole().remove(value); + } else if (name.equals("who")) { + this.who = null; + } else if (name.equals("onBehalfOf")) { + this.onBehalfOf = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -759,6 +774,20 @@ public class Provenance extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("role")) { + value = new ProvenanceEntityRoleEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.role = (Enumeration) value; // Enumeration + } else if (name.equals("what")) { + this.what = null; + } else if (name.equals("agent")) { + this.getAgent().add((ProvenanceAgentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1674,6 +1703,39 @@ public class Provenance extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("target")) { + this.getTarget().remove(value); + } else if (name.equals("occurred[x]")) { + this.occurred = null; + } else if (name.equals("recorded")) { + this.recorded = null; + } else if (name.equals("policy")) { + this.getPolicy().remove(value); + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("authorization")) { + this.getAuthorization().remove(value); + } else if (name.equals("activity")) { + this.activity = null; + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("agent")) { + this.getAgent().add((ProvenanceAgentComponent) value); + } else if (name.equals("entity")) { + this.getEntity().add((ProvenanceEntityComponent) value); + } else if (name.equals("signature")) { + this.getSignature().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Quantity.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Quantity.java index 692800d2b..757fb4828 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Quantity.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Quantity.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -488,6 +488,24 @@ public class Quantity extends DataType implements ICompositeType, ICoding { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value")) { + this.value = null; + } else if (name.equals("comparator")) { + value = new QuantityComparatorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.comparator = (Enumeration) value; // Enumeration + } else if (name.equals("unit")) { + this.unit = null; + } else if (name.equals("system")) { + this.system = null; + } else if (name.equals("code")) { + this.code = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Questionnaire.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Questionnaire.java index a4f42141b..5e4d794ec 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Questionnaire.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Questionnaire.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -2069,6 +2069,53 @@ public class Questionnaire extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("definition")) { + this.definition = null; + } else if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("prefix")) { + this.prefix = null; + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("type")) { + value = new QuestionnaireItemTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("enableWhen")) { + this.getEnableWhen().add((QuestionnaireItemEnableWhenComponent) value); + } else if (name.equals("enableBehavior")) { + value = new EnableWhenBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.enableBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("disabledDisplay")) { + value = new QuestionnaireItemDisabledDisplayEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.disabledDisplay = (Enumeration) value; // Enumeration + } else if (name.equals("required")) { + this.required = null; + } else if (name.equals("repeats")) { + this.repeats = null; + } else if (name.equals("readOnly")) { + this.readOnly = null; + } else if (name.equals("maxLength")) { + this.maxLength = null; + } else if (name.equals("answerConstraint")) { + value = new QuestionnaireAnswerConstraintEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.answerConstraint = (Enumeration) value; // Enumeration + } else if (name.equals("answerValueSet")) { + this.answerValueSet = null; + } else if (name.equals("answerOption")) { + this.getAnswerOption().add((QuestionnaireItemAnswerOptionComponent) value); + } else if (name.equals("initial")) { + this.getInitial().add((QuestionnaireItemInitialComponent) value); + } else if (name.equals("item")) { + this.getItem().add((QuestionnaireItemComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2689,6 +2736,20 @@ public QuestionnaireItemComponent getQuestion(String linkId) { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("question")) { + this.question = null; + } else if (name.equals("operator")) { + value = new QuestionnaireItemOperatorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.operator = (Enumeration) value; // Enumeration + } else if (name.equals("answer[x]")) { + this.answer = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3058,6 +3119,17 @@ public QuestionnaireItemComponent getQuestion(String linkId) { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("initialSelected")) { + this.initialSelected = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3440,6 +3512,15 @@ public QuestionnaireItemComponent getQuestion(String linkId) { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5380,6 +5461,62 @@ public QuestionnaireItemComponent getQuestion(String linkId) { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("derivedFrom")) { + this.getDerivedFrom().remove(value); + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("subjectType")) { + this.getSubjectType().remove(value); + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("item")) { + this.getItem().add((QuestionnaireItemComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/QuestionnaireResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/QuestionnaireResponse.java index c5ea8c129..0a5a2ac35 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/QuestionnaireResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/QuestionnaireResponse.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -575,6 +575,23 @@ public class QuestionnaireResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("definition")) { + this.definition = null; + } else if (name.equals("text")) { + this.text = null; + } else if (name.equals("answer")) { + this.getAnswer().add((QuestionnaireResponseItemAnswerComponent) value); + } else if (name.equals("item")) { + this.getItem().add((QuestionnaireResponseItemComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1031,6 +1048,17 @@ public class QuestionnaireResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("item")) { + this.getItem().add((QuestionnaireResponseItemComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1824,6 +1852,36 @@ public class QuestionnaireResponse extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("questionnaire")) { + this.questionnaire = null; + } else if (name.equals("status")) { + value = new QuestionnaireResponseStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("authored")) { + this.authored = null; + } else if (name.equals("author")) { + this.author = null; + } else if (name.equals("source")) { + this.source = null; + } else if (name.equals("item")) { + this.getItem().add((QuestionnaireResponseItemComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Range.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Range.java index a4d34ca90..f30d791d3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Range.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Range.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -172,6 +172,17 @@ public class Range extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("low")) { + this.low = null; + } else if (name.equals("high")) { + this.high = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ratio.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ratio.java index e7e7a658b..9a861f598 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ratio.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ratio.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -172,6 +172,17 @@ public class Ratio extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("numerator")) { + this.numerator = null; + } else if (name.equals("denominator")) { + this.denominator = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RatioRange.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RatioRange.java index 5a2819216..64e4992be 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RatioRange.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RatioRange.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -211,6 +211,19 @@ public class RatioRange extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("lowNumerator")) { + this.lowNumerator = null; + } else if (name.equals("highNumerator")) { + this.highNumerator = null; + } else if (name.equals("denominator")) { + this.denominator = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Reference.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Reference.java index 912f05920..50c8a03cc 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Reference.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Reference.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -368,6 +368,21 @@ The type is the Canonical URL of Resource Definition that is the type this refer return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("reference")) { + this.reference = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("display")) { + this.display = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RegulatedAuthorization.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RegulatedAuthorization.java index 9fa39712d..ade204839 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RegulatedAuthorization.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RegulatedAuthorization.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -355,6 +355,23 @@ public class RegulatedAuthorization extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("date[x]")) { + this.date = null; + } else if (name.equals("application")) { + this.getApplication().add((RegulatedAuthorizationCaseComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1321,6 +1338,43 @@ public class RegulatedAuthorization extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("subject")) { + this.getSubject().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("region")) { + this.getRegion().remove(value); + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("statusDate")) { + this.statusDate = null; + } else if (name.equals("validityPeriod")) { + this.validityPeriod = null; + } else if (name.equals("indication")) { + this.getIndication().remove(value); + } else if (name.equals("intendedUse")) { + this.intendedUse = null; + } else if (name.equals("basis")) { + this.getBasis().remove(value); + } else if (name.equals("holder")) { + this.holder = null; + } else if (name.equals("regulator")) { + this.regulator = null; + } else if (name.equals("attachedDocument")) { + this.getAttachedDocument().remove(value); + } else if (name.equals("case")) { + this.case_ = (RegulatedAuthorizationCaseComponent) value; // RegulatedAuthorizationCaseComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedArtifact.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedArtifact.java index 7d2e746d2..9ed5512d7 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedArtifact.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedArtifact.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1340,6 +1340,35 @@ public class RelatedArtifact extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new RelatedArtifactTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("classifier")) { + this.getClassifier().remove(value); + } else if (name.equals("label")) { + this.label = null; + } else if (name.equals("display")) { + this.display = null; + } else if (name.equals("citation")) { + this.citation = null; + } else if (name.equals("document")) { + this.document = null; + } else if (name.equals("resource")) { + this.resource = null; + } else if (name.equals("resourceReference")) { + this.resourceReference = null; + } else if (name.equals("publicationStatus")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.publicationStatus = (Enumeration) value; // Enumeration + } else if (name.equals("publicationDate")) { + this.publicationDate = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedPerson.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedPerson.java index 1a6e79041..849dce9cd 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedPerson.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedPerson.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -207,6 +207,17 @@ public class RelatedPerson extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("language")) { + this.language = null; + } else if (name.equals("preferred")) { + this.preferred = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1081,6 +1092,38 @@ public class RelatedPerson extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("relationship")) { + this.getRelationship().remove(value); + } else if (name.equals("name")) { + this.getName().remove(value); + } else if (name.equals("telecom")) { + this.getTelecom().remove(value); + } else if (name.equals("gender")) { + value = new AdministrativeGenderEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.gender = (Enumeration) value; // Enumeration + } else if (name.equals("birthDate")) { + this.birthDate = null; + } else if (name.equals("address")) { + this.getAddress().remove(value); + } else if (name.equals("photo")) { + this.getPhoto().remove(value); + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("communication")) { + this.getCommunication().add((RelatedPersonCommunicationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RequestOrchestration.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RequestOrchestration.java index b1a3ff075..1cd92c8e0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RequestOrchestration.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RequestOrchestration.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1886,6 +1886,73 @@ public class RequestOrchestration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("prefix")) { + this.prefix = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("textEquivalent")) { + this.textEquivalent = null; + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + this.getCode().remove(value); + } else if (name.equals("documentation")) { + this.getDocumentation().remove(value); + } else if (name.equals("goal")) { + this.getGoal().remove(value); + } else if (name.equals("condition")) { + this.getCondition().add((RequestOrchestrationActionConditionComponent) value); + } else if (name.equals("input")) { + this.getInput().add((RequestOrchestrationActionInputComponent) value); + } else if (name.equals("output")) { + this.getOutput().add((RequestOrchestrationActionOutputComponent) value); + } else if (name.equals("relatedAction")) { + this.getRelatedAction().add((RequestOrchestrationActionRelatedActionComponent) value); + } else if (name.equals("timing[x]")) { + this.timing = null; + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("participant")) { + this.getParticipant().add((RequestOrchestrationActionParticipantComponent) value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("groupingBehavior")) { + value = new ActionGroupingBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.groupingBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("selectionBehavior")) { + value = new ActionSelectionBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.selectionBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("requiredBehavior")) { + value = new ActionRequiredBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.requiredBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("precheckBehavior")) { + value = new ActionPrecheckBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.precheckBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("cardinalityBehavior")) { + value = new ActionCardinalityBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.cardinalityBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("resource")) { + this.resource = null; + } else if (name.equals("definition[x]")) { + this.definition = null; + } else if (name.equals("transform")) { + this.transform = null; + } else if (name.equals("dynamicValue")) { + this.getDynamicValue().add((RequestOrchestrationActionDynamicValueComponent) value); + } else if (name.equals("action")) { + this.getAction().add((RequestOrchestrationActionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2357,6 +2424,18 @@ public class RequestOrchestration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("kind")) { + value = new ActionConditionKindEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.kind = (Enumeration) value; // Enumeration + } else if (name.equals("expression")) { + this.expression = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2646,6 +2725,19 @@ public class RequestOrchestration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = null; + } else if (name.equals("requirement")) { + this.requirement = null; + } else if (name.equals("relatedData")) { + this.relatedData = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2943,6 +3035,19 @@ public class RequestOrchestration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = null; + } else if (name.equals("requirement")) { + this.requirement = null; + } else if (name.equals("relatedData")) { + this.relatedData = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3341,6 +3446,23 @@ public class RequestOrchestration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("targetId")) { + this.targetId = null; + } else if (name.equals("relationship")) { + value = new ActionRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.relationship = (Enumeration) value; // Enumeration + } else if (name.equals("endRelationship")) { + value = new ActionRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.endRelationship = (Enumeration) value; // Enumeration + } else if (name.equals("offset[x]")) { + this.offset = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3803,6 +3925,26 @@ public class RequestOrchestration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("typeCanonical")) { + this.typeCanonical = null; + } else if (name.equals("typeReference")) { + this.typeReference = null; + } else if (name.equals("role")) { + this.role = null; + } else if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor[x]")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4063,6 +4205,17 @@ public class RequestOrchestration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("path")) { + this.path = null; + } else if (name.equals("expression")) { + this.expression = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5274,6 +5427,52 @@ public class RequestOrchestration extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.getInstantiatesCanonical().remove(value); + } else if (name.equals("instantiatesUri")) { + this.getInstantiatesUri().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("replaces")) { + this.getReplaces().remove(value); + } else if (name.equals("groupIdentifier")) { + this.groupIdentifier = null; + } else if (name.equals("status")) { + value = new RequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("intent")) { + value = new RequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("authoredOn")) { + this.authoredOn = null; + } else if (name.equals("author")) { + this.author = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("goal")) { + this.getGoal().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("action")) { + this.getAction().add((RequestOrchestrationActionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Requirements.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Requirements.java index 935d8e762..7bc2e9a69 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Requirements.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Requirements.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -907,6 +907,34 @@ public class Requirements extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("key")) { + this.key = null; + } else if (name.equals("label")) { + this.label = null; + } else if (name.equals("conformance")) { + value = new ConformanceExpectationEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getConformance().add((Enumeration) value); + } else if (name.equals("conditionality")) { + this.conditionality = null; + } else if (name.equals("requirement")) { + this.requirement = null; + } else if (name.equals("derivedFrom")) { + this.derivedFrom = null; + } else if (name.equals("parent")) { + this.parent = null; + } else if (name.equals("satisfiedBy")) { + this.getSatisfiedBy().remove(value); + } else if (name.equals("reference")) { + this.getReference().remove(value); + } else if (name.equals("source")) { + this.getSource().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2508,6 +2536,56 @@ public class Requirements extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("derivedFrom")) { + this.getDerivedFrom().remove(value); + } else if (name.equals("reference")) { + this.getReference().remove(value); + } else if (name.equals("actor")) { + this.getActor().remove(value); + } else if (name.equals("statement")) { + this.getStatement().add((RequirementsStatementComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchStudy.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchStudy.java index 6516a53ac..b002a616a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchStudy.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchStudy.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -203,6 +203,17 @@ public class ResearchStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -613,6 +624,23 @@ public class ResearchStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("role")) { + this.role = null; + } else if (name.equals("period")) { + this.getPeriod().remove(value); + } else if (name.equals("classifier")) { + this.getClassifier().remove(value); + } else if (name.equals("party")) { + this.party = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -911,6 +939,19 @@ public class ResearchStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("state")) { + this.state = null; + } else if (name.equals("actual")) { + this.actual = null; + } else if (name.equals("period")) { + this.period = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1239,6 +1280,21 @@ public class ResearchStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("targetNumber")) { + this.targetNumber = null; + } else if (name.equals("actualNumber")) { + this.actualNumber = null; + } else if (name.equals("eligibility")) { + this.eligibility = null; + } else if (name.equals("actualGroup")) { + this.actualGroup = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1721,6 +1777,25 @@ public class ResearchStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("linkId")) { + this.linkId = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("intendedExposure")) { + this.getIntendedExposure().remove(value); + } else if (name.equals("observedGroup")) { + this.observedGroup = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2044,6 +2119,19 @@ public class ResearchStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("description")) { + this.description = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2410,6 +2498,21 @@ public class ResearchStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("reference")) { + this.reference = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4562,6 +4665,78 @@ public class ResearchStudy extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("label")) { + this.getLabel().add((ResearchStudyLabelComponent) value); + } else if (name.equals("protocol")) { + this.getProtocol().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("primaryPurposeType")) { + this.primaryPurposeType = null; + } else if (name.equals("phase")) { + this.phase = null; + } else if (name.equals("studyDesign")) { + this.getStudyDesign().remove(value); + } else if (name.equals("focus")) { + this.getFocus().remove(value); + } else if (name.equals("condition")) { + this.getCondition().remove(value); + } else if (name.equals("keyword")) { + this.getKeyword().remove(value); + } else if (name.equals("region")) { + this.getRegion().remove(value); + } else if (name.equals("descriptionSummary")) { + this.descriptionSummary = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("site")) { + this.getSite().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("classifier")) { + this.getClassifier().remove(value); + } else if (name.equals("associatedParty")) { + this.getAssociatedParty().add((ResearchStudyAssociatedPartyComponent) value); + } else if (name.equals("progressStatus")) { + this.getProgressStatus().add((ResearchStudyProgressStatusComponent) value); + } else if (name.equals("whyStopped")) { + this.whyStopped = null; + } else if (name.equals("recruitment")) { + this.recruitment = (ResearchStudyRecruitmentComponent) value; // ResearchStudyRecruitmentComponent + } else if (name.equals("comparisonGroup")) { + this.getComparisonGroup().add((ResearchStudyComparisonGroupComponent) value); + } else if (name.equals("objective")) { + this.getObjective().add((ResearchStudyObjectiveComponent) value); + } else if (name.equals("outcomeMeasure")) { + this.getOutcomeMeasure().add((ResearchStudyOutcomeMeasureComponent) value); + } else if (name.equals("result")) { + this.getResult().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchSubject.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchSubject.java index f1a941960..1f2172df1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchSubject.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchSubject.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -387,6 +387,25 @@ public class ResearchSubject extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("subjectState")) { + this.subjectState = null; + } else if (name.equals("milestone")) { + this.milestone = null; + } else if (name.equals("reason")) { + this.reason = null; + } else if (name.equals("startDate")) { + this.startDate = null; + } else if (name.equals("endDate")) { + this.endDate = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1059,6 +1078,32 @@ public class ResearchSubject extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("progress")) { + this.getProgress().add((ResearchSubjectProgressComponent) value); + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("study")) { + this.study = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("assignedComparisonGroup")) { + this.assignedComparisonGroup = null; + } else if (name.equals("actualComparisonGroup")) { + this.actualComparisonGroup = null; + } else if (name.equals("consent")) { + this.getConsent().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Resource.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Resource.java index c1aeb90ca..794923dfd 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Resource.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Resource.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -329,6 +329,21 @@ public abstract class Resource extends BaseResource implements IAnyResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("id")) { + this.id = null; + } else if (name.equals("meta")) { + this.meta = null; + } else if (name.equals("implicitRules")) { + this.implicitRules = null; + } else if (name.equals("language")) { + this.language = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RiskAssessment.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RiskAssessment.java index 04a753e46..8d0986433 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RiskAssessment.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RiskAssessment.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -463,6 +463,25 @@ public class RiskAssessment extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("outcome")) { + this.outcome = null; + } else if (name.equals("probability[x]")) { + this.probability = null; + } else if (name.equals("qualitativeRisk")) { + this.qualitativeRisk = null; + } else if (name.equals("relativeRisk")) { + this.relativeRisk = null; + } else if (name.equals("when[x]")) { + this.when = null; + } else if (name.equals("rationale")) { + this.rationale = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1481,6 +1500,46 @@ public class RiskAssessment extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.basedOn = null; + } else if (name.equals("parent")) { + this.parent = null; + } else if (name.equals("status")) { + value = new ObservationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("method")) { + this.method = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("condition")) { + this.condition = null; + } else if (name.equals("performer")) { + this.performer = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("basis")) { + this.getBasis().remove(value); + } else if (name.equals("prediction")) { + this.getPrediction().add((RiskAssessmentPredictionComponent) value); + } else if (name.equals("mitigation")) { + this.mitigation = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SampledData.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SampledData.java index 11518d54d..ac8f06fe2 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SampledData.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SampledData.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -786,6 +786,33 @@ public class SampledData extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("origin")) { + this.origin = null; + } else if (name.equals("interval")) { + this.interval = null; + } else if (name.equals("intervalUnit")) { + this.intervalUnit = null; + } else if (name.equals("factor")) { + this.factor = null; + } else if (name.equals("lowerLimit")) { + this.lowerLimit = null; + } else if (name.equals("upperLimit")) { + this.upperLimit = null; + } else if (name.equals("dimensions")) { + this.dimensions = null; + } else if (name.equals("codeMap")) { + this.codeMap = null; + } else if (name.equals("offsets")) { + this.offsets = null; + } else if (name.equals("data")) { + this.data = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Schedule.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Schedule.java index 2be6c155a..e8bd054dc 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Schedule.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Schedule.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -675,6 +675,31 @@ public class Schedule extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("active")) { + this.active = null; + } else if (name.equals("serviceCategory")) { + this.getServiceCategory().remove(value); + } else if (name.equals("serviceType")) { + this.getServiceType().remove(value); + } else if (name.equals("specialty")) { + this.getSpecialty().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("actor")) { + this.getActor().remove(value); + } else if (name.equals("planningHorizon")) { + this.planningHorizon = null; + } else if (name.equals("comment")) { + this.comment = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java index b1d8bdefe..2ceaf71fd 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -340,6 +340,17 @@ public class SearchParameter extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("definition")) { + this.definition = null; + } else if (name.equals("expression")) { + this.expression = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2531,6 +2542,82 @@ public class SearchParameter extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("derivedFrom")) { + this.derivedFrom = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("base")) { + value = new VersionIndependentResourceTypesAllEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getBase().add((Enumeration) value); + } else if (name.equals("type")) { + value = new SearchParamTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("expression")) { + this.expression = null; + } else if (name.equals("processingMode")) { + value = new SearchProcessingModeTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.processingMode = (Enumeration) value; // Enumeration + } else if (name.equals("constraint")) { + this.constraint = null; + } else if (name.equals("target")) { + value = new VersionIndependentResourceTypesAllEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getTarget().add((Enumeration) value); + } else if (name.equals("multipleOr")) { + this.multipleOr = null; + } else if (name.equals("multipleAnd")) { + this.multipleAnd = null; + } else if (name.equals("comparator")) { + value = new SearchComparatorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getComparator().add((Enumeration) value); + } else if (name.equals("modifier")) { + value = new SearchModifierCodeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getModifier().add((Enumeration) value); + } else if (name.equals("chain")) { + this.getChain().remove(value); + } else if (name.equals("component")) { + this.getComponent().add((SearchParameterComponentComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ServiceRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ServiceRequest.java index ddfbd4875..d12641b00 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ServiceRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ServiceRequest.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -214,6 +214,17 @@ public class ServiceRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("parameterFocus")) { + this.parameterFocus = null; + } else if (name.equals("parameter")) { + this.getParameter().add((ServiceRequestOrderDetailParameterComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -540,6 +551,17 @@ public class ServiceRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -757,6 +779,15 @@ public class ServiceRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("instruction[x]")) { + this.instruction = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2962,6 +2993,82 @@ public class ServiceRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.getInstantiatesCanonical().remove(value); + } else if (name.equals("instantiatesUri")) { + this.getInstantiatesUri().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("replaces")) { + this.getReplaces().remove(value); + } else if (name.equals("requisition")) { + this.requisition = null; + } else if (name.equals("status")) { + value = new RequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("intent")) { + value = new RequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("doNotPerform")) { + this.doNotPerform = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("orderDetail")) { + this.getOrderDetail().add((ServiceRequestOrderDetailComponent) value); + } else if (name.equals("quantity[x]")) { + this.quantity = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("focus")) { + this.getFocus().remove(value); + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("asNeeded[x]")) { + this.asNeeded = null; + } else if (name.equals("authoredOn")) { + this.authoredOn = null; + } else if (name.equals("requester")) { + this.requester = null; + } else if (name.equals("performerType")) { + this.performerType = null; + } else if (name.equals("performer")) { + this.getPerformer().remove(value); + } else if (name.equals("location")) { + this.getLocation().remove(value); + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("insurance")) { + this.getInsurance().remove(value); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().remove(value); + } else if (name.equals("specimen")) { + this.getSpecimen().remove(value); + } else if (name.equals("bodySite")) { + this.getBodySite().remove(value); + } else if (name.equals("bodyStructure")) { + this.bodyStructure = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("patientInstruction")) { + this.getPatientInstruction().add((ServiceRequestPatientInstructionComponent) value); + } else if (name.equals("relevantHistory")) { + this.getRelevantHistory().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Signature.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Signature.java index bbedc7347..bd9568516 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Signature.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Signature.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -500,6 +500,27 @@ public class Signature extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("when")) { + this.when = null; + } else if (name.equals("who")) { + this.who = null; + } else if (name.equals("onBehalfOf")) { + this.onBehalfOf = null; + } else if (name.equals("targetFormat")) { + this.targetFormat = null; + } else if (name.equals("sigFormat")) { + this.sigFormat = null; + } else if (name.equals("data")) { + this.data = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Slot.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Slot.java index ab6738a14..9c80ce77e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Slot.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Slot.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -942,6 +942,36 @@ public class Slot extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("serviceCategory")) { + this.getServiceCategory().remove(value); + } else if (name.equals("serviceType")) { + this.getServiceType().remove(value); + } else if (name.equals("specialty")) { + this.getSpecialty().remove(value); + } else if (name.equals("appointmentType")) { + this.getAppointmentType().remove(value); + } else if (name.equals("schedule")) { + this.schedule = null; + } else if (name.equals("status")) { + value = new SlotStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("start")) { + this.start = null; + } else if (name.equals("end")) { + this.end = null; + } else if (name.equals("overbooked")) { + this.overbooked = null; + } else if (name.equals("comment")) { + this.comment = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Specimen.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Specimen.java index fecbd9210..4d72e9715 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Specimen.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Specimen.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -432,6 +432,17 @@ public class Specimen extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("description")) { + this.description = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -968,6 +979,31 @@ public class Specimen extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("collector")) { + this.collector = null; + } else if (name.equals("collected[x]")) { + this.collected = null; + } else if (name.equals("duration")) { + this.duration = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("method")) { + this.method = null; + } else if (name.equals("device")) { + this.device = null; + } else if (name.equals("procedure")) { + this.procedure = null; + } else if (name.equals("bodySite")) { + this.bodySite = null; + } else if (name.equals("fastingStatus[x]")) { + this.fastingStatus = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1395,6 +1431,21 @@ public class Specimen extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("method")) { + this.method = null; + } else if (name.equals("additive")) { + this.getAdditive().remove(value); + } else if (name.equals("time[x]")) { + this.time = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1666,6 +1717,19 @@ public class Specimen extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("device")) { + this.device = null; + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("specimenQuantity")) { + this.specimenQuantity = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2765,6 +2829,47 @@ public class Specimen extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("accessionIdentifier")) { + this.accessionIdentifier = null; + } else if (name.equals("status")) { + value = new SpecimenStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("subject")) { + this.subject = null; + } else if (name.equals("receivedTime")) { + this.receivedTime = null; + } else if (name.equals("parent")) { + this.getParent().remove(value); + } else if (name.equals("request")) { + this.getRequest().remove(value); + } else if (name.equals("combined")) { + value = new SpecimenCombinedEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.combined = (Enumeration) value; // Enumeration + } else if (name.equals("role")) { + this.getRole().remove(value); + } else if (name.equals("feature")) { + this.getFeature().add((SpecimenFeatureComponent) value); + } else if (name.equals("collection")) { + this.collection = (SpecimenCollectionComponent) value; // SpecimenCollectionComponent + } else if (name.equals("processing")) { + this.getProcessing().add((SpecimenProcessingComponent) value); + } else if (name.equals("container")) { + this.getContainer().add((SpecimenContainerComponent) value); + } else if (name.equals("condition")) { + this.getCondition().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SpecimenDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SpecimenDefinition.java index c5bd9e3ec..971dcf677 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SpecimenDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SpecimenDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -774,6 +774,34 @@ public class SpecimenDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("isDerived")) { + this.isDerived = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("preference")) { + value = new SpecimenContainedPreferenceEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.preference = (Enumeration) value; // Enumeration + } else if (name.equals("container")) { + this.container = (SpecimenDefinitionTypeTestedContainerComponent) value; // SpecimenDefinitionTypeTestedContainerComponent + } else if (name.equals("requirement")) { + this.requirement = null; + } else if (name.equals("retentionTime")) { + this.retentionTime = null; + } else if (name.equals("singleUse")) { + this.singleUse = null; + } else if (name.equals("rejectionCriterion")) { + this.getRejectionCriterion().remove(value); + } else if (name.equals("handling")) { + this.getHandling().add((SpecimenDefinitionTypeTestedHandlingComponent) value); + } else if (name.equals("testingDestination")) { + this.getTestingDestination().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1389,6 +1417,29 @@ public class SpecimenDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("material")) { + this.material = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("cap")) { + this.cap = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("capacity")) { + this.capacity = null; + } else if (name.equals("minimumVolume[x]")) { + this.minimumVolume = null; + } else if (name.equals("additive")) { + this.getAdditive().add((SpecimenDefinitionTypeTestedContainerAdditiveComponent) value); + } else if (name.equals("preparation")) { + this.preparation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1642,6 +1693,15 @@ public class SpecimenDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("additive[x]")) { + this.additive = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1945,6 +2005,21 @@ public class SpecimenDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("temperatureQualifier")) { + this.temperatureQualifier = null; + } else if (name.equals("temperatureRange")) { + this.temperatureRange = null; + } else if (name.equals("maxDuration")) { + this.maxDuration = null; + } else if (name.equals("instruction")) { + this.instruction = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3865,6 +3940,70 @@ public class SpecimenDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("derivedFromCanonical")) { + this.getDerivedFromCanonical().remove(value); + } else if (name.equals("derivedFromUri")) { + this.getDerivedFromUri().remove(value); + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("subject[x]")) { + this.subject = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("typeCollected")) { + this.typeCollected = null; + } else if (name.equals("patientPreparation")) { + this.getPatientPreparation().remove(value); + } else if (name.equals("timeAspect")) { + this.timeAspect = null; + } else if (name.equals("collection")) { + this.getCollection().remove(value); + } else if (name.equals("typeTested")) { + this.getTypeTested().add((SpecimenDefinitionTypeTestedComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Statistic.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Statistic.java index cf1436aa6..4ddd3621d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Statistic.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Statistic.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -410,6 +410,23 @@ public class Statistic extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("numberOfStudies")) { + this.numberOfStudies = null; + } else if (name.equals("numberOfParticipants")) { + this.numberOfParticipants = null; + } else if (name.equals("knownDataCount")) { + this.knownDataCount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -958,6 +975,27 @@ public class Statistic extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("level")) { + this.level = null; + } else if (name.equals("range")) { + this.range = null; + } else if (name.equals("attributeEstimate")) { + this.getAttributeEstimate().add((StatisticAttributeEstimateAttributeEstimateComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1455,6 +1493,25 @@ public class Statistic extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("level")) { + this.level = null; + } else if (name.equals("range")) { + this.range = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1765,6 +1822,19 @@ public class Statistic extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value")) { + this.value = null; + } else if (name.equals("variable")) { + this.getVariable().add((StatisticModelCharacteristicVariableComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2217,6 +2287,24 @@ public class Statistic extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("variableDefinition")) { + this.variableDefinition = null; + } else if (name.equals("handling")) { + value = new EvidenceVariableHandlingEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.handling = (Enumeration) value; // Enumeration + } else if (name.equals("valueCategory")) { + this.getValueCategory().remove(value); + } else if (name.equals("valueQuantity")) { + this.getValueQuantity().remove(value); + } else if (name.equals("valueRange")) { + this.getValueRange().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2915,6 +3003,33 @@ public class Statistic extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("statisticType")) { + this.statisticType = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("numberOfEvents")) { + this.numberOfEvents = null; + } else if (name.equals("numberAffected")) { + this.numberAffected = null; + } else if (name.equals("sampleSize")) { + this.sampleSize = (StatisticSampleSizeComponent) value; // StatisticSampleSizeComponent + } else if (name.equals("attributeEstimate")) { + this.getAttributeEstimate().add((StatisticAttributeEstimateComponent) value); + } else if (name.equals("modelCharacteristic")) { + this.getModelCharacteristic().add((StatisticModelCharacteristicComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureDefinition.java index a35011a46..32283b022 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -695,6 +695,21 @@ public class StructureDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identity")) { + this.identity = null; + } else if (name.equals("uri")) { + this.uri = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("comment")) { + this.comment = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -963,6 +978,18 @@ public class StructureDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new ExtensionContextTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("expression")) { + this.expression = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1160,6 +1187,15 @@ public class StructureDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("element")) { + this.getElement().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1383,6 +1419,15 @@ public class StructureDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("element")) { + this.getElement().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3352,6 +3397,75 @@ public class StructureDefinition extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("keyword")) { + this.getKeyword().remove(value); + } else if (name.equals("fhirVersion")) { + value = new FHIRVersionEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.fhirVersion = (Enumeration) value; // Enumeration + } else if (name.equals("mapping")) { + this.getMapping().add((StructureDefinitionMappingComponent) value); + } else if (name.equals("kind")) { + value = new StructureDefinitionKindEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.kind = (Enumeration) value; // Enumeration + } else if (name.equals("abstract")) { + this.abstract_ = null; + } else if (name.equals("context")) { + this.getContext().add((StructureDefinitionContextComponent) value); + } else if (name.equals("contextInvariant")) { + this.getContextInvariant().remove(value); + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("baseDefinition")) { + this.baseDefinition = null; + } else if (name.equals("derivation")) { + value = new TypeDerivationRuleEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.derivation = (Enumeration) value; // Enumeration + } else if (name.equals("snapshot")) { + this.snapshot = (StructureDefinitionSnapshotComponent) value; // StructureDefinitionSnapshotComponent + } else if (name.equals("differential")) { + this.differential = (StructureDefinitionDifferentialComponent) value; // StructureDefinitionDifferentialComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureMap.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureMap.java index 4f1c2ceb1..a41af9d78 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureMap.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureMap.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1288,6 +1288,22 @@ public class StructureMap extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("mode")) { + value = new StructureMapModelModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.mode = (Enumeration) value; // Enumeration + } else if (name.equals("alias")) { + this.alias = null; + } else if (name.equals("documentation")) { + this.documentation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1552,6 +1568,17 @@ public class StructureMap extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2073,6 +2100,26 @@ public class StructureMap extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("extends")) { + this.extends_ = null; + } else if (name.equals("typeMode")) { + value = new StructureMapGroupTypeModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.typeMode = (Enumeration) value; // Enumeration + } else if (name.equals("documentation")) { + this.documentation = null; + } else if (name.equals("input")) { + this.getInput().add((StructureMapGroupInputComponent) value); + } else if (name.equals("rule")) { + this.getRule().add((StructureMapGroupRuleComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2495,6 +2542,22 @@ public String toString() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("mode")) { + value = new StructureMapInputModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.mode = (Enumeration) value; // Enumeration + } else if (name.equals("documentation")) { + this.documentation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3039,6 +3102,25 @@ public String toString() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("source")) { + this.getSource().add((StructureMapGroupRuleSourceComponent) value); + } else if (name.equals("target")) { + this.getTarget().add((StructureMapGroupRuleTargetComponent) value); + } else if (name.equals("rule")) { + this.getRule().add((StructureMapGroupRuleComponent) value); + } else if (name.equals("dependent")) { + this.getDependent().add((StructureMapGroupRuleDependentComponent) value); + } else if (name.equals("documentation")) { + this.documentation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3915,6 +3997,36 @@ public String toString() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("context")) { + this.context = null; + } else if (name.equals("min")) { + this.min = null; + } else if (name.equals("max")) { + this.max = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("defaultValue")) { + this.defaultValue = null; + } else if (name.equals("element")) { + this.element = null; + } else if (name.equals("listMode")) { + value = new StructureMapSourceListModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.listMode = (Enumeration) value; // Enumeration + } else if (name.equals("variable")) { + this.variable = null; + } else if (name.equals("condition")) { + this.condition = null; + } else if (name.equals("check")) { + this.check = null; + } else if (name.equals("logMessage")) { + this.logMessage = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4572,6 +4684,29 @@ public String toString() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("context")) { + this.context = null; + } else if (name.equals("element")) { + this.element = null; + } else if (name.equals("variable")) { + this.variable = null; + } else if (name.equals("listMode")) { + value = new StructureMapTargetListModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getListMode().add((Enumeration) value); + } else if (name.equals("listRuleId")) { + this.listRuleId = null; + } else if (name.equals("transform")) { + value = new StructureMapTransformEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.transform = (Enumeration) value; // Enumeration + } else if (name.equals("parameter")) { + this.getParameter().add((StructureMapGroupRuleTargetParameterComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4914,6 +5049,15 @@ public String toString() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5201,6 +5345,17 @@ public String toString() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("parameter")) { + this.getParameter().add((StructureMapGroupRuleTargetParameterComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6713,6 +6868,56 @@ public String toString() { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("structure")) { + this.getStructure().add((StructureMapStructureComponent) value); + } else if (name.equals("import")) { + this.getImport().remove(value); + } else if (name.equals("const")) { + this.getConst().add((StructureMapConstComponent) value); + } else if (name.equals("group")) { + this.getGroup().add((StructureMapGroupComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Subscription.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Subscription.java index c00f9f709..f35f765a1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Subscription.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Subscription.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -539,6 +539,25 @@ public class Subscription extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("resourceType")) { + this.resourceType = null; + } else if (name.equals("filterParameter")) { + this.filterParameter = null; + } else if (name.equals("comparator")) { + value = new SearchComparatorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.comparator = (Enumeration) value; // Enumeration + } else if (name.equals("modifier")) { + value = new SearchModifierCodeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.modifier = (Enumeration) value; // Enumeration + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -812,6 +831,17 @@ public class Subscription extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2003,6 +2033,49 @@ public class Subscription extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("status")) { + value = new SubscriptionStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("topic")) { + this.topic = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("end")) { + this.end = null; + } else if (name.equals("managingEntity")) { + this.managingEntity = null; + } else if (name.equals("reason")) { + this.reason = null; + } else if (name.equals("filterBy")) { + this.getFilterBy().add((SubscriptionFilterByComponent) value); + } else if (name.equals("channelType")) { + this.channelType = null; + } else if (name.equals("endpoint")) { + this.endpoint = null; + } else if (name.equals("parameter")) { + this.getParameter().add((SubscriptionParameterComponent) value); + } else if (name.equals("heartbeatPeriod")) { + this.heartbeatPeriod = null; + } else if (name.equals("timeout")) { + this.timeout = null; + } else if (name.equals("contentType")) { + this.contentType = null; + } else if (name.equals("content")) { + value = new SubscriptionPayloadContentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.content = (Enumeration) value; // Enumeration + } else if (name.equals("maxCount")) { + this.maxCount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionStatus.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionStatus.java index 81fea6a7a..f5421a6c0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionStatus.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionStatus.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -481,6 +481,21 @@ public class SubscriptionStatus extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("eventNumber")) { + this.eventNumber = null; + } else if (name.equals("timestamp")) { + this.timestamp = null; + } else if (name.equals("focus")) { + this.focus = null; + } else if (name.equals("additionalContext")) { + this.getAdditionalContext().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1059,6 +1074,29 @@ public class SubscriptionStatus extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("status")) { + value = new SubscriptionStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { + value = new SubscriptionNotificationTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("eventsSinceSubscriptionStart")) { + this.eventsSinceSubscriptionStart = null; + } else if (name.equals("notificationEvent")) { + this.getNotificationEvent().add((SubscriptionStatusNotificationEventComponent) value); + } else if (name.equals("subscription")) { + this.subscription = null; + } else if (name.equals("topic")) { + this.topic = null; + } else if (name.equals("error")) { + this.getError().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionTopic.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionTopic.java index 100c5824a..b14824061 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionTopic.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionTopic.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -622,6 +622,24 @@ public class SubscriptionTopic extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("resource")) { + this.resource = null; + } else if (name.equals("supportedInteraction")) { + value = new InteractionTriggerEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getSupportedInteraction().add((Enumeration) value); + } else if (name.equals("queryCriteria")) { + this.queryCriteria = (SubscriptionTopicResourceTriggerQueryCriteriaComponent) value; // SubscriptionTopicResourceTriggerQueryCriteriaComponent + } else if (name.equals("fhirPathCriteria")) { + this.fhirPathCriteria = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1093,6 +1111,25 @@ public class SubscriptionTopic extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("previous")) { + this.previous = null; + } else if (name.equals("resultForCreate")) { + value = new CriteriaNotExistsBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.resultForCreate = (Enumeration) value; // Enumeration + } else if (name.equals("current")) { + this.current = null; + } else if (name.equals("resultForDelete")) { + value = new CriteriaNotExistsBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.resultForDelete = (Enumeration) value; // Enumeration + } else if (name.equals("requireBoth")) { + this.requireBoth = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1411,6 +1448,19 @@ public class SubscriptionTopic extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("event")) { + this.event = null; + } else if (name.equals("resource")) { + this.resource = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1961,6 +2011,27 @@ public class SubscriptionTopic extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("resource")) { + this.resource = null; + } else if (name.equals("filterParameter")) { + this.filterParameter = null; + } else if (name.equals("filterDefinition")) { + this.filterDefinition = null; + } else if (name.equals("comparator")) { + value = new SearchComparatorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getComparator().add((Enumeration) value); + } else if (name.equals("modifier")) { + value = new SearchModifierCodeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getModifier().add((Enumeration) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2340,6 +2411,19 @@ public class SubscriptionTopic extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("resource")) { + this.resource = null; + } else if (name.equals("include")) { + this.getInclude().remove(value); + } else if (name.equals("revInclude")) { + this.getRevInclude().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4102,6 +4186,64 @@ public class SubscriptionTopic extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("derivedFrom")) { + this.getDerivedFrom().remove(value); + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("resourceTrigger")) { + this.getResourceTrigger().add((SubscriptionTopicResourceTriggerComponent) value); + } else if (name.equals("eventTrigger")) { + this.getEventTrigger().add((SubscriptionTopicEventTriggerComponent) value); + } else if (name.equals("canFilterBy")) { + this.getCanFilterBy().add((SubscriptionTopicCanFilterByComponent) value); + } else if (name.equals("notificationShape")) { + this.getNotificationShape().add((SubscriptionTopicNotificationShapeComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Substance.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Substance.java index 9d214c005..99755c6d8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Substance.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Substance.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -328,6 +328,17 @@ public class Substance extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("substance[x]")) { + this.substance = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1002,6 +1013,32 @@ public class Substance extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instance")) { + this.instance = null; + } else if (name.equals("status")) { + value = new FHIRSubstanceStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("expiry")) { + this.expiry = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("ingredient")) { + this.getIngredient().add((SubstanceIngredientComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceAmount.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceAmount.java index 746602698..4a4ae3e91 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceAmount.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceAmount.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; @@ -177,6 +177,17 @@ public class SubstanceAmount extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("lowLimit")) { + this.lowLimit = null; + } else if (name.equals("highLimit")) { + this.highLimit = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -525,6 +536,21 @@ public class SubstanceAmount extends BackboneType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("amount[x]")) { + this.amount = null; + } else if (name.equals("amountType")) { + this.amountType = null; + } else if (name.equals("amountText")) { + this.amountText = null; + } else if (name.equals("referenceRange")) { + this.referenceRange = (SubstanceAmountReferenceRangeComponent) value; // SubstanceAmountReferenceRangeComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceDefinition.java index f53b1e5eb..9c57c0f27 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -494,6 +494,29 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("role")) { + this.role = null; + } else if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("stereochemistry")) { + this.stereochemistry = null; + } else if (name.equals("opticalActivity")) { + this.opticalActivity = null; + } else if (name.equals("molecularFormula")) { + this.molecularFormula = null; + } else if (name.equals("amount[x]")) { + this.amount = null; + } else if (name.equals("measurementType")) { + this.measurementType = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -879,6 +902,21 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("technique")) { + this.technique = null; + } else if (name.equals("form")) { + this.form = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("file")) { + this.getFile().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1185,6 +1223,17 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1452,6 +1501,19 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("method")) { + this.method = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("amount")) { + this.amount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2035,6 +2097,29 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("stereochemistry")) { + this.stereochemistry = null; + } else if (name.equals("opticalActivity")) { + this.opticalActivity = null; + } else if (name.equals("molecularFormula")) { + this.molecularFormula = null; + } else if (name.equals("molecularFormulaByMoiety")) { + this.molecularFormulaByMoiety = null; + } else if (name.equals("molecularWeight")) { + this.molecularWeight = (SubstanceDefinitionMolecularWeightComponent) value; // SubstanceDefinitionMolecularWeightComponent + } else if (name.equals("technique")) { + this.getTechnique().remove(value); + } else if (name.equals("sourceDocument")) { + this.getSourceDocument().remove(value); + } else if (name.equals("representation")) { + this.getRepresentation().add((SubstanceDefinitionStructureRepresentationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2397,6 +2482,21 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("representation")) { + this.representation = null; + } else if (name.equals("format")) { + this.format = null; + } else if (name.equals("document")) { + this.document = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2814,6 +2914,23 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("statusDate")) { + this.statusDate = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("source")) { + this.getSource().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3652,6 +3769,35 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("preferred")) { + this.preferred = null; + } else if (name.equals("language")) { + this.getLanguage().remove(value); + } else if (name.equals("domain")) { + this.getDomain().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("synonym")) { + this.getSynonym().add((SubstanceDefinitionNameComponent) value); + } else if (name.equals("translation")) { + this.getTranslation().add((SubstanceDefinitionNameComponent) value); + } else if (name.equals("official")) { + this.getOfficial().add((SubstanceDefinitionNameOfficialComponent) value); + } else if (name.equals("source")) { + this.getSource().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4005,6 +4151,19 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("authority")) { + this.authority = null; + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("date")) { + this.date = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4545,6 +4704,27 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("substanceDefinition[x]")) { + this.substanceDefinition = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("isDefining")) { + this.isDefining = null; + } else if (name.equals("amount[x]")) { + this.amount = null; + } else if (name.equals("ratioHighLimitAmount")) { + this.ratioHighLimitAmount = null; + } else if (name.equals("comparator")) { + this.comparator = null; + } else if (name.equals("source")) { + this.getSource().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4951,6 +5131,23 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("genus")) { + this.genus = null; + } else if (name.equals("species")) { + this.species = null; + } else if (name.equals("part")) { + this.part = null; + } else if (name.equals("countryOfOrigin")) { + this.getCountryOfOrigin().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6493,6 +6690,61 @@ public class SubstanceDefinition extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("status")) { + this.status = null; + } else if (name.equals("classification")) { + this.getClassification().remove(value); + } else if (name.equals("domain")) { + this.domain = null; + } else if (name.equals("grade")) { + this.getGrade().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("informationSource")) { + this.getInformationSource().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("manufacturer")) { + this.getManufacturer().remove(value); + } else if (name.equals("supplier")) { + this.getSupplier().remove(value); + } else if (name.equals("moiety")) { + this.getMoiety().add((SubstanceDefinitionMoietyComponent) value); + } else if (name.equals("characterization")) { + this.getCharacterization().add((SubstanceDefinitionCharacterizationComponent) value); + } else if (name.equals("property")) { + this.getProperty().add((SubstanceDefinitionPropertyComponent) value); + } else if (name.equals("referenceInformation")) { + this.referenceInformation = null; + } else if (name.equals("molecularWeight")) { + this.getMolecularWeight().add((SubstanceDefinitionMolecularWeightComponent) value); + } else if (name.equals("structure")) { + this.structure = (SubstanceDefinitionStructureComponent) value; // SubstanceDefinitionStructureComponent + } else if (name.equals("code")) { + this.getCode().add((SubstanceDefinitionCodeComponent) value); + } else if (name.equals("name")) { + this.getName().add((SubstanceDefinitionNameComponent) value); + } else if (name.equals("relationship")) { + this.getRelationship().add((SubstanceDefinitionRelationshipComponent) value); + } else if (name.equals("nucleicAcid")) { + this.nucleicAcid = null; + } else if (name.equals("polymer")) { + this.polymer = null; + } else if (name.equals("protein")) { + this.protein = null; + } else if (name.equals("sourceMaterial")) { + this.sourceMaterial = (SubstanceDefinitionSourceMaterialComponent) value; // SubstanceDefinitionSourceMaterialComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceNucleicAcid.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceNucleicAcid.java index 3f14c6854..4ad04c178 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceNucleicAcid.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceNucleicAcid.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -536,6 +536,29 @@ public class SubstanceNucleicAcid extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("subunit")) { + this.subunit = null; + } else if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("length")) { + this.length = null; + } else if (name.equals("sequenceAttachment")) { + this.sequenceAttachment = null; + } else if (name.equals("fivePrime")) { + this.fivePrime = null; + } else if (name.equals("threePrime")) { + this.threePrime = null; + } else if (name.equals("linkage")) { + this.getLinkage().add((SubstanceNucleicAcidSubunitLinkageComponent) value); + } else if (name.equals("sugar")) { + this.getSugar().add((SubstanceNucleicAcidSubunitSugarComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -940,6 +963,21 @@ public class SubstanceNucleicAcid extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("connectivity")) { + this.connectivity = null; + } else if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("residueSite")) { + this.residueSite = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1244,6 +1282,19 @@ public class SubstanceNucleicAcid extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("residueSite")) { + this.residueSite = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1642,6 +1693,23 @@ public class SubstanceNucleicAcid extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequenceType")) { + this.sequenceType = null; + } else if (name.equals("numberOfSubunits")) { + this.numberOfSubunits = null; + } else if (name.equals("areaOfHybridisation")) { + this.areaOfHybridisation = null; + } else if (name.equals("oligoNucleotideType")) { + this.oligoNucleotideType = null; + } else if (name.equals("subunit")) { + this.getSubunit().add((SubstanceNucleicAcidSubunitComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstancePolymer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstancePolymer.java index eee3a9aee..93a0b88c7 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstancePolymer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstancePolymer.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -206,6 +206,17 @@ public class SubstancePolymer extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("ratioType")) { + this.ratioType = null; + } else if (name.equals("startingMaterial")) { + this.getStartingMaterial().add((SubstancePolymerMonomerSetStartingMaterialComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -511,6 +522,21 @@ public class SubstancePolymer extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("isDefining")) { + this.isDefining = null; + } else if (name.equals("amount")) { + this.amount = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -820,6 +846,19 @@ public class SubstancePolymer extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("averageMolecularFormula")) { + this.averageMolecularFormula = null; + } else if (name.equals("repeatUnitAmountType")) { + this.repeatUnitAmountType = null; + } else if (name.equals("repeatUnit")) { + this.getRepeatUnit().add((SubstancePolymerRepeatRepeatUnitComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1253,6 +1292,23 @@ public class SubstancePolymer extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("unit")) { + this.unit = null; + } else if (name.equals("orientation")) { + this.orientation = null; + } else if (name.equals("amount")) { + this.amount = null; + } else if (name.equals("degreeOfPolymerisation")) { + this.getDegreeOfPolymerisation().add((SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisationComponent) value); + } else if (name.equals("structuralRepresentation")) { + this.getStructuralRepresentation().add((SubstancePolymerRepeatRepeatUnitStructuralRepresentationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1623,6 +1679,21 @@ public class SubstancePolymer extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("average")) { + this.average = null; + } else if (name.equals("low")) { + this.low = null; + } else if (name.equals("high")) { + this.high = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1941,6 +2012,21 @@ public class SubstancePolymer extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("representation")) { + this.representation = null; + } else if (name.equals("format")) { + this.format = null; + } else if (name.equals("attachment")) { + this.attachment = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2462,6 +2548,27 @@ public class SubstancePolymer extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("class")) { + this.class_ = null; + } else if (name.equals("geometry")) { + this.geometry = null; + } else if (name.equals("copolymerConnectivity")) { + this.getCopolymerConnectivity().remove(value); + } else if (name.equals("modification")) { + this.modification = null; + } else if (name.equals("monomerSet")) { + this.getMonomerSet().add((SubstancePolymerMonomerSetComponent) value); + } else if (name.equals("repeat")) { + this.getRepeat().add((SubstancePolymerRepeatComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceProtein.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceProtein.java index 4838c87c6..8bfeb3197 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceProtein.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceProtein.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -528,6 +528,29 @@ public class SubstanceProtein extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("subunit")) { + this.subunit = null; + } else if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("length")) { + this.length = null; + } else if (name.equals("sequenceAttachment")) { + this.sequenceAttachment = null; + } else if (name.equals("nTerminalModificationId")) { + this.nTerminalModificationId = null; + } else if (name.equals("nTerminalModification")) { + this.nTerminalModification = null; + } else if (name.equals("cTerminalModificationId")) { + this.cTerminalModificationId = null; + } else if (name.equals("cTerminalModification")) { + this.cTerminalModification = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -936,6 +959,21 @@ public class SubstanceProtein extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequenceType")) { + this.sequenceType = null; + } else if (name.equals("numberOfSubunits")) { + this.numberOfSubunits = null; + } else if (name.equals("disulfideLinkage")) { + this.getDisulfideLinkage().remove(value); + } else if (name.equals("subunit")) { + this.getSubunit().add((SubstanceProteinSubunitComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceReferenceInformation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceReferenceInformation.java index 7fc81998f..4e0810ed1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceReferenceInformation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceReferenceInformation.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -245,6 +245,19 @@ public class SubstanceReferenceInformation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("geneSequenceOrigin")) { + this.geneSequenceOrigin = null; + } else if (name.equals("gene")) { + this.gene = null; + } else if (name.equals("source")) { + this.getSource().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -526,6 +539,19 @@ public class SubstanceReferenceInformation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("element")) { + this.element = null; + } else if (name.equals("source")) { + this.getSource().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1047,6 +1073,29 @@ public class SubstanceReferenceInformation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("target")) { + this.target = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("interaction")) { + this.interaction = null; + } else if (name.equals("organism")) { + this.organism = null; + } else if (name.equals("organismType")) { + this.organismType = null; + } else if (name.equals("amount[x]")) { + this.amount = null; + } else if (name.equals("amountType")) { + this.amountType = null; + } else if (name.equals("source")) { + this.getSource().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1493,6 +1542,21 @@ public class SubstanceReferenceInformation extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("comment")) { + this.comment = null; + } else if (name.equals("gene")) { + this.getGene().add((SubstanceReferenceInformationGeneComponent) value); + } else if (name.equals("geneElement")) { + this.getGeneElement().add((SubstanceReferenceInformationGeneElementComponent) value); + } else if (name.equals("target")) { + this.getTarget().add((SubstanceReferenceInformationTargetComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceSourceMaterial.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceSourceMaterial.java index 06c73a4e0..bb9f788a9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceSourceMaterial.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceSourceMaterial.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -202,6 +202,17 @@ public class SubstanceSourceMaterial extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("fraction")) { + this.fraction = null; + } else if (name.equals("materialType")) { + this.materialType = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -691,6 +702,29 @@ public class SubstanceSourceMaterial extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("family")) { + this.family = null; + } else if (name.equals("genus")) { + this.genus = null; + } else if (name.equals("species")) { + this.species = null; + } else if (name.equals("intraspecificType")) { + this.intraspecificType = null; + } else if (name.equals("intraspecificDescription")) { + this.intraspecificDescription = null; + } else if (name.equals("author")) { + this.getAuthor().add((SubstanceSourceMaterialOrganismAuthorComponent) value); + } else if (name.equals("hybrid")) { + this.hybrid = (SubstanceSourceMaterialOrganismHybridComponent) value; // SubstanceSourceMaterialOrganismHybridComponent + } else if (name.equals("organismGeneral")) { + this.organismGeneral = (SubstanceSourceMaterialOrganismOrganismGeneralComponent) value; // SubstanceSourceMaterialOrganismOrganismGeneralComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -965,6 +999,17 @@ public class SubstanceSourceMaterial extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("authorType")) { + this.authorType = null; + } else if (name.equals("authorDescription")) { + this.authorDescription = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1384,6 +1429,23 @@ public class SubstanceSourceMaterial extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("maternalOrganismId")) { + this.maternalOrganismId = null; + } else if (name.equals("maternalOrganismName")) { + this.maternalOrganismName = null; + } else if (name.equals("paternalOrganismId")) { + this.paternalOrganismId = null; + } else if (name.equals("paternalOrganismName")) { + this.paternalOrganismName = null; + } else if (name.equals("hybridType")) { + this.hybridType = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1685,6 +1747,21 @@ public class SubstanceSourceMaterial extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("kingdom")) { + this.kingdom = null; + } else if (name.equals("phylum")) { + this.phylum = null; + } else if (name.equals("class")) { + this.class_ = null; + } else if (name.equals("order")) { + this.order = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1902,6 +1979,17 @@ public class SubstanceSourceMaterial extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("part")) { + this.part = null; + } else if (name.equals("partLocation")) { + this.partLocation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2745,6 +2833,39 @@ public class SubstanceSourceMaterial extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sourceMaterialClass")) { + this.sourceMaterialClass = null; + } else if (name.equals("sourceMaterialType")) { + this.sourceMaterialType = null; + } else if (name.equals("sourceMaterialState")) { + this.sourceMaterialState = null; + } else if (name.equals("organismId")) { + this.organismId = null; + } else if (name.equals("organismName")) { + this.organismName = null; + } else if (name.equals("parentSubstanceId")) { + this.getParentSubstanceId().remove(value); + } else if (name.equals("parentSubstanceName")) { + this.getParentSubstanceName().remove(value); + } else if (name.equals("countryOfOrigin")) { + this.getCountryOfOrigin().remove(value); + } else if (name.equals("geographicalLocation")) { + this.getGeographicalLocation().remove(value); + } else if (name.equals("developmentStage")) { + this.developmentStage = null; + } else if (name.equals("fractionDescription")) { + this.getFractionDescription().add((SubstanceSourceMaterialFractionDescriptionComponent) value); + } else if (name.equals("organism")) { + this.organism = (SubstanceSourceMaterialOrganismComponent) value; // SubstanceSourceMaterialOrganismComponent + } else if (name.equals("partDescription")) { + this.getPartDescription().add((SubstanceSourceMaterialPartDescriptionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyDelivery.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyDelivery.java index 0865e94b0..a52d2b326 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyDelivery.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyDelivery.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -336,6 +336,17 @@ public class SupplyDelivery extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("item[x]")) { + this.item = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1111,6 +1122,36 @@ public class SupplyDelivery extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new SupplyDeliveryStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("type")) { + this.type = null; + } else if (name.equals("suppliedItem")) { + this.getSuppliedItem().add((SupplyDeliverySuppliedItemComponent) value); + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("supplier")) { + this.supplier = null; + } else if (name.equals("destination")) { + this.destination = null; + } else if (name.equals("receiver")) { + this.getReceiver().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyRequest.java index bf84fb1d8..41676bac7 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyRequest.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -415,6 +415,17 @@ public class SupplyRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1457,6 +1468,47 @@ public class SupplyRequest extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new SupplyRequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("category")) { + this.category = null; + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("deliverFor")) { + this.deliverFor = null; + } else if (name.equals("item")) { + this.item = null; + } else if (name.equals("quantity")) { + this.quantity = null; + } else if (name.equals("parameter")) { + this.getParameter().add((SupplyRequestParameterComponent) value); + } else if (name.equals("occurrence[x]")) { + this.occurrence = null; + } else if (name.equals("authoredOn")) { + this.authoredOn = null; + } else if (name.equals("requester")) { + this.requester = null; + } else if (name.equals("supplier")) { + this.getSupplier().remove(value); + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("deliverFrom")) { + this.deliverFrom = null; + } else if (name.equals("deliverTo")) { + this.deliverTo = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Task.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Task.java index ab4be37a2..aa3061406 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Task.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Task.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -649,6 +649,17 @@ public class Task extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("function")) { + this.function = null; + } else if (name.equals("actor")) { + this.actor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -939,6 +950,19 @@ public class Task extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("repetitions")) { + this.repetitions = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("recipient")) { + this.getRecipient().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2022,6 +2046,17 @@ public class Task extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3307,6 +3342,17 @@ public class Task extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5481,6 +5527,82 @@ public class Task extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.instantiatesCanonical = null; + } else if (name.equals("instantiatesUri")) { + this.instantiatesUri = null; + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("groupIdentifier")) { + this.groupIdentifier = null; + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new TaskStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.statusReason = null; + } else if (name.equals("businessStatus")) { + this.businessStatus = null; + } else if (name.equals("intent")) { + value = new TaskIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("doNotPerform")) { + this.doNotPerform = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("focus")) { + this.focus = null; + } else if (name.equals("for")) { + this.for_ = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("requestedPeriod")) { + this.requestedPeriod = null; + } else if (name.equals("executionPeriod")) { + this.executionPeriod = null; + } else if (name.equals("authoredOn")) { + this.authoredOn = null; + } else if (name.equals("lastModified")) { + this.lastModified = null; + } else if (name.equals("requester")) { + this.requester = null; + } else if (name.equals("requestedPerformer")) { + this.getRequestedPerformer().remove(value); + } else if (name.equals("owner")) { + this.owner = null; + } else if (name.equals("performer")) { + this.getPerformer().add((TaskPerformerComponent) value); + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("reason")) { + this.getReason().remove(value); + } else if (name.equals("insurance")) { + this.getInsurance().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("relevantHistory")) { + this.getRelevantHistory().remove(value); + } else if (name.equals("restriction")) { + this.restriction = (TaskRestrictionComponent) value; // TaskRestrictionComponent + } else if (name.equals("input")) { + this.getInput().add((TaskInputComponent) value); + } else if (name.equals("output")) { + this.getOutput().add((TaskOutputComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TerminologyCapabilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TerminologyCapabilities.java index bf11bcb73..97853409d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TerminologyCapabilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TerminologyCapabilities.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -343,6 +343,17 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("version")) { + this.version = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -596,6 +607,17 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("url")) { + this.url = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -980,6 +1002,22 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("uri")) { + this.uri = null; + } else if (name.equals("version")) { + this.getVersion().add((TerminologyCapabilitiesCodeSystemVersionComponent) value); + } else if (name.equals("content")) { + value = new CodeSystemContentModeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.content = (Enumeration) value; // Enumeration + } else if (name.equals("subsumption")) { + this.subsumption = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1527,6 +1565,26 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("isDefault")) { + this.isDefault = null; + } else if (name.equals("compositional")) { + this.compositional = null; + } else if (name.equals("language")) { + value = new CommonLanguagesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getLanguage().add((Enumeration) value); + } else if (name.equals("filter")) { + this.getFilter().add((TerminologyCapabilitiesCodeSystemVersionFilterComponent) value); + } else if (name.equals("property")) { + this.getProperty().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1833,6 +1891,17 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("op")) { + this.getOp().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2270,6 +2339,23 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("hierarchical")) { + this.hierarchical = null; + } else if (name.equals("paging")) { + this.paging = null; + } else if (name.equals("incomplete")) { + this.incomplete = null; + } else if (name.equals("parameter")) { + this.getParameter().add((TerminologyCapabilitiesExpansionParameterComponent) value); + } else if (name.equals("textFilter")) { + this.textFilter = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2548,6 +2634,17 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("documentation")) { + this.documentation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2737,6 +2834,15 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("translations")) { + this.translations = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2920,6 +3026,15 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("needsMap")) { + this.needsMap = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3095,6 +3210,15 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("translation")) { + this.translation = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4812,6 +4936,70 @@ public class TerminologyCapabilities extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("kind")) { + value = new CapabilityStatementKindEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.kind = (Enumeration) value; // Enumeration + } else if (name.equals("software")) { + this.software = (TerminologyCapabilitiesSoftwareComponent) value; // TerminologyCapabilitiesSoftwareComponent + } else if (name.equals("implementation")) { + this.implementation = (TerminologyCapabilitiesImplementationComponent) value; // TerminologyCapabilitiesImplementationComponent + } else if (name.equals("lockedDate")) { + this.lockedDate = null; + } else if (name.equals("codeSystem")) { + this.getCodeSystem().add((TerminologyCapabilitiesCodeSystemComponent) value); + } else if (name.equals("expansion")) { + this.expansion = (TerminologyCapabilitiesExpansionComponent) value; // TerminologyCapabilitiesExpansionComponent + } else if (name.equals("codeSearch")) { + value = new CodeSearchSupportEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.codeSearch = (Enumeration) value; // Enumeration + } else if (name.equals("validateCode")) { + this.validateCode = (TerminologyCapabilitiesValidateCodeComponent) value; // TerminologyCapabilitiesValidateCodeComponent + } else if (name.equals("translation")) { + this.translation = (TerminologyCapabilitiesTranslationComponent) value; // TerminologyCapabilitiesTranslationComponent + } else if (name.equals("closure")) { + this.closure = (TerminologyCapabilitiesClosureComponent) value; // TerminologyCapabilitiesClosureComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestPlan.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestPlan.java index f02944f52..d3fe1fd20 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestPlan.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestPlan.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -202,6 +202,17 @@ public class TestPlan extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("predecessor")) { + this.predecessor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -725,6 +736,25 @@ public class TestPlan extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("sequence")) { + this.sequence = null; + } else if (name.equals("scope")) { + this.getScope().remove(value); + } else if (name.equals("dependency")) { + this.getDependency().add((TestCaseDependencyComponent) value); + } else if (name.equals("testRun")) { + this.getTestRun().add((TestPlanTestCaseTestRunComponent) value); + } else if (name.equals("testData")) { + this.getTestData().add((TestPlanTestCaseTestDataComponent) value); + } else if (name.equals("assertion")) { + this.getAssertion().add((TestPlanTestCaseAssertionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -996,6 +1026,17 @@ public class TestPlan extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("description")) { + this.description = null; + } else if (name.equals("predecessor")) { + this.predecessor = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1222,6 +1263,17 @@ public class TestPlan extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("narrative")) { + this.narrative = null; + } else if (name.equals("script")) { + this.script = (TestPlanTestCaseTestRunScriptComponent) value; // TestPlanTestCaseTestRunScriptComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1452,6 +1504,17 @@ public class TestPlan extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("language")) { + this.language = null; + } else if (name.equals("source[x]")) { + this.source = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1735,6 +1798,19 @@ public class TestPlan extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("content")) { + this.content = null; + } else if (name.equals("source[x]")) { + this.source = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2075,6 +2151,19 @@ public class TestPlan extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("object")) { + this.getObject().remove(value); + } else if (name.equals("result")) { + this.getResult().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3728,6 +3817,60 @@ public class TestPlan extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("category")) { + this.getCategory().remove(value); + } else if (name.equals("scope")) { + this.getScope().remove(value); + } else if (name.equals("testTools")) { + this.testTools = null; + } else if (name.equals("dependency")) { + this.getDependency().add((TestPlanDependencyComponent) value); + } else if (name.equals("exitCriteria")) { + this.exitCriteria = null; + } else if (name.equals("testCase")) { + this.getTestCase().add((TestPlanTestCaseComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestReport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestReport.java index 975877aef..b7f936ac3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestReport.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestReport.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -808,6 +808,20 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new TestReportParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("uri")) { + this.uri = null; + } else if (name.equals("display")) { + this.display = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1013,6 +1027,15 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("action")) { + this.getAction().add((SetupActionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1210,6 +1233,17 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("operation")) { + this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent + } else if (name.equals("assert")) { + this.assert_ = (SetupActionAssertComponent) value; // SetupActionAssertComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1532,6 +1566,20 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("result")) { + value = new TestReportActionResultEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.result = (Enumeration) value; // Enumeration + } else if (name.equals("message")) { + this.message = null; + } else if (name.equals("detail")) { + this.detail = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1929,6 +1977,22 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("result")) { + value = new TestReportActionResultEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.result = (Enumeration) value; // Enumeration + } else if (name.equals("message")) { + this.message = null; + } else if (name.equals("detail")) { + this.detail = null; + } else if (name.equals("requirement")) { + this.getRequirement().add((SetupActionAssertRequirementComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2138,6 +2202,15 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("link[x]")) { + this.link = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2463,6 +2536,19 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("action")) { + this.getAction().add((TestActionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2674,6 +2760,17 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("operation")) { + this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent + } else if (name.equals("assert")) { + this.assert_ = (SetupActionAssertComponent) value; // SetupActionAssertComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2873,6 +2970,15 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("action")) { + this.getAction().add((TeardownActionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3039,6 +3145,15 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("operation")) { + this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3876,6 +3991,39 @@ public class TestReport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("status")) { + value = new TestReportStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("testScript")) { + this.testScript = null; + } else if (name.equals("result")) { + value = new TestReportResultEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.result = (Enumeration) value; // Enumeration + } else if (name.equals("score")) { + this.score = null; + } else if (name.equals("tester")) { + this.tester = null; + } else if (name.equals("issued")) { + this.issued = null; + } else if (name.equals("participant")) { + this.getParticipant().add((TestReportParticipantComponent) value); + } else if (name.equals("setup")) { + this.setup = (TestReportSetupComponent) value; // TestReportSetupComponent + } else if (name.equals("test")) { + this.getTest().add((TestReportTestComponent) value); + } else if (name.equals("teardown")) { + this.teardown = (TestReportTeardownComponent) value; // TestReportTeardownComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestScript.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestScript.java index c301c3f8f..900572171 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestScript.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestScript.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1696,6 +1696,19 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("index")) { + this.index = null; + } else if (name.equals("profile")) { + this.profile = null; + } else if (name.equals("url")) { + this.url = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1998,6 +2011,19 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("index")) { + this.index = null; + } else if (name.equals("profile")) { + this.profile = null; + } else if (name.equals("url")) { + this.url = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2271,6 +2297,17 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("link")) { + this.getLink().add((TestScriptMetadataLinkComponent) value); + } else if (name.equals("capability")) { + this.getCapability().add((TestScriptMetadataCapabilityComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2532,6 +2569,17 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("description")) { + this.description = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3119,6 +3167,27 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("required")) { + this.required = null; + } else if (name.equals("validated")) { + this.validated = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("origin")) { + this.getOrigin().remove(value); + } else if (name.equals("destination")) { + this.destination = null; + } else if (name.equals("link")) { + this.getLink().remove(value); + } else if (name.equals("capabilities")) { + this.capabilities = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3431,6 +3500,19 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("artifact")) { + this.artifact = null; + } else if (name.equals("conformance")) { + this.conformance = null; + } else if (name.equals("phase")) { + this.phase = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3730,6 +3812,19 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("autocreate")) { + this.autocreate = null; + } else if (name.equals("autodelete")) { + this.autodelete = null; + } else if (name.equals("resource")) { + this.resource = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4377,6 +4472,29 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("defaultValue")) { + this.defaultValue = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("expression")) { + this.expression = null; + } else if (name.equals("headerField")) { + this.headerField = null; + } else if (name.equals("hint")) { + this.hint = null; + } else if (name.equals("path")) { + this.path = null; + } else if (name.equals("sourceId")) { + this.sourceId = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4617,6 +4735,15 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("action")) { + this.getAction().add((SetupActionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4814,6 +4941,17 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("operation")) { + this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent + } else if (name.equals("assert")) { + this.assert_ = (SetupActionAssertComponent) value; // SetupActionAssertComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6007,6 +6145,48 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("resource")) { + this.resource = null; + } else if (name.equals("label")) { + this.label = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("accept")) { + this.accept = null; + } else if (name.equals("contentType")) { + this.contentType = null; + } else if (name.equals("destination")) { + this.destination = null; + } else if (name.equals("encodeRequestUrl")) { + this.encodeRequestUrl = null; + } else if (name.equals("method")) { + value = new TestScriptRequestMethodCodeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.method = (Enumeration) value; // Enumeration + } else if (name.equals("origin")) { + this.origin = null; + } else if (name.equals("params")) { + this.params = null; + } else if (name.equals("requestHeader")) { + this.getRequestHeader().add((SetupActionOperationRequestHeaderComponent) value); + } else if (name.equals("requestId")) { + this.requestId = null; + } else if (name.equals("responseId")) { + this.responseId = null; + } else if (name.equals("sourceId")) { + this.sourceId = null; + } else if (name.equals("targetId")) { + this.targetId = null; + } else if (name.equals("url")) { + this.url = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -6365,6 +6545,17 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("field")) { + this.field = null; + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8104,6 +8295,68 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("label")) { + this.label = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("direction")) { + value = new AssertionDirectionTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.direction = (Enumeration) value; // Enumeration + } else if (name.equals("compareToSourceId")) { + this.compareToSourceId = null; + } else if (name.equals("compareToSourceExpression")) { + this.compareToSourceExpression = null; + } else if (name.equals("compareToSourcePath")) { + this.compareToSourcePath = null; + } else if (name.equals("contentType")) { + this.contentType = null; + } else if (name.equals("defaultManualCompletion")) { + value = new AssertionManualCompletionTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.defaultManualCompletion = (Enumeration) value; // Enumeration + } else if (name.equals("expression")) { + this.expression = null; + } else if (name.equals("headerField")) { + this.headerField = null; + } else if (name.equals("minimumId")) { + this.minimumId = null; + } else if (name.equals("navigationLinks")) { + this.navigationLinks = null; + } else if (name.equals("operator")) { + value = new AssertionOperatorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.operator = (Enumeration) value; // Enumeration + } else if (name.equals("path")) { + this.path = null; + } else if (name.equals("requestMethod")) { + value = new TestScriptRequestMethodCodeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.requestMethod = (Enumeration) value; // Enumeration + } else if (name.equals("requestURL")) { + this.requestURL = null; + } else if (name.equals("resource")) { + this.resource = null; + } else if (name.equals("response")) { + value = new AssertionResponseTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.response = (Enumeration) value; // Enumeration + } else if (name.equals("responseCode")) { + this.responseCode = null; + } else if (name.equals("sourceId")) { + this.sourceId = null; + } else if (name.equals("stopTestOnFail")) { + this.stopTestOnFail = null; + } else if (name.equals("validateProfileId")) { + this.validateProfileId = null; + } else if (name.equals("value")) { + this.value = null; + } else if (name.equals("warningOnly")) { + this.warningOnly = null; + } else if (name.equals("requirement")) { + this.getRequirement().add((SetupActionAssertRequirementComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8459,6 +8712,15 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("link[x]")) { + this.link = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8784,6 +9046,19 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("action")) { + this.getAction().add((TestActionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -8995,6 +9270,17 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("operation")) { + this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent + } else if (name.equals("assert")) { + this.assert_ = (SetupActionAssertComponent) value; // SetupActionAssertComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -9194,6 +9480,15 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("action")) { + this.getAction().add((TeardownActionComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -9360,6 +9655,15 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("operation")) { + this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -11186,6 +11490,68 @@ public class TestScript extends CanonicalResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("origin")) { + this.getOrigin().add((TestScriptOriginComponent) value); + } else if (name.equals("destination")) { + this.getDestination().add((TestScriptDestinationComponent) value); + } else if (name.equals("metadata")) { + this.metadata = (TestScriptMetadataComponent) value; // TestScriptMetadataComponent + } else if (name.equals("scope")) { + this.getScope().add((TestScriptScopeComponent) value); + } else if (name.equals("fixture")) { + this.getFixture().add((TestScriptFixtureComponent) value); + } else if (name.equals("profile")) { + this.getProfile().remove(value); + } else if (name.equals("variable")) { + this.getVariable().add((TestScriptVariableComponent) value); + } else if (name.equals("setup")) { + this.setup = (TestScriptSetupComponent) value; // TestScriptSetupComponent + } else if (name.equals("test")) { + this.getTest().add((TestScriptTestComponent) value); + } else if (name.equals("teardown")) { + this.teardown = (TestScriptTeardownComponent) value; // TestScriptTeardownComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Timing.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Timing.java index b8158f1df..428bb16a5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Timing.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Timing.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1861,6 +1861,47 @@ Normal practice is to use the 'mo' code as a calendar month when calculating the return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("bounds[x]")) { + this.bounds = null; + } else if (name.equals("count")) { + this.count = null; + } else if (name.equals("countMax")) { + this.countMax = null; + } else if (name.equals("duration")) { + this.duration = null; + } else if (name.equals("durationMax")) { + this.durationMax = null; + } else if (name.equals("durationUnit")) { + value = new UnitsOfTimeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.durationUnit = (Enumeration) value; // Enumeration + } else if (name.equals("frequency")) { + this.frequency = null; + } else if (name.equals("frequencyMax")) { + this.frequencyMax = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("periodMax")) { + this.periodMax = null; + } else if (name.equals("periodUnit")) { + value = new UnitsOfTimeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.periodUnit = (Enumeration) value; // Enumeration + } else if (name.equals("dayOfWeek")) { + value = new DaysOfWeekEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getDayOfWeek().add((Enumeration) value); + } else if (name.equals("timeOfDay")) { + this.getTimeOfDay().remove(value); + } else if (name.equals("when")) { + value = new EventTimingEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.getWhen().add((Enumeration) value); + } else if (name.equals("offset")) { + this.offset = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2247,6 +2288,19 @@ Normal practice is to use the 'mo' code as a calendar month when calculating the return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("event")) { + this.getEvent().remove(value); + } else if (name.equals("repeat")) { + this.repeat = (TimingRepeatComponent) value; // TimingRepeatComponent + } else if (name.equals("code")) { + this.code = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Transport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Transport.java index 441894d50..273f8626e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Transport.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Transport.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -634,6 +634,19 @@ public class Transport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("repetitions")) { + this.repetitions = null; + } else if (name.equals("period")) { + this.period = null; + } else if (name.equals("recipient")) { + this.getRecipient().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1717,6 +1730,17 @@ public class Transport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3002,6 +3026,17 @@ public class Transport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5088,6 +5123,80 @@ public class Transport extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("instantiatesCanonical")) { + this.instantiatesCanonical = null; + } else if (name.equals("instantiatesUri")) { + this.instantiatesUri = null; + } else if (name.equals("basedOn")) { + this.getBasedOn().remove(value); + } else if (name.equals("groupIdentifier")) { + this.groupIdentifier = null; + } else if (name.equals("partOf")) { + this.getPartOf().remove(value); + } else if (name.equals("status")) { + value = new TransportStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusReason")) { + this.statusReason = null; + } else if (name.equals("intent")) { + value = new TransportIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + } else if (name.equals("priority")) { + value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("focus")) { + this.focus = null; + } else if (name.equals("for")) { + this.for_ = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("completionTime")) { + this.completionTime = null; + } else if (name.equals("authoredOn")) { + this.authoredOn = null; + } else if (name.equals("lastModified")) { + this.lastModified = null; + } else if (name.equals("requester")) { + this.requester = null; + } else if (name.equals("performerType")) { + this.getPerformerType().remove(value); + } else if (name.equals("owner")) { + this.owner = null; + } else if (name.equals("location")) { + this.location = null; + } else if (name.equals("insurance")) { + this.getInsurance().remove(value); + } else if (name.equals("note")) { + this.getNote().remove(value); + } else if (name.equals("relevantHistory")) { + this.getRelevantHistory().remove(value); + } else if (name.equals("restriction")) { + this.restriction = (TransportRestrictionComponent) value; // TransportRestrictionComponent + } else if (name.equals("input")) { + this.getInput().add((ParameterComponent) value); + } else if (name.equals("output")) { + this.getOutput().add((TransportOutputComponent) value); + } else if (name.equals("requestedLocation")) { + this.requestedLocation = null; + } else if (name.equals("currentLocation")) { + this.currentLocation = null; + } else if (name.equals("reason")) { + this.reason = null; + } else if (name.equals("history")) { + this.history = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TriggerDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TriggerDefinition.java index bc650c1aa..5cb449de7 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TriggerDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TriggerDefinition.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -733,6 +733,28 @@ public class TriggerDefinition extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new TriggerTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("subscriptionTopic")) { + this.subscriptionTopic = null; + } else if (name.equals("timing[x]")) { + this.timing = null; + } else if (name.equals("data")) { + this.getData().remove(value); + } else if (name.equals("condition")) { + this.condition = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UsageContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UsageContext.java index 52ec56387..8e2e931a7 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UsageContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UsageContext.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -245,6 +245,17 @@ public class UsageContext extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ValueSet.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ValueSet.java index 4ac3e8695..e48b05dfc 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ValueSet.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ValueSet.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -443,6 +443,23 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("lockedDate")) { + this.lockedDate = null; + } else if (name.equals("inactive")) { + this.inactive = null; + } else if (name.equals("include")) { + this.getInclude().add((ConceptSetComponent) value); + } else if (name.equals("exclude")) { + this.getExclude().add((ConceptSetComponent) value); + } else if (name.equals("property")) { + this.getProperty().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1001,6 +1018,25 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("system")) { + this.system = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("concept")) { + this.getConcept().add((ConceptReferenceComponent) value); + } else if (name.equals("filter")) { + this.getFilter().add((ConceptSetFilterComponent) value); + } else if (name.equals("valueSet")) { + this.getValueSet().remove(value); + } else if (name.equals("copyright")) { + this.copyright = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1362,6 +1398,19 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("display")) { + this.display = null; + } else if (name.equals("designation")) { + this.getDesignation().add((ConceptReferenceDesignationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1737,6 +1786,21 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("language")) { + this.language = null; + } else if (name.equals("use")) { + this.use = null; + } else if (name.equals("additionalUse")) { + this.getAdditionalUse().remove(value); + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2070,6 +2134,20 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("property")) { + this.property = null; + } else if (name.equals("op")) { + value = new FilterOperatorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.op = (Enumeration) value; // Enumeration + } else if (name.equals("value")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2719,6 +2797,29 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = null; + } else if (name.equals("next")) { + this.next = null; + } else if (name.equals("timestamp")) { + this.timestamp = null; + } else if (name.equals("total")) { + this.total = null; + } else if (name.equals("offset")) { + this.offset = null; + } else if (name.equals("parameter")) { + this.getParameter().add((ValueSetExpansionParameterComponent) value); + } else if (name.equals("property")) { + this.getProperty().add((ValueSetExpansionPropertyComponent) value); + } else if (name.equals("contains")) { + this.getContains().add((ValueSetExpansionContainsComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3121,6 +3222,17 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -3406,6 +3518,17 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("uri")) { + this.uri = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4107,6 +4230,31 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("system")) { + this.system = null; + } else if (name.equals("abstract")) { + this.abstract_ = null; + } else if (name.equals("inactive")) { + this.inactive = null; + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("code")) { + this.code = null; + } else if (name.equals("display")) { + this.display = null; + } else if (name.equals("designation")) { + this.getDesignation().add((ConceptReferenceDesignationComponent) value); + } else if (name.equals("property")) { + this.getProperty().add((ConceptPropertyComponent) value); + } else if (name.equals("contains")) { + this.getContains().add((ValueSetExpansionContainsComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4574,6 +4722,19 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else if (name.equals("subProperty")) { + this.getSubProperty().add((ConceptSubPropertyComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -4951,6 +5112,17 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("code")) { + this.code = null; + } else if (name.equals("value[x]")) { + this.value = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -5226,6 +5398,17 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("inclusionCriteria")) { + this.inclusionCriteria = null; + } else if (name.equals("exclusionCriteria")) { + this.exclusionCriteria = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -7215,6 +7398,74 @@ public class ValueSet extends MetadataResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = null; + } else if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("version")) { + this.version = null; + } else if (name.equals("versionAlgorithm[x]")) { + this.versionAlgorithm = null; + } else if (name.equals("name")) { + this.name = null; + } else if (name.equals("title")) { + this.title = null; + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("publisher")) { + this.publisher = null; + } else if (name.equals("contact")) { + this.getContact().remove(value); + } else if (name.equals("description")) { + this.description = null; + } else if (name.equals("useContext")) { + this.getUseContext().remove(value); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().remove(value); + } else if (name.equals("immutable")) { + this.immutable = null; + } else if (name.equals("purpose")) { + this.purpose = null; + } else if (name.equals("copyright")) { + this.copyright = null; + } else if (name.equals("copyrightLabel")) { + this.copyrightLabel = null; + } else if (name.equals("approvalDate")) { + this.approvalDate = null; + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = null; + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = null; + } else if (name.equals("topic")) { + this.getTopic().remove(value); + } else if (name.equals("author")) { + this.getAuthor().remove(value); + } else if (name.equals("editor")) { + this.getEditor().remove(value); + } else if (name.equals("reviewer")) { + this.getReviewer().remove(value); + } else if (name.equals("endorser")) { + this.getEndorser().remove(value); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().remove(value); + } else if (name.equals("compose")) { + this.compose = (ValueSetComposeComponent) value; // ValueSetComposeComponent + } else if (name.equals("expansion")) { + this.expansion = (ValueSetExpansionComponent) value; // ValueSetExpansionComponent + } else if (name.equals("scope")) { + this.scope = (ValueSetScopeComponent) value; // ValueSetScopeComponent + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VerificationResult.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VerificationResult.java index 88b53bb65..cff02ecab 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VerificationResult.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VerificationResult.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -665,6 +665,27 @@ public class VerificationResult extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("who")) { + this.who = null; + } else if (name.equals("type")) { + this.getType().remove(value); + } else if (name.equals("communicationMethod")) { + this.getCommunicationMethod().remove(value); + } else if (name.equals("validationStatus")) { + this.validationStatus = null; + } else if (name.equals("validationDate")) { + this.validationDate = null; + } else if (name.equals("canPushUpdates")) { + this.canPushUpdates = null; + } else if (name.equals("pushTypeAvailable")) { + this.getPushTypeAvailable().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1223,6 +1244,29 @@ public class VerificationResult extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("who")) { + this.who = null; + } else if (name.equals("onBehalfOf")) { + this.onBehalfOf = null; + } else if (name.equals("communicationMethod")) { + this.communicationMethod = null; + } else if (name.equals("date")) { + this.date = null; + } else if (name.equals("sourceIdentityCertificate")) { + this.sourceIdentityCertificate = null; + } else if (name.equals("proxyIdentityCertificate")) { + this.proxyIdentityCertificate = null; + } else if (name.equals("proxySignature")) { + this.proxySignature = null; + } else if (name.equals("sourceSignature")) { + this.sourceSignature = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1541,6 +1585,19 @@ public class VerificationResult extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("organization")) { + this.organization = null; + } else if (name.equals("identityCertificate")) { + this.identityCertificate = null; + } else if (name.equals("attestationSignature")) { + this.attestationSignature = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2480,6 +2537,42 @@ public class VerificationResult extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("target")) { + this.getTarget().remove(value); + } else if (name.equals("targetLocation")) { + this.getTargetLocation().remove(value); + } else if (name.equals("need")) { + this.need = null; + } else if (name.equals("status")) { + value = new VerificationResultStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("statusDate")) { + this.statusDate = null; + } else if (name.equals("validationType")) { + this.validationType = null; + } else if (name.equals("validationProcess")) { + this.getValidationProcess().remove(value); + } else if (name.equals("frequency")) { + this.frequency = null; + } else if (name.equals("lastPerformed")) { + this.lastPerformed = null; + } else if (name.equals("nextScheduled")) { + this.nextScheduled = null; + } else if (name.equals("failureAction")) { + this.failureAction = null; + } else if (name.equals("primarySource")) { + this.getPrimarySource().add((VerificationResultPrimarySourceComponent) value); + } else if (name.equals("attestation")) { + this.attestation = (VerificationResultAttestationComponent) value; // VerificationResultAttestationComponent + } else if (name.equals("validator")) { + this.getValidator().add((VerificationResultValidatorComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VirtualServiceDetail.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VirtualServiceDetail.java index b6c8be056..767c3a73d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VirtualServiceDetail.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VirtualServiceDetail.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -436,6 +436,23 @@ public class VirtualServiceDetail extends DataType implements ICompositeType { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("channelType")) { + this.channelType = null; + } else if (name.equals("address[x]")) { + this.address = null; + } else if (name.equals("additionalInfo")) { + this.getAdditionalInfo().remove(value); + } else if (name.equals("maxParticipants")) { + this.maxParticipants = null; + } else if (name.equals("sessionKey")) { + this.sessionKey = null; + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VisionPrescription.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VisionPrescription.java index 06973a91d..ea8fc31a2 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VisionPrescription.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VisionPrescription.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r5.model; +package org.hl7.fhir.r5.model; /* @@ -1291,6 +1291,42 @@ public class VisionPrescription extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("product")) { + this.product = null; + } else if (name.equals("eye")) { + value = new VisionEyesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.eye = (Enumeration) value; // Enumeration + } else if (name.equals("sphere")) { + this.sphere = null; + } else if (name.equals("cylinder")) { + this.cylinder = null; + } else if (name.equals("axis")) { + this.axis = null; + } else if (name.equals("prism")) { + this.getPrism().add((PrismComponent) value); + } else if (name.equals("add")) { + this.add = null; + } else if (name.equals("power")) { + this.power = null; + } else if (name.equals("backCurve")) { + this.backCurve = null; + } else if (name.equals("diameter")) { + this.diameter = null; + } else if (name.equals("duration")) { + this.duration = null; + } else if (name.equals("color")) { + this.color = null; + } else if (name.equals("brand")) { + this.brand = null; + } else if (name.equals("note")) { + this.getNote().remove(value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -1653,6 +1689,18 @@ public class VisionPrescription extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("amount")) { + this.amount = null; + } else if (name.equals("base")) { + value = new VisionBaseEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.base = (Enumeration) value; // Enumeration + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { @@ -2221,6 +2269,30 @@ public class VisionPrescription extends DomainResource { return value; } + @Override + public void removeChild(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().remove(value); + } else if (name.equals("status")) { + value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("created")) { + this.created = null; + } else if (name.equals("patient")) { + this.patient = null; + } else if (name.equals("encounter")) { + this.encounter = null; + } else if (name.equals("dateWritten")) { + this.dateWritten = null; + } else if (name.equals("prescriber")) { + this.prescriber = null; + } else if (name.equals("lensSpecification")) { + this.getLensSpecification().add((VisionPrescriptionLensSpecificationComponent) value); + } else + super.removeChild(name, value); + + } + @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) {