From 952dedd06b8e37fca1767139077567460c2fbdd8 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 9 Aug 2023 19:48:01 +1000 Subject: [PATCH] #1343 - addChild error in PEBuilder --- .../codegen/JavaResourceGenerator.java | 2 +- .../org/hl7/fhir/dstu2/model/Account.java | 6 +- .../org/hl7/fhir/dstu2/model/Address.java | 18 +- .../fhir/dstu2/model/AllergyIntolerance.java | 22 +-- .../org/hl7/fhir/dstu2/model/Annotation.java | 4 +- .../org/hl7/fhir/dstu2/model/Appointment.java | 18 +- .../fhir/dstu2/model/AppointmentResponse.java | 8 +- .../org/hl7/fhir/dstu2/model/Attachment.java | 16 +- .../org/hl7/fhir/dstu2/model/AuditEvent.java | 32 ++-- .../java/org/hl7/fhir/dstu2/model/Basic.java | 2 +- .../java/org/hl7/fhir/dstu2/model/Binary.java | 4 +- .../org/hl7/fhir/dstu2/model/BodySite.java | 2 +- .../java/org/hl7/fhir/dstu2/model/Bundle.java | 34 ++-- .../org/hl7/fhir/dstu2/model/CarePlan.java | 14 +- .../java/org/hl7/fhir/dstu2/model/Claim.java | 48 ++--- .../hl7/fhir/dstu2/model/ClaimResponse.java | 48 ++--- .../fhir/dstu2/model/ClinicalImpression.java | 16 +- .../hl7/fhir/dstu2/model/CodeableConcept.java | 2 +- .../java/org/hl7/fhir/dstu2/model/Coding.java | 10 +- .../hl7/fhir/dstu2/model/Communication.java | 6 +- .../dstu2/model/CommunicationRequest.java | 4 +- .../org/hl7/fhir/dstu2/model/Composition.java | 16 +- .../org/hl7/fhir/dstu2/model/ConceptMap.java | 40 ++--- .../org/hl7/fhir/dstu2/model/Condition.java | 8 +- .../org/hl7/fhir/dstu2/model/Conformance.java | 116 ++++++------ .../hl7/fhir/dstu2/model/ContactPoint.java | 8 +- .../org/hl7/fhir/dstu2/model/Contract.java | 20 +-- .../org/hl7/fhir/dstu2/model/Coverage.java | 10 +- .../org/hl7/fhir/dstu2/model/DataElement.java | 28 +-- .../hl7/fhir/dstu2/model/DetectedIssue.java | 10 +- .../java/org/hl7/fhir/dstu2/model/Device.java | 18 +- .../hl7/fhir/dstu2/model/DeviceComponent.java | 6 +- .../hl7/fhir/dstu2/model/DeviceMetric.java | 12 +- .../fhir/dstu2/model/DeviceUseRequest.java | 10 +- .../fhir/dstu2/model/DeviceUseStatement.java | 4 +- .../hl7/fhir/dstu2/model/DiagnosticOrder.java | 10 +- .../fhir/dstu2/model/DiagnosticReport.java | 8 +- .../fhir/dstu2/model/DocumentManifest.java | 8 +- .../fhir/dstu2/model/DocumentReference.java | 10 +- .../org/hl7/fhir/dstu2/model/Element.java | 2 +- .../fhir/dstu2/model/ElementDefinition.java | 76 ++++---- .../fhir/dstu2/model/EligibilityRequest.java | 2 +- .../fhir/dstu2/model/EligibilityResponse.java | 6 +- .../org/hl7/fhir/dstu2/model/Encounter.java | 8 +- .../fhir/dstu2/model/EnrollmentRequest.java | 2 +- .../fhir/dstu2/model/EnrollmentResponse.java | 6 +- .../hl7/fhir/dstu2/model/EpisodeOfCare.java | 4 +- .../dstu2/model/ExplanationOfBenefit.java | 6 +- .../org/hl7/fhir/dstu2/model/Extension.java | 2 +- .../fhir/dstu2/model/FamilyMemberHistory.java | 8 +- .../java/org/hl7/fhir/dstu2/model/Flag.java | 2 +- .../java/org/hl7/fhir/dstu2/model/Goal.java | 6 +- .../java/org/hl7/fhir/dstu2/model/Group.java | 12 +- .../fhir/dstu2/model/HealthcareService.java | 26 +-- .../org/hl7/fhir/dstu2/model/HumanName.java | 12 +- .../org/hl7/fhir/dstu2/model/Identifier.java | 6 +- .../dstu2/model/ImagingObjectSelection.java | 24 +-- .../hl7/fhir/dstu2/model/ImagingStudy.java | 38 ++-- .../hl7/fhir/dstu2/model/Immunization.java | 24 +-- .../model/ImmunizationRecommendation.java | 12 +- .../fhir/dstu2/model/ImplementationGuide.java | 54 +++--- .../java/org/hl7/fhir/dstu2/model/List_.java | 14 +- .../org/hl7/fhir/dstu2/model/Location.java | 14 +- .../java/org/hl7/fhir/dstu2/model/Media.java | 12 +- .../org/hl7/fhir/dstu2/model/Medication.java | 6 +- .../dstu2/model/MedicationAdministration.java | 8 +- .../fhir/dstu2/model/MedicationDispense.java | 10 +- .../hl7/fhir/dstu2/model/MedicationOrder.java | 12 +- .../fhir/dstu2/model/MedicationStatement.java | 10 +- .../hl7/fhir/dstu2/model/MessageHeader.java | 18 +- .../java/org/hl7/fhir/dstu2/model/Meta.java | 6 +- .../hl7/fhir/dstu2/model/NamingSystem.java | 24 +-- .../org/hl7/fhir/dstu2/model/Narrative.java | 2 +- .../hl7/fhir/dstu2/model/NutritionOrder.java | 16 +- .../org/hl7/fhir/dstu2/model/Observation.java | 10 +- .../fhir/dstu2/model/OperationDefinition.java | 48 ++--- .../fhir/dstu2/model/OperationOutcome.java | 8 +- .../java/org/hl7/fhir/dstu2/model/Order.java | 2 +- .../hl7/fhir/dstu2/model/OrderResponse.java | 6 +- .../hl7/fhir/dstu2/model/Organization.java | 4 +- .../org/hl7/fhir/dstu2/model/Parameters.java | 2 +- .../org/hl7/fhir/dstu2/model/Patient.java | 12 +- .../hl7/fhir/dstu2/model/PaymentNotice.java | 2 +- .../dstu2/model/PaymentReconciliation.java | 10 +- .../java/org/hl7/fhir/dstu2/model/Period.java | 4 +- .../java/org/hl7/fhir/dstu2/model/Person.java | 8 +- .../hl7/fhir/dstu2/model/Practitioner.java | 6 +- .../org/hl7/fhir/dstu2/model/Procedure.java | 4 +- .../fhir/dstu2/model/ProcedureRequest.java | 6 +- .../hl7/fhir/dstu2/model/ProcessRequest.java | 14 +- .../hl7/fhir/dstu2/model/ProcessResponse.java | 6 +- .../org/hl7/fhir/dstu2/model/Provenance.java | 12 +- .../org/hl7/fhir/dstu2/model/Quantity.java | 10 +- .../hl7/fhir/dstu2/model/Questionnaire.java | 30 ++-- .../dstu2/model/QuestionnaireResponse.java | 14 +- .../org/hl7/fhir/dstu2/model/Reference.java | 4 +- .../hl7/fhir/dstu2/model/ReferralRequest.java | 8 +- .../hl7/fhir/dstu2/model/RelatedPerson.java | 4 +- .../org/hl7/fhir/dstu2/model/Resource.java | 6 +- .../hl7/fhir/dstu2/model/RiskAssessment.java | 8 +- .../org/hl7/fhir/dstu2/model/SampledData.java | 12 +- .../org/hl7/fhir/dstu2/model/Schedule.java | 2 +- .../hl7/fhir/dstu2/model/SearchParameter.java | 30 ++-- .../org/hl7/fhir/dstu2/model/Signature.java | 6 +- .../java/org/hl7/fhir/dstu2/model/Slot.java | 10 +- .../org/hl7/fhir/dstu2/model/Specimen.java | 10 +- .../fhir/dstu2/model/StructureDefinition.java | 46 ++--- .../hl7/fhir/dstu2/model/Subscription.java | 18 +- .../org/hl7/fhir/dstu2/model/Substance.java | 4 +- .../hl7/fhir/dstu2/model/SupplyDelivery.java | 4 +- .../hl7/fhir/dstu2/model/SupplyRequest.java | 4 +- .../org/hl7/fhir/dstu2/model/TestScript.java | 118 ++++++------- .../java/org/hl7/fhir/dstu2/model/Timing.java | 22 +-- .../org/hl7/fhir/dstu2/model/ValueSet.java | 82 ++++----- .../fhir/dstu2/model/VisionPrescription.java | 28 +-- .../hl7/fhir/dstu2016may/model/Account.java | 6 +- .../dstu2016may/model/ActionDefinition.java | 20 +-- .../hl7/fhir/dstu2016may/model/Address.java | 18 +- .../dstu2016may/model/AllergyIntolerance.java | 22 +-- .../fhir/dstu2016may/model/Annotation.java | 4 +- .../fhir/dstu2016may/model/Appointment.java | 20 +-- .../model/AppointmentResponse.java | 8 +- .../fhir/dstu2016may/model/Attachment.java | 16 +- .../fhir/dstu2016may/model/AuditEvent.java | 32 ++-- .../org/hl7/fhir/dstu2016may/model/Basic.java | 2 +- .../hl7/fhir/dstu2016may/model/Binary.java | 4 +- .../hl7/fhir/dstu2016may/model/BodySite.java | 2 +- .../hl7/fhir/dstu2016may/model/Bundle.java | 34 ++-- .../hl7/fhir/dstu2016may/model/CarePlan.java | 14 +- .../hl7/fhir/dstu2016may/model/CareTeam.java | 2 +- .../org/hl7/fhir/dstu2016may/model/Claim.java | 48 ++--- .../fhir/dstu2016may/model/ClaimResponse.java | 48 ++--- .../dstu2016may/model/ClinicalImpression.java | 16 +- .../fhir/dstu2016may/model/CodeSystem.java | 60 +++---- .../dstu2016may/model/CodeableConcept.java | 2 +- .../hl7/fhir/dstu2016may/model/Coding.java | 10 +- .../fhir/dstu2016may/model/Communication.java | 6 +- .../model/CommunicationRequest.java | 4 +- .../model/CompartmentDefinition.java | 28 +-- .../fhir/dstu2016may/model/Composition.java | 16 +- .../fhir/dstu2016may/model/ConceptMap.java | 44 ++--- .../hl7/fhir/dstu2016may/model/Condition.java | 8 +- .../fhir/dstu2016may/model/Conformance.java | 116 ++++++------ .../fhir/dstu2016may/model/ContactPoint.java | 8 +- .../hl7/fhir/dstu2016may/model/Contract.java | 18 +- .../hl7/fhir/dstu2016may/model/Coverage.java | 16 +- .../fhir/dstu2016may/model/DataElement.java | 28 +-- .../dstu2016may/model/DataRequirement.java | 10 +- .../model/DecisionSupportRule.java | 2 +- .../fhir/dstu2016may/model/DetectedIssue.java | 10 +- .../hl7/fhir/dstu2016may/model/Device.java | 16 +- .../dstu2016may/model/DeviceComponent.java | 6 +- .../fhir/dstu2016may/model/DeviceMetric.java | 12 +- .../dstu2016may/model/DeviceUseRequest.java | 10 +- .../dstu2016may/model/DeviceUseStatement.java | 4 +- .../dstu2016may/model/DiagnosticOrder.java | 10 +- .../dstu2016may/model/DiagnosticReport.java | 8 +- .../dstu2016may/model/DocumentManifest.java | 8 +- .../dstu2016may/model/DocumentReference.java | 10 +- .../hl7/fhir/dstu2016may/model/Element.java | 2 +- .../dstu2016may/model/ElementDefinition.java | 80 ++++----- .../dstu2016may/model/EligibilityRequest.java | 4 +- .../model/EligibilityResponse.java | 8 +- .../hl7/fhir/dstu2016may/model/Encounter.java | 8 +- .../dstu2016may/model/EnrollmentRequest.java | 2 +- .../dstu2016may/model/EnrollmentResponse.java | 6 +- .../fhir/dstu2016may/model/EpisodeOfCare.java | 4 +- .../dstu2016may/model/ExpansionProfile.java | 46 ++--- .../model/ExplanationOfBenefit.java | 64 +++---- .../hl7/fhir/dstu2016may/model/Extension.java | 2 +- .../model/FamilyMemberHistory.java | 8 +- .../org/hl7/fhir/dstu2016may/model/Flag.java | 2 +- .../org/hl7/fhir/dstu2016may/model/Goal.java | 6 +- .../org/hl7/fhir/dstu2016may/model/Group.java | 14 +- .../dstu2016may/model/GuidanceResponse.java | 18 +- .../dstu2016may/model/HealthcareService.java | 26 +-- .../hl7/fhir/dstu2016may/model/HumanName.java | 12 +- .../fhir/dstu2016may/model/Identifier.java | 6 +- .../dstu2016may/model/ImagingExcerpt.java | 44 ++--- .../model/ImagingObjectSelection.java | 24 +-- .../fhir/dstu2016may/model/ImagingStudy.java | 38 ++-- .../fhir/dstu2016may/model/Immunization.java | 24 +-- .../model/ImmunizationRecommendation.java | 12 +- .../model/ImplementationGuide.java | 54 +++--- .../hl7/fhir/dstu2016may/model/Library.java | 26 +-- .../hl7/fhir/dstu2016may/model/Linkage.java | 2 +- .../fhir/dstu2016may/model/ListResource.java | 12 +- .../hl7/fhir/dstu2016may/model/Location.java | 14 +- .../hl7/fhir/dstu2016may/model/Measure.java | 44 ++--- .../fhir/dstu2016may/model/MeasureReport.java | 24 +-- .../org/hl7/fhir/dstu2016may/model/Media.java | 12 +- .../fhir/dstu2016may/model/Medication.java | 6 +- .../model/MedicationAdministration.java | 6 +- .../dstu2016may/model/MedicationDispense.java | 8 +- .../dstu2016may/model/MedicationOrder.java | 10 +- .../model/MedicationStatement.java | 8 +- .../fhir/dstu2016may/model/MessageHeader.java | 18 +- .../org/hl7/fhir/dstu2016may/model/Meta.java | 6 +- .../dstu2016may/model/ModuleDefinition.java | 44 ++--- .../dstu2016may/model/ModuleMetadata.java | 38 ++-- .../fhir/dstu2016may/model/NamingSystem.java | 24 +-- .../hl7/fhir/dstu2016may/model/Narrative.java | 2 +- .../dstu2016may/model/NutritionOrder.java | 16 +- .../fhir/dstu2016may/model/Observation.java | 10 +- .../model/OperationDefinition.java | 50 +++--- .../dstu2016may/model/OperationOutcome.java | 10 +- .../org/hl7/fhir/dstu2016may/model/Order.java | 2 +- .../fhir/dstu2016may/model/OrderResponse.java | 6 +- .../fhir/dstu2016may/model/Organization.java | 4 +- .../model/ParameterDefinition.java | 12 +- .../fhir/dstu2016may/model/Parameters.java | 2 +- .../hl7/fhir/dstu2016may/model/Patient.java | 12 +- .../fhir/dstu2016may/model/PaymentNotice.java | 4 +- .../model/PaymentReconciliation.java | 10 +- .../hl7/fhir/dstu2016may/model/Period.java | 4 +- .../hl7/fhir/dstu2016may/model/Person.java | 8 +- .../fhir/dstu2016may/model/Practitioner.java | 6 +- .../dstu2016may/model/PractitionerRole.java | 14 +- .../hl7/fhir/dstu2016may/model/Procedure.java | 4 +- .../dstu2016may/model/ProcedureRequest.java | 6 +- .../dstu2016may/model/ProcessRequest.java | 14 +- .../dstu2016may/model/ProcessResponse.java | 6 +- .../hl7/fhir/dstu2016may/model/Protocol.java | 32 ++-- .../fhir/dstu2016may/model/Provenance.java | 12 +- .../hl7/fhir/dstu2016may/model/Quantity.java | 10 +- .../fhir/dstu2016may/model/Questionnaire.java | 34 ++-- .../model/QuestionnaireResponse.java | 8 +- .../hl7/fhir/dstu2016may/model/Reference.java | 4 +- .../dstu2016may/model/ReferralRequest.java | 8 +- .../fhir/dstu2016may/model/RelatedPerson.java | 4 +- .../hl7/fhir/dstu2016may/model/Resource.java | 6 +- .../dstu2016may/model/RiskAssessment.java | 8 +- .../fhir/dstu2016may/model/SampledData.java | 12 +- .../hl7/fhir/dstu2016may/model/Schedule.java | 2 +- .../dstu2016may/model/SearchParameter.java | 32 ++-- .../hl7/fhir/dstu2016may/model/Sequence.java | 54 +++--- .../hl7/fhir/dstu2016may/model/Signature.java | 6 +- .../org/hl7/fhir/dstu2016may/model/Slot.java | 10 +- .../hl7/fhir/dstu2016may/model/Specimen.java | 10 +- .../model/StructureDefinition.java | 48 ++--- .../fhir/dstu2016may/model/StructureMap.java | 82 ++++----- .../fhir/dstu2016may/model/Subscription.java | 18 +- .../hl7/fhir/dstu2016may/model/Substance.java | 4 +- .../dstu2016may/model/SupplyDelivery.java | 4 +- .../fhir/dstu2016may/model/SupplyRequest.java | 4 +- .../org/hl7/fhir/dstu2016may/model/Task.java | 16 +- .../fhir/dstu2016may/model/TestScript.java | 150 ++++++++-------- .../hl7/fhir/dstu2016may/model/Timing.java | 26 +-- .../dstu2016may/model/TriggerDefinition.java | 4 +- .../hl7/fhir/dstu2016may/model/ValueSet.java | 68 +++---- .../dstu2016may/model/VisionPrescription.java | 28 +-- .../org/hl7/fhir/dstu3/model/Account.java | 10 +- .../fhir/dstu3/model/ActivityDefinition.java | 40 ++--- .../org/hl7/fhir/dstu3/model/Address.java | 18 +- .../hl7/fhir/dstu3/model/AdverseEvent.java | 10 +- .../fhir/dstu3/model/AllergyIntolerance.java | 20 +-- .../org/hl7/fhir/dstu3/model/Annotation.java | 4 +- .../org/hl7/fhir/dstu3/model/Appointment.java | 20 +-- .../fhir/dstu3/model/AppointmentResponse.java | 8 +- .../org/hl7/fhir/dstu3/model/Attachment.java | 16 +- .../org/hl7/fhir/dstu3/model/AuditEvent.java | 32 ++-- .../java/org/hl7/fhir/dstu3/model/Basic.java | 2 +- .../java/org/hl7/fhir/dstu3/model/Binary.java | 4 +- .../org/hl7/fhir/dstu3/model/BodySite.java | 4 +- .../java/org/hl7/fhir/dstu3/model/Bundle.java | 34 ++-- .../fhir/dstu3/model/CapabilityStatement.java | 122 ++++++------- .../org/hl7/fhir/dstu3/model/CarePlan.java | 16 +- .../org/hl7/fhir/dstu3/model/CareTeam.java | 4 +- .../org/hl7/fhir/dstu3/model/ChargeItem.java | 10 +- .../java/org/hl7/fhir/dstu3/model/Claim.java | 48 ++--- .../hl7/fhir/dstu3/model/ClaimResponse.java | 46 ++--- .../fhir/dstu3/model/ClinicalImpression.java | 12 +- .../org/hl7/fhir/dstu3/model/CodeSystem.java | 64 +++---- .../hl7/fhir/dstu3/model/CodeableConcept.java | 2 +- .../java/org/hl7/fhir/dstu3/model/Coding.java | 10 +- .../hl7/fhir/dstu3/model/Communication.java | 8 +- .../dstu3/model/CommunicationRequest.java | 6 +- .../dstu3/model/CompartmentDefinition.java | 28 +-- .../org/hl7/fhir/dstu3/model/Composition.java | 18 +- .../org/hl7/fhir/dstu3/model/ConceptMap.java | 58 +++--- .../org/hl7/fhir/dstu3/model/Condition.java | 6 +- .../org/hl7/fhir/dstu3/model/Consent.java | 16 +- .../hl7/fhir/dstu3/model/ContactDetail.java | 2 +- .../hl7/fhir/dstu3/model/ContactPoint.java | 8 +- .../org/hl7/fhir/dstu3/model/Contract.java | 20 +-- .../org/hl7/fhir/dstu3/model/Contributor.java | 4 +- .../org/hl7/fhir/dstu3/model/Coverage.java | 36 ++-- .../org/hl7/fhir/dstu3/model/DataElement.java | 28 +-- .../hl7/fhir/dstu3/model/DataRequirement.java | 12 +- .../hl7/fhir/dstu3/model/DetectedIssue.java | 12 +- .../java/org/hl7/fhir/dstu3/model/Device.java | 30 ++-- .../hl7/fhir/dstu3/model/DeviceComponent.java | 6 +- .../hl7/fhir/dstu3/model/DeviceMetric.java | 12 +- .../hl7/fhir/dstu3/model/DeviceRequest.java | 6 +- .../fhir/dstu3/model/DeviceUseStatement.java | 4 +- .../fhir/dstu3/model/DiagnosticReport.java | 8 +- .../fhir/dstu3/model/DocumentManifest.java | 8 +- .../fhir/dstu3/model/DocumentReference.java | 12 +- .../java/org/hl7/fhir/dstu3/model/Dosage.java | 6 +- .../org/hl7/fhir/dstu3/model/Element.java | 2 +- .../fhir/dstu3/model/ElementDefinition.java | 92 +++++----- .../fhir/dstu3/model/EligibilityRequest.java | 6 +- .../fhir/dstu3/model/EligibilityResponse.java | 14 +- .../org/hl7/fhir/dstu3/model/Encounter.java | 8 +- .../org/hl7/fhir/dstu3/model/Endpoint.java | 10 +- .../fhir/dstu3/model/EnrollmentRequest.java | 4 +- .../fhir/dstu3/model/EnrollmentResponse.java | 6 +- .../hl7/fhir/dstu3/model/EpisodeOfCare.java | 6 +- .../fhir/dstu3/model/ExpansionProfile.java | 46 ++--- .../dstu3/model/ExplanationOfBenefit.java | 70 ++++---- .../org/hl7/fhir/dstu3/model/Extension.java | 2 +- .../fhir/dstu3/model/FamilyMemberHistory.java | 12 +- .../java/org/hl7/fhir/dstu3/model/Flag.java | 2 +- .../java/org/hl7/fhir/dstu3/model/Goal.java | 6 +- .../hl7/fhir/dstu3/model/GraphDefinition.java | 44 ++--- .../java/org/hl7/fhir/dstu3/model/Group.java | 14 +- .../fhir/dstu3/model/GuidanceResponse.java | 6 +- .../fhir/dstu3/model/HealthcareService.java | 26 +-- .../org/hl7/fhir/dstu3/model/HumanName.java | 12 +- .../org/hl7/fhir/dstu3/model/Identifier.java | 6 +- .../hl7/fhir/dstu3/model/ImagingManifest.java | 12 +- .../hl7/fhir/dstu3/model/ImagingStudy.java | 32 ++-- .../hl7/fhir/dstu3/model/Immunization.java | 24 +-- .../model/ImmunizationRecommendation.java | 12 +- .../fhir/dstu3/model/ImplementationGuide.java | 52 +++--- .../org/hl7/fhir/dstu3/model/Library.java | 28 +-- .../org/hl7/fhir/dstu3/model/Linkage.java | 4 +- .../hl7/fhir/dstu3/model/ListResource.java | 12 +- .../org/hl7/fhir/dstu3/model/Location.java | 16 +- .../org/hl7/fhir/dstu3/model/Measure.java | 64 +++---- .../hl7/fhir/dstu3/model/MeasureReport.java | 16 +- .../java/org/hl7/fhir/dstu3/model/Media.java | 10 +- .../org/hl7/fhir/dstu3/model/Medication.java | 12 +- .../dstu3/model/MedicationAdministration.java | 6 +- .../fhir/dstu3/model/MedicationDispense.java | 10 +- .../fhir/dstu3/model/MedicationRequest.java | 12 +- .../fhir/dstu3/model/MedicationStatement.java | 6 +- .../fhir/dstu3/model/MessageDefinition.java | 34 ++-- .../hl7/fhir/dstu3/model/MessageHeader.java | 18 +- .../java/org/hl7/fhir/dstu3/model/Meta.java | 6 +- .../fhir/dstu3/model/MetadataResource.java | 18 +- .../hl7/fhir/dstu3/model/NamingSystem.java | 24 +-- .../org/hl7/fhir/dstu3/model/Narrative.java | 2 +- .../hl7/fhir/dstu3/model/NutritionOrder.java | 16 +- .../org/hl7/fhir/dstu3/model/Observation.java | 10 +- .../fhir/dstu3/model/OperationDefinition.java | 54 +++--- .../fhir/dstu3/model/OperationOutcome.java | 10 +- .../hl7/fhir/dstu3/model/Organization.java | 6 +- .../fhir/dstu3/model/ParameterDefinition.java | 12 +- .../org/hl7/fhir/dstu3/model/Parameters.java | 2 +- .../org/hl7/fhir/dstu3/model/Patient.java | 12 +- .../hl7/fhir/dstu3/model/PaymentNotice.java | 6 +- .../dstu3/model/PaymentReconciliation.java | 10 +- .../java/org/hl7/fhir/dstu3/model/Period.java | 4 +- .../java/org/hl7/fhir/dstu3/model/Person.java | 8 +- .../hl7/fhir/dstu3/model/PlanDefinition.java | 70 ++++---- .../hl7/fhir/dstu3/model/Practitioner.java | 6 +- .../fhir/dstu3/model/PractitionerRole.java | 14 +- .../org/hl7/fhir/dstu3/model/Procedure.java | 4 +- .../fhir/dstu3/model/ProcedureRequest.java | 10 +- .../hl7/fhir/dstu3/model/ProcessRequest.java | 16 +- .../hl7/fhir/dstu3/model/ProcessResponse.java | 8 +- .../org/hl7/fhir/dstu3/model/Provenance.java | 6 +- .../org/hl7/fhir/dstu3/model/Quantity.java | 10 +- .../hl7/fhir/dstu3/model/Questionnaire.java | 50 +++--- .../dstu3/model/QuestionnaireResponse.java | 10 +- .../org/hl7/fhir/dstu3/model/Reference.java | 4 +- .../hl7/fhir/dstu3/model/ReferralRequest.java | 10 +- .../hl7/fhir/dstu3/model/RelatedArtifact.java | 8 +- .../hl7/fhir/dstu3/model/RelatedPerson.java | 6 +- .../hl7/fhir/dstu3/model/RequestGroup.java | 38 ++-- .../hl7/fhir/dstu3/model/ResearchStudy.java | 10 +- .../hl7/fhir/dstu3/model/ResearchSubject.java | 6 +- .../org/hl7/fhir/dstu3/model/Resource.java | 6 +- .../hl7/fhir/dstu3/model/RiskAssessment.java | 10 +- .../org/hl7/fhir/dstu3/model/SampledData.java | 12 +- .../org/hl7/fhir/dstu3/model/Schedule.java | 4 +- .../hl7/fhir/dstu3/model/SearchParameter.java | 42 ++--- .../org/hl7/fhir/dstu3/model/Sequence.java | 62 +++---- .../fhir/dstu3/model/ServiceDefinition.java | 28 +-- .../org/hl7/fhir/dstu3/model/Signature.java | 6 +- .../java/org/hl7/fhir/dstu3/model/Slot.java | 10 +- .../org/hl7/fhir/dstu3/model/Specimen.java | 8 +- .../fhir/dstu3/model/StructureDefinition.java | 48 ++--- .../hl7/fhir/dstu3/model/StructureMap.java | 88 +++++----- .../hl7/fhir/dstu3/model/Subscription.java | 18 +- .../org/hl7/fhir/dstu3/model/Substance.java | 6 +- .../hl7/fhir/dstu3/model/SupplyDelivery.java | 2 +- .../hl7/fhir/dstu3/model/SupplyRequest.java | 6 +- .../java/org/hl7/fhir/dstu3/model/Task.java | 14 +- .../org/hl7/fhir/dstu3/model/TestReport.java | 34 ++-- .../org/hl7/fhir/dstu3/model/TestScript.java | 166 +++++++++--------- .../java/org/hl7/fhir/dstu3/model/Timing.java | 30 ++-- .../fhir/dstu3/model/TriggerDefinition.java | 4 +- .../org/hl7/fhir/dstu3/model/ValueSet.java | 72 ++++---- .../fhir/dstu3/model/VisionPrescription.java | 28 +-- .../java/org/hl7/fhir/r4/model/Account.java | 10 +- .../hl7/fhir/r4/model/ActivityDefinition.java | 48 ++--- .../java/org/hl7/fhir/r4/model/Address.java | 18 +- .../org/hl7/fhir/r4/model/AdverseEvent.java | 10 +- .../hl7/fhir/r4/model/AllergyIntolerance.java | 16 +- .../org/hl7/fhir/r4/model/Annotation.java | 4 +- .../org/hl7/fhir/r4/model/Appointment.java | 22 +-- .../fhir/r4/model/AppointmentResponse.java | 8 +- .../org/hl7/fhir/r4/model/Attachment.java | 16 +- .../org/hl7/fhir/r4/model/AuditEvent.java | 30 ++-- .../java/org/hl7/fhir/r4/model/Basic.java | 2 +- .../java/org/hl7/fhir/r4/model/Binary.java | 4 +- .../r4/model/BiologicallyDerivedProduct.java | 16 +- .../org/hl7/fhir/r4/model/BodyStructure.java | 4 +- .../java/org/hl7/fhir/r4/model/Bundle.java | 36 ++-- .../fhir/r4/model/CapabilityStatement.java | 122 ++++++------- .../java/org/hl7/fhir/r4/model/CarePlan.java | 26 +-- .../java/org/hl7/fhir/r4/model/CareTeam.java | 4 +- .../org/hl7/fhir/r4/model/CatalogEntry.java | 10 +- .../org/hl7/fhir/r4/model/ChargeItem.java | 12 +- .../fhir/r4/model/ChargeItemDefinition.java | 38 ++-- .../java/org/hl7/fhir/r4/model/Claim.java | 48 ++--- .../org/hl7/fhir/r4/model/ClaimResponse.java | 64 +++---- .../hl7/fhir/r4/model/ClinicalImpression.java | 12 +- .../org/hl7/fhir/r4/model/CodeSystem.java | 66 +++---- .../hl7/fhir/r4/model/CodeableConcept.java | 2 +- .../java/org/hl7/fhir/r4/model/Coding.java | 10 +- .../org/hl7/fhir/r4/model/Communication.java | 12 +- .../fhir/r4/model/CommunicationRequest.java | 8 +- .../fhir/r4/model/CompartmentDefinition.java | 28 +-- .../org/hl7/fhir/r4/model/Composition.java | 18 +- .../org/hl7/fhir/r4/model/ConceptMap.java | 58 +++--- .../java/org/hl7/fhir/r4/model/Condition.java | 2 +- .../java/org/hl7/fhir/r4/model/Consent.java | 16 +- .../org/hl7/fhir/r4/model/ContactDetail.java | 2 +- .../org/hl7/fhir/r4/model/ContactPoint.java | 8 +- .../java/org/hl7/fhir/r4/model/Contract.java | 76 ++++---- .../org/hl7/fhir/r4/model/Contributor.java | 4 +- .../java/org/hl7/fhir/r4/model/Coverage.java | 16 +- .../r4/model/CoverageEligibilityRequest.java | 16 +- .../r4/model/CoverageEligibilityResponse.java | 24 +-- .../hl7/fhir/r4/model/DataRequirement.java | 22 +-- .../org/hl7/fhir/r4/model/DetectedIssue.java | 10 +- .../java/org/hl7/fhir/r4/model/Device.java | 40 ++--- .../hl7/fhir/r4/model/DeviceDefinition.java | 26 +-- .../org/hl7/fhir/r4/model/DeviceMetric.java | 12 +- .../org/hl7/fhir/r4/model/DeviceRequest.java | 12 +- .../hl7/fhir/r4/model/DeviceUseStatement.java | 4 +- .../hl7/fhir/r4/model/DiagnosticReport.java | 8 +- .../hl7/fhir/r4/model/DocumentManifest.java | 8 +- .../hl7/fhir/r4/model/DocumentReference.java | 10 +- .../java/org/hl7/fhir/r4/model/Dosage.java | 6 +- .../r4/model/EffectEvidenceSynthesis.java | 42 ++--- .../java/org/hl7/fhir/r4/model/Element.java | 2 +- .../hl7/fhir/r4/model/ElementDefinition.java | 98 +++++------ .../java/org/hl7/fhir/r4/model/Encounter.java | 8 +- .../java/org/hl7/fhir/r4/model/Endpoint.java | 10 +- .../hl7/fhir/r4/model/EnrollmentRequest.java | 4 +- .../hl7/fhir/r4/model/EnrollmentResponse.java | 8 +- .../org/hl7/fhir/r4/model/EpisodeOfCare.java | 6 +- .../hl7/fhir/r4/model/EventDefinition.java | 30 ++-- .../java/org/hl7/fhir/r4/model/Evidence.java | 26 +-- .../hl7/fhir/r4/model/EvidenceVariable.java | 34 ++-- .../hl7/fhir/r4/model/ExampleScenario.java | 74 ++++---- .../fhir/r4/model/ExplanationOfBenefit.java | 92 +++++----- .../org/hl7/fhir/r4/model/Expression.java | 10 +- .../java/org/hl7/fhir/r4/model/Extension.java | 2 +- .../fhir/r4/model/FamilyMemberHistory.java | 14 +- .../main/java/org/hl7/fhir/r4/model/Flag.java | 2 +- .../main/java/org/hl7/fhir/r4/model/Goal.java | 6 +- .../hl7/fhir/r4/model/GraphDefinition.java | 48 ++--- .../java/org/hl7/fhir/r4/model/Group.java | 14 +- .../hl7/fhir/r4/model/GuidanceResponse.java | 4 +- .../hl7/fhir/r4/model/HealthcareService.java | 24 +-- .../java/org/hl7/fhir/r4/model/HumanName.java | 12 +- .../org/hl7/fhir/r4/model/Identifier.java | 6 +- .../org/hl7/fhir/r4/model/ImagingStudy.java | 26 +-- .../org/hl7/fhir/r4/model/Immunization.java | 26 +-- .../fhir/r4/model/ImmunizationEvaluation.java | 8 +- .../r4/model/ImmunizationRecommendation.java | 8 +- .../fhir/r4/model/ImplementationGuide.java | 76 ++++---- .../org/hl7/fhir/r4/model/InsurancePlan.java | 12 +- .../java/org/hl7/fhir/r4/model/Invoice.java | 14 +- .../java/org/hl7/fhir/r4/model/Library.java | 30 ++-- .../java/org/hl7/fhir/r4/model/Linkage.java | 4 +- .../org/hl7/fhir/r4/model/ListResource.java | 12 +- .../java/org/hl7/fhir/r4/model/Location.java | 26 +-- .../hl7/fhir/r4/model/MarketingStatus.java | 2 +- .../java/org/hl7/fhir/r4/model/Measure.java | 56 +++--- .../org/hl7/fhir/r4/model/MeasureReport.java | 12 +- .../java/org/hl7/fhir/r4/model/Media.java | 14 +- .../org/hl7/fhir/r4/model/Medication.java | 8 +- .../r4/model/MedicationAdministration.java | 6 +- .../hl7/fhir/r4/model/MedicationDispense.java | 8 +- .../fhir/r4/model/MedicationKnowledge.java | 16 +- .../hl7/fhir/r4/model/MedicationRequest.java | 16 +- .../fhir/r4/model/MedicationStatement.java | 4 +- .../hl7/fhir/r4/model/MedicinalProduct.java | 10 +- .../model/MedicinalProductAuthorization.java | 8 +- .../r4/model/MedicinalProductIngredient.java | 6 +- .../r4/model/MedicinalProductInteraction.java | 2 +- .../r4/model/MedicinalProductPackaged.java | 2 +- .../model/MedicinalProductPharmaceutical.java | 2 +- .../hl7/fhir/r4/model/MessageDefinition.java | 46 ++--- .../org/hl7/fhir/r4/model/MessageHeader.java | 18 +- .../main/java/org/hl7/fhir/r4/model/Meta.java | 8 +- .../hl7/fhir/r4/model/MetadataResource.java | 18 +- .../hl7/fhir/r4/model/MolecularSequence.java | 90 +++++----- .../java/org/hl7/fhir/r4/model/Money.java | 4 +- .../org/hl7/fhir/r4/model/NamingSystem.java | 24 +-- .../java/org/hl7/fhir/r4/model/Narrative.java | 2 +- .../org/hl7/fhir/r4/model/NutritionOrder.java | 24 +-- .../org/hl7/fhir/r4/model/Observation.java | 6 +- .../fhir/r4/model/ObservationDefinition.java | 16 +- .../fhir/r4/model/OperationDefinition.java | 70 ++++---- .../hl7/fhir/r4/model/OperationOutcome.java | 10 +- .../org/hl7/fhir/r4/model/Organization.java | 6 +- .../r4/model/OrganizationAffiliation.java | 2 +- .../fhir/r4/model/ParameterDefinition.java | 14 +- .../org/hl7/fhir/r4/model/Parameters.java | 2 +- .../java/org/hl7/fhir/r4/model/Patient.java | 12 +- .../org/hl7/fhir/r4/model/PaymentNotice.java | 6 +- .../fhir/r4/model/PaymentReconciliation.java | 16 +- .../java/org/hl7/fhir/r4/model/Period.java | 4 +- .../java/org/hl7/fhir/r4/model/Person.java | 8 +- .../org/hl7/fhir/r4/model/PlanDefinition.java | 70 ++++---- .../org/hl7/fhir/r4/model/Practitioner.java | 6 +- .../hl7/fhir/r4/model/PractitionerRole.java | 14 +- .../java/org/hl7/fhir/r4/model/Procedure.java | 6 +- .../hl7/fhir/r4/model/ProdCharacteristic.java | 6 +- .../org/hl7/fhir/r4/model/Provenance.java | 6 +- .../java/org/hl7/fhir/r4/model/Quantity.java | 10 +- .../org/hl7/fhir/r4/model/Questionnaire.java | 58 +++--- .../fhir/r4/model/QuestionnaireResponse.java | 12 +- .../java/org/hl7/fhir/r4/model/Reference.java | 6 +- .../hl7/fhir/r4/model/RelatedArtifact.java | 12 +- .../org/hl7/fhir/r4/model/RelatedPerson.java | 8 +- .../org/hl7/fhir/r4/model/RequestGroup.java | 38 ++-- .../hl7/fhir/r4/model/ResearchDefinition.java | 36 ++-- .../r4/model/ResearchElementDefinition.java | 50 +++--- .../org/hl7/fhir/r4/model/ResearchStudy.java | 12 +- .../hl7/fhir/r4/model/ResearchSubject.java | 6 +- .../java/org/hl7/fhir/r4/model/Resource.java | 6 +- .../org/hl7/fhir/r4/model/RiskAssessment.java | 8 +- .../fhir/r4/model/RiskEvidenceSynthesis.java | 42 ++--- .../org/hl7/fhir/r4/model/SampledData.java | 12 +- .../java/org/hl7/fhir/r4/model/Schedule.java | 4 +- .../hl7/fhir/r4/model/SearchParameter.java | 48 ++--- .../org/hl7/fhir/r4/model/ServiceRequest.java | 16 +- .../java/org/hl7/fhir/r4/model/Signature.java | 8 +- .../main/java/org/hl7/fhir/r4/model/Slot.java | 10 +- .../java/org/hl7/fhir/r4/model/Specimen.java | 8 +- .../hl7/fhir/r4/model/SpecimenDefinition.java | 14 +- .../fhir/r4/model/StructureDefinition.java | 48 ++--- .../org/hl7/fhir/r4/model/StructureMap.java | 90 +++++----- .../org/hl7/fhir/r4/model/Subscription.java | 18 +- .../java/org/hl7/fhir/r4/model/Substance.java | 6 +- .../hl7/fhir/r4/model/SubstanceAmount.java | 2 +- .../fhir/r4/model/SubstanceNucleicAcid.java | 20 +-- .../hl7/fhir/r4/model/SubstancePolymer.java | 12 +- .../hl7/fhir/r4/model/SubstanceProtein.java | 14 +- .../model/SubstanceReferenceInformation.java | 2 +- .../r4/model/SubstanceSourceMaterial.java | 20 +-- .../fhir/r4/model/SubstanceSpecification.java | 28 +-- .../org/hl7/fhir/r4/model/SupplyDelivery.java | 2 +- .../org/hl7/fhir/r4/model/SupplyRequest.java | 6 +- .../main/java/org/hl7/fhir/r4/model/Task.java | 18 +- .../r4/model/TerminologyCapabilities.java | 72 ++++---- .../org/hl7/fhir/r4/model/TestReport.java | 34 ++-- .../org/hl7/fhir/r4/model/TestScript.java | 146 +++++++-------- .../java/org/hl7/fhir/r4/model/Timing.java | 30 ++-- .../hl7/fhir/r4/model/TriggerDefinition.java | 4 +- .../java/org/hl7/fhir/r4/model/ValueSet.java | 70 ++++---- .../hl7/fhir/r4/model/VerificationResult.java | 20 +-- .../hl7/fhir/r4/model/VisionPrescription.java | 30 ++-- .../java/org/hl7/fhir/r4b/model/Account.java | 10 +- .../fhir/r4b/model/ActivityDefinition.java | 48 ++--- .../java/org/hl7/fhir/r4b/model/Address.java | 18 +- .../model/AdministrableProductDefinition.java | 4 +- .../org/hl7/fhir/r4b/model/AdverseEvent.java | 10 +- .../fhir/r4b/model/AllergyIntolerance.java | 16 +- .../org/hl7/fhir/r4b/model/Annotation.java | 4 +- .../org/hl7/fhir/r4b/model/Appointment.java | 22 +-- .../fhir/r4b/model/AppointmentResponse.java | 8 +- .../org/hl7/fhir/r4b/model/Attachment.java | 16 +- .../org/hl7/fhir/r4b/model/AuditEvent.java | 30 ++-- .../java/org/hl7/fhir/r4b/model/Basic.java | 2 +- .../java/org/hl7/fhir/r4b/model/Binary.java | 4 +- .../r4b/model/BiologicallyDerivedProduct.java | 16 +- .../org/hl7/fhir/r4b/model/BodyStructure.java | 4 +- .../java/org/hl7/fhir/r4b/model/Bundle.java | 36 ++-- .../fhir/r4b/model/CapabilityStatement.java | 122 ++++++------- .../java/org/hl7/fhir/r4b/model/CarePlan.java | 26 +-- .../java/org/hl7/fhir/r4b/model/CareTeam.java | 4 +- .../org/hl7/fhir/r4b/model/CatalogEntry.java | 10 +- .../org/hl7/fhir/r4b/model/ChargeItem.java | 12 +- .../fhir/r4b/model/ChargeItemDefinition.java | 38 ++-- .../java/org/hl7/fhir/r4b/model/Citation.java | 102 +++++------ .../java/org/hl7/fhir/r4b/model/Claim.java | 48 ++--- .../org/hl7/fhir/r4b/model/ClaimResponse.java | 64 +++---- .../fhir/r4b/model/ClinicalImpression.java | 12 +- .../fhir/r4b/model/ClinicalUseDefinition.java | 4 +- .../org/hl7/fhir/r4b/model/CodeSystem.java | 66 +++---- .../hl7/fhir/r4b/model/CodeableConcept.java | 2 +- .../java/org/hl7/fhir/r4b/model/Coding.java | 10 +- .../org/hl7/fhir/r4b/model/Communication.java | 12 +- .../fhir/r4b/model/CommunicationRequest.java | 8 +- .../fhir/r4b/model/CompartmentDefinition.java | 28 +-- .../org/hl7/fhir/r4b/model/Composition.java | 18 +- .../org/hl7/fhir/r4b/model/ConceptMap.java | 58 +++--- .../org/hl7/fhir/r4b/model/Condition.java | 2 +- .../java/org/hl7/fhir/r4b/model/Consent.java | 16 +- .../org/hl7/fhir/r4b/model/ContactDetail.java | 2 +- .../org/hl7/fhir/r4b/model/ContactPoint.java | 8 +- .../java/org/hl7/fhir/r4b/model/Contract.java | 76 ++++---- .../org/hl7/fhir/r4b/model/Contributor.java | 4 +- .../java/org/hl7/fhir/r4b/model/Coverage.java | 16 +- .../r4b/model/CoverageEligibilityRequest.java | 16 +- .../model/CoverageEligibilityResponse.java | 24 +-- .../hl7/fhir/r4b/model/DataRequirement.java | 22 +-- .../org/hl7/fhir/r4b/model/DetectedIssue.java | 10 +- .../java/org/hl7/fhir/r4b/model/Device.java | 40 ++--- .../hl7/fhir/r4b/model/DeviceDefinition.java | 26 +-- .../org/hl7/fhir/r4b/model/DeviceMetric.java | 12 +- .../org/hl7/fhir/r4b/model/DeviceRequest.java | 12 +- .../fhir/r4b/model/DeviceUseStatement.java | 4 +- .../hl7/fhir/r4b/model/DiagnosticReport.java | 8 +- .../hl7/fhir/r4b/model/DocumentManifest.java | 8 +- .../hl7/fhir/r4b/model/DocumentReference.java | 10 +- .../java/org/hl7/fhir/r4b/model/Dosage.java | 6 +- .../java/org/hl7/fhir/r4b/model/Element.java | 2 +- .../hl7/fhir/r4b/model/ElementDefinition.java | 98 +++++------ .../org/hl7/fhir/r4b/model/Encounter.java | 8 +- .../java/org/hl7/fhir/r4b/model/Endpoint.java | 10 +- .../hl7/fhir/r4b/model/EnrollmentRequest.java | 4 +- .../fhir/r4b/model/EnrollmentResponse.java | 8 +- .../org/hl7/fhir/r4b/model/EpisodeOfCare.java | 6 +- .../hl7/fhir/r4b/model/EventDefinition.java | 30 ++-- .../java/org/hl7/fhir/r4b/model/Evidence.java | 46 ++--- .../hl7/fhir/r4b/model/EvidenceReport.java | 14 +- .../hl7/fhir/r4b/model/EvidenceVariable.java | 36 ++-- .../hl7/fhir/r4b/model/ExampleScenario.java | 74 ++++---- .../fhir/r4b/model/ExplanationOfBenefit.java | 92 +++++----- .../org/hl7/fhir/r4b/model/Expression.java | 10 +- .../org/hl7/fhir/r4b/model/Extension.java | 2 +- .../fhir/r4b/model/FamilyMemberHistory.java | 14 +- .../java/org/hl7/fhir/r4b/model/Flag.java | 2 +- .../java/org/hl7/fhir/r4b/model/Goal.java | 6 +- .../hl7/fhir/r4b/model/GraphDefinition.java | 48 ++--- .../java/org/hl7/fhir/r4b/model/Group.java | 14 +- .../hl7/fhir/r4b/model/GuidanceResponse.java | 4 +- .../hl7/fhir/r4b/model/HealthcareService.java | 24 +-- .../org/hl7/fhir/r4b/model/HumanName.java | 12 +- .../org/hl7/fhir/r4b/model/Identifier.java | 6 +- .../org/hl7/fhir/r4b/model/ImagingStudy.java | 26 +-- .../org/hl7/fhir/r4b/model/Immunization.java | 26 +-- .../r4b/model/ImmunizationEvaluation.java | 8 +- .../r4b/model/ImmunizationRecommendation.java | 8 +- .../fhir/r4b/model/ImplementationGuide.java | 76 ++++---- .../org/hl7/fhir/r4b/model/Ingredient.java | 12 +- .../org/hl7/fhir/r4b/model/InsurancePlan.java | 12 +- .../java/org/hl7/fhir/r4b/model/Invoice.java | 14 +- .../java/org/hl7/fhir/r4b/model/Library.java | 30 ++-- .../java/org/hl7/fhir/r4b/model/Linkage.java | 4 +- .../org/hl7/fhir/r4b/model/ListResource.java | 12 +- .../java/org/hl7/fhir/r4b/model/Location.java | 26 +-- .../r4b/model/ManufacturedItemDefinition.java | 2 +- .../hl7/fhir/r4b/model/MarketingStatus.java | 2 +- .../java/org/hl7/fhir/r4b/model/Measure.java | 56 +++--- .../org/hl7/fhir/r4b/model/MeasureReport.java | 12 +- .../java/org/hl7/fhir/r4b/model/Media.java | 14 +- .../org/hl7/fhir/r4b/model/Medication.java | 8 +- .../r4b/model/MedicationAdministration.java | 6 +- .../fhir/r4b/model/MedicationDispense.java | 8 +- .../fhir/r4b/model/MedicationKnowledge.java | 16 +- .../hl7/fhir/r4b/model/MedicationRequest.java | 16 +- .../fhir/r4b/model/MedicationStatement.java | 4 +- .../r4b/model/MedicinalProductDefinition.java | 12 +- .../hl7/fhir/r4b/model/MessageDefinition.java | 46 ++--- .../org/hl7/fhir/r4b/model/MessageHeader.java | 18 +- .../java/org/hl7/fhir/r4b/model/Meta.java | 8 +- .../hl7/fhir/r4b/model/MolecularSequence.java | 90 +++++----- .../java/org/hl7/fhir/r4b/model/Money.java | 4 +- .../org/hl7/fhir/r4b/model/NamingSystem.java | 24 +-- .../org/hl7/fhir/r4b/model/Narrative.java | 2 +- .../hl7/fhir/r4b/model/NutritionOrder.java | 24 +-- .../hl7/fhir/r4b/model/NutritionProduct.java | 8 +- .../org/hl7/fhir/r4b/model/Observation.java | 6 +- .../fhir/r4b/model/ObservationDefinition.java | 16 +- .../fhir/r4b/model/OperationDefinition.java | 70 ++++---- .../hl7/fhir/r4b/model/OperationOutcome.java | 10 +- .../fhir/r4b/model/OrderedDistribution.java | 6 +- .../org/hl7/fhir/r4b/model/Organization.java | 6 +- .../r4b/model/OrganizationAffiliation.java | 2 +- .../r4b/model/PackagedProductDefinition.java | 10 +- .../fhir/r4b/model/ParameterDefinition.java | 14 +- .../org/hl7/fhir/r4b/model/Parameters.java | 2 +- .../java/org/hl7/fhir/r4b/model/Patient.java | 12 +- .../org/hl7/fhir/r4b/model/PaymentNotice.java | 6 +- .../fhir/r4b/model/PaymentReconciliation.java | 16 +- .../java/org/hl7/fhir/r4b/model/Period.java | 4 +- .../java/org/hl7/fhir/r4b/model/Person.java | 8 +- .../hl7/fhir/r4b/model/PlanDefinition.java | 66 +++---- .../org/hl7/fhir/r4b/model/Practitioner.java | 6 +- .../hl7/fhir/r4b/model/PractitionerRole.java | 14 +- .../org/hl7/fhir/r4b/model/Procedure.java | 6 +- .../fhir/r4b/model/ProdCharacteristic.java | 6 +- .../org/hl7/fhir/r4b/model/Provenance.java | 6 +- .../java/org/hl7/fhir/r4b/model/Quantity.java | 10 +- .../org/hl7/fhir/r4b/model/Questionnaire.java | 58 +++--- .../fhir/r4b/model/QuestionnaireResponse.java | 12 +- .../org/hl7/fhir/r4b/model/Reference.java | 6 +- .../r4b/model/RegulatedAuthorization.java | 4 +- .../hl7/fhir/r4b/model/RelatedArtifact.java | 12 +- .../org/hl7/fhir/r4b/model/RelatedPerson.java | 8 +- .../org/hl7/fhir/r4b/model/RequestGroup.java | 38 ++-- .../fhir/r4b/model/ResearchDefinition.java | 36 ++-- .../r4b/model/ResearchElementDefinition.java | 50 +++--- .../org/hl7/fhir/r4b/model/ResearchStudy.java | 12 +- .../hl7/fhir/r4b/model/ResearchSubject.java | 6 +- .../java/org/hl7/fhir/r4b/model/Resource.java | 6 +- .../hl7/fhir/r4b/model/RiskAssessment.java | 8 +- .../org/hl7/fhir/r4b/model/SampledData.java | 12 +- .../java/org/hl7/fhir/r4b/model/Schedule.java | 4 +- .../hl7/fhir/r4b/model/SearchParameter.java | 48 ++--- .../hl7/fhir/r4b/model/ServiceRequest.java | 16 +- .../org/hl7/fhir/r4b/model/Signature.java | 8 +- .../java/org/hl7/fhir/r4b/model/Slot.java | 10 +- .../java/org/hl7/fhir/r4b/model/Specimen.java | 8 +- .../fhir/r4b/model/SpecimenDefinition.java | 14 +- .../org/hl7/fhir/r4b/model/Statistic.java | 24 +-- .../fhir/r4b/model/StructureDefinition.java | 48 ++--- .../org/hl7/fhir/r4b/model/StructureMap.java | 90 +++++----- .../org/hl7/fhir/r4b/model/Subscription.java | 18 +- .../fhir/r4b/model/SubscriptionStatus.java | 14 +- .../hl7/fhir/r4b/model/SubscriptionTopic.java | 62 +++---- .../org/hl7/fhir/r4b/model/Substance.java | 6 +- .../hl7/fhir/r4b/model/SubstanceAmount.java | 2 +- .../fhir/r4b/model/SubstanceDefinition.java | 24 +-- .../hl7/fhir/r4b/model/SupplyDelivery.java | 2 +- .../org/hl7/fhir/r4b/model/SupplyRequest.java | 6 +- .../java/org/hl7/fhir/r4b/model/Task.java | 18 +- .../r4b/model/TerminologyCapabilities.java | 72 ++++---- .../org/hl7/fhir/r4b/model/TestReport.java | 34 ++-- .../org/hl7/fhir/r4b/model/TestScript.java | 146 +++++++-------- .../java/org/hl7/fhir/r4b/model/Timing.java | 30 ++-- .../hl7/fhir/r4b/model/TriggerDefinition.java | 4 +- .../java/org/hl7/fhir/r4b/model/ValueSet.java | 70 ++++---- .../fhir/r4b/model/VerificationResult.java | 20 +-- .../fhir/r4b/model/VisionPrescription.java | 30 ++-- .../java/org/hl7/fhir/r5/model/Account.java | 24 +-- .../hl7/fhir/r5/model/ActivityDefinition.java | 58 +++--- .../hl7/fhir/r5/model/ActorDefinition.java | 34 ++-- .../java/org/hl7/fhir/r5/model/Address.java | 18 +- .../model/AdministrableProductDefinition.java | 6 +- .../org/hl7/fhir/r5/model/AdverseEvent.java | 10 +- .../hl7/fhir/r5/model/AllergyIntolerance.java | 14 +- .../org/hl7/fhir/r5/model/Annotation.java | 4 +- .../org/hl7/fhir/r5/model/Appointment.java | 54 +++--- .../fhir/r5/model/AppointmentResponse.java | 16 +- .../hl7/fhir/r5/model/ArtifactAssessment.java | 22 +-- .../org/hl7/fhir/r5/model/Attachment.java | 26 +-- .../org/hl7/fhir/r5/model/AuditEvent.java | 12 +- .../org/hl7/fhir/r5/model/Availability.java | 10 +- .../java/org/hl7/fhir/r5/model/Basic.java | 2 +- .../java/org/hl7/fhir/r5/model/Binary.java | 4 +- .../r5/model/BiologicallyDerivedProduct.java | 4 +- .../BiologicallyDerivedProductDispense.java | 8 +- .../org/hl7/fhir/r5/model/BodyStructure.java | 4 +- .../java/org/hl7/fhir/r5/model/Bundle.java | 36 ++-- .../fhir/r5/model/CapabilityStatement.java | 128 +++++++------- .../java/org/hl7/fhir/r5/model/CarePlan.java | 14 +- .../java/org/hl7/fhir/r5/model/CareTeam.java | 4 +- .../org/hl7/fhir/r5/model/ChargeItem.java | 8 +- .../fhir/r5/model/ChargeItemDefinition.java | 34 ++-- .../java/org/hl7/fhir/r5/model/Citation.java | 98 +++++------ .../java/org/hl7/fhir/r5/model/Claim.java | 48 ++--- .../org/hl7/fhir/r5/model/ClaimResponse.java | 64 +++---- .../hl7/fhir/r5/model/ClinicalImpression.java | 12 +- .../fhir/r5/model/ClinicalUseDefinition.java | 6 +- .../org/hl7/fhir/r5/model/CodeSystem.java | 72 ++++---- .../hl7/fhir/r5/model/CodeableConcept.java | 2 +- .../java/org/hl7/fhir/r5/model/Coding.java | 10 +- .../org/hl7/fhir/r5/model/Communication.java | 12 +- .../fhir/r5/model/CommunicationRequest.java | 10 +- .../fhir/r5/model/CompartmentDefinition.java | 34 ++-- .../org/hl7/fhir/r5/model/Composition.java | 16 +- .../org/hl7/fhir/r5/model/ConceptMap.java | 86 ++++----- .../java/org/hl7/fhir/r5/model/Condition.java | 2 +- .../fhir/r5/model/ConditionDefinition.java | 32 ++-- .../java/org/hl7/fhir/r5/model/Consent.java | 14 +- .../org/hl7/fhir/r5/model/ContactDetail.java | 2 +- .../org/hl7/fhir/r5/model/ContactPoint.java | 8 +- .../java/org/hl7/fhir/r5/model/Contract.java | 74 ++++---- .../org/hl7/fhir/r5/model/Contributor.java | 4 +- .../java/org/hl7/fhir/r5/model/Coverage.java | 16 +- .../r5/model/CoverageEligibilityRequest.java | 16 +- .../r5/model/CoverageEligibilityResponse.java | 26 +-- .../hl7/fhir/r5/model/DataRequirement.java | 28 +-- .../org/hl7/fhir/r5/model/DetectedIssue.java | 10 +- .../java/org/hl7/fhir/r5/model/Device.java | 44 ++--- .../hl7/fhir/r5/model/DeviceDefinition.java | 50 +++--- .../org/hl7/fhir/r5/model/DeviceDispense.java | 8 +- .../org/hl7/fhir/r5/model/DeviceMetric.java | 12 +- .../org/hl7/fhir/r5/model/DeviceRequest.java | 18 +- .../org/hl7/fhir/r5/model/DeviceUsage.java | 4 +- .../hl7/fhir/r5/model/DiagnosticReport.java | 8 +- .../hl7/fhir/r5/model/DocumentReference.java | 12 +- .../java/org/hl7/fhir/r5/model/Dosage.java | 8 +- .../java/org/hl7/fhir/r5/model/Element.java | 2 +- .../hl7/fhir/r5/model/ElementDefinition.java | 112 ++++++------ .../java/org/hl7/fhir/r5/model/Encounter.java | 8 +- .../hl7/fhir/r5/model/EncounterHistory.java | 6 +- .../java/org/hl7/fhir/r5/model/Endpoint.java | 12 +- .../hl7/fhir/r5/model/EnrollmentRequest.java | 4 +- .../hl7/fhir/r5/model/EnrollmentResponse.java | 8 +- .../org/hl7/fhir/r5/model/EpisodeOfCare.java | 4 +- .../hl7/fhir/r5/model/EventDefinition.java | 32 ++-- .../java/org/hl7/fhir/r5/model/Evidence.java | 56 +++--- .../org/hl7/fhir/r5/model/EvidenceReport.java | 18 +- .../hl7/fhir/r5/model/EvidenceVariable.java | 52 +++--- .../hl7/fhir/r5/model/ExampleScenario.java | 80 ++++----- .../fhir/r5/model/ExplanationOfBenefit.java | 90 +++++----- .../org/hl7/fhir/r5/model/Expression.java | 10 +- .../java/org/hl7/fhir/r5/model/Extension.java | 2 +- .../fhir/r5/model/FamilyMemberHistory.java | 16 +- .../main/java/org/hl7/fhir/r5/model/Flag.java | 2 +- .../org/hl7/fhir/r5/model/FormularyItem.java | 2 +- .../org/hl7/fhir/r5/model/GenomicStudy.java | 18 +- .../main/java/org/hl7/fhir/r5/model/Goal.java | 8 +- .../hl7/fhir/r5/model/GraphDefinition.java | 60 +++---- .../java/org/hl7/fhir/r5/model/Group.java | 16 +- .../hl7/fhir/r5/model/GuidanceResponse.java | 4 +- .../hl7/fhir/r5/model/HealthcareService.java | 12 +- .../java/org/hl7/fhir/r5/model/HumanName.java | 12 +- .../org/hl7/fhir/r5/model/Identifier.java | 6 +- .../hl7/fhir/r5/model/ImagingSelection.java | 26 +-- .../org/hl7/fhir/r5/model/ImagingStudy.java | 26 +-- .../org/hl7/fhir/r5/model/Immunization.java | 20 +-- .../fhir/r5/model/ImmunizationEvaluation.java | 12 +- .../r5/model/ImmunizationRecommendation.java | 12 +- .../fhir/r5/model/ImplementationGuide.java | 90 +++++----- .../org/hl7/fhir/r5/model/Ingredient.java | 16 +- .../org/hl7/fhir/r5/model/InsurancePlan.java | 12 +- .../org/hl7/fhir/r5/model/InventoryItem.java | 14 +- .../hl7/fhir/r5/model/InventoryReport.java | 8 +- .../java/org/hl7/fhir/r5/model/Invoice.java | 12 +- .../java/org/hl7/fhir/r5/model/Library.java | 32 ++-- .../java/org/hl7/fhir/r5/model/Linkage.java | 4 +- .../org/hl7/fhir/r5/model/ListResource.java | 12 +- .../java/org/hl7/fhir/r5/model/Location.java | 16 +- .../r5/model/ManufacturedItemDefinition.java | 4 +- .../hl7/fhir/r5/model/MarketingStatus.java | 2 +- .../java/org/hl7/fhir/r5/model/Measure.java | 78 ++++---- .../org/hl7/fhir/r5/model/MeasureReport.java | 24 +-- .../org/hl7/fhir/r5/model/Medication.java | 8 +- .../r5/model/MedicationAdministration.java | 8 +- .../hl7/fhir/r5/model/MedicationDispense.java | 14 +- .../fhir/r5/model/MedicationKnowledge.java | 14 +- .../hl7/fhir/r5/model/MedicationRequest.java | 18 +- .../fhir/r5/model/MedicationStatement.java | 6 +- .../r5/model/MedicinalProductDefinition.java | 12 +- .../hl7/fhir/r5/model/MessageDefinition.java | 48 ++--- .../org/hl7/fhir/r5/model/MessageHeader.java | 12 +- .../main/java/org/hl7/fhir/r5/model/Meta.java | 8 +- .../hl7/fhir/r5/model/MolecularSequence.java | 22 +-- .../hl7/fhir/r5/model/MonetaryComponent.java | 4 +- .../java/org/hl7/fhir/r5/model/Money.java | 4 +- .../org/hl7/fhir/r5/model/NamingSystem.java | 44 ++--- .../java/org/hl7/fhir/r5/model/Narrative.java | 2 +- .../hl7/fhir/r5/model/NutritionIntake.java | 10 +- .../org/hl7/fhir/r5/model/NutritionOrder.java | 34 ++-- .../hl7/fhir/r5/model/NutritionProduct.java | 10 +- .../org/hl7/fhir/r5/model/Observation.java | 10 +- .../fhir/r5/model/ObservationDefinition.java | 54 +++--- .../fhir/r5/model/OperationDefinition.java | 78 ++++---- .../hl7/fhir/r5/model/OperationOutcome.java | 10 +- .../fhir/r5/model/OrderedDistribution.java | 6 +- .../org/hl7/fhir/r5/model/Organization.java | 8 +- .../r5/model/OrganizationAffiliation.java | 2 +- .../r5/model/PackagedProductDefinition.java | 12 +- .../fhir/r5/model/ParameterDefinition.java | 14 +- .../org/hl7/fhir/r5/model/Parameters.java | 2 +- .../java/org/hl7/fhir/r5/model/Patient.java | 12 +- .../org/hl7/fhir/r5/model/PaymentNotice.java | 6 +- .../fhir/r5/model/PaymentReconciliation.java | 28 +-- .../java/org/hl7/fhir/r5/model/Period.java | 4 +- .../org/hl7/fhir/r5/model/Permission.java | 10 +- .../java/org/hl7/fhir/r5/model/Person.java | 10 +- .../org/hl7/fhir/r5/model/PlanDefinition.java | 92 +++++----- .../org/hl7/fhir/r5/model/Practitioner.java | 8 +- .../hl7/fhir/r5/model/PractitionerRole.java | 2 +- .../java/org/hl7/fhir/r5/model/Procedure.java | 8 +- .../hl7/fhir/r5/model/ProdCharacteristic.java | 6 +- .../org/hl7/fhir/r5/model/Provenance.java | 6 +- .../java/org/hl7/fhir/r5/model/Quantity.java | 10 +- .../org/hl7/fhir/r5/model/Questionnaire.java | 64 +++---- .../fhir/r5/model/QuestionnaireResponse.java | 12 +- .../java/org/hl7/fhir/r5/model/Reference.java | 6 +- .../fhir/r5/model/RegulatedAuthorization.java | 4 +- .../hl7/fhir/r5/model/RelatedArtifact.java | 14 +- .../org/hl7/fhir/r5/model/RelatedPerson.java | 8 +- .../fhir/r5/model/RequestOrchestration.java | 58 +++--- .../org/hl7/fhir/r5/model/Requirements.java | 48 ++--- .../org/hl7/fhir/r5/model/ResearchStudy.java | 40 ++--- .../hl7/fhir/r5/model/ResearchSubject.java | 10 +- .../java/org/hl7/fhir/r5/model/Resource.java | 6 +- .../org/hl7/fhir/r5/model/RiskAssessment.java | 8 +- .../org/hl7/fhir/r5/model/SampledData.java | 18 +- .../java/org/hl7/fhir/r5/model/Schedule.java | 6 +- .../hl7/fhir/r5/model/SearchParameter.java | 54 +++--- .../org/hl7/fhir/r5/model/ServiceRequest.java | 14 +- .../java/org/hl7/fhir/r5/model/Signature.java | 8 +- .../main/java/org/hl7/fhir/r5/model/Slot.java | 10 +- .../java/org/hl7/fhir/r5/model/Specimen.java | 10 +- .../hl7/fhir/r5/model/SpecimenDefinition.java | 48 ++--- .../java/org/hl7/fhir/r5/model/Statistic.java | 24 +-- .../fhir/r5/model/StructureDefinition.java | 50 +++--- .../org/hl7/fhir/r5/model/StructureMap.java | 94 +++++----- .../org/hl7/fhir/r5/model/Subscription.java | 36 ++-- .../hl7/fhir/r5/model/SubscriptionStatus.java | 12 +- .../hl7/fhir/r5/model/SubscriptionTopic.java | 70 ++++---- .../java/org/hl7/fhir/r5/model/Substance.java | 8 +- .../hl7/fhir/r5/model/SubstanceAmount.java | 2 +- .../fhir/r5/model/SubstanceDefinition.java | 26 +-- .../fhir/r5/model/SubstanceNucleicAcid.java | 20 +-- .../hl7/fhir/r5/model/SubstancePolymer.java | 18 +- .../hl7/fhir/r5/model/SubstanceProtein.java | 14 +- .../model/SubstanceReferenceInformation.java | 2 +- .../r5/model/SubstanceSourceMaterial.java | 20 +-- .../org/hl7/fhir/r5/model/SupplyDelivery.java | 2 +- .../org/hl7/fhir/r5/model/SupplyRequest.java | 6 +- .../main/java/org/hl7/fhir/r5/model/Task.java | 20 +-- .../r5/model/TerminologyCapabilities.java | 76 ++++---- .../java/org/hl7/fhir/r5/model/TestPlan.java | 36 ++-- .../org/hl7/fhir/r5/model/TestReport.java | 36 ++-- .../org/hl7/fhir/r5/model/TestScript.java | 160 ++++++++--------- .../java/org/hl7/fhir/r5/model/Timing.java | 30 ++-- .../java/org/hl7/fhir/r5/model/Transport.java | 20 +-- .../hl7/fhir/r5/model/TriggerDefinition.java | 6 +- .../java/org/hl7/fhir/r5/model/ValueSet.java | 94 +++++----- .../hl7/fhir/r5/model/VerificationResult.java | 20 +-- .../fhir/r5/model/VirtualServiceDetail.java | 6 +- .../hl7/fhir/r5/model/VisionPrescription.java | 30 ++-- .../hl7/fhir/r5/profilemodel/PEBuilder.java | 6 +- .../fhir/r5/profilemodel/PEDefinition.java | 16 ++ .../hl7/fhir/r5/profiles/PEModelTest1343.java | 47 +++++ .../hl7/fhir/utilities/npm/NpmPackage.java | 2 +- 944 files changed, 9702 insertions(+), 9635 deletions(-) create mode 100644 org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/profiles/PEModelTest1343.java diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaResourceGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaResourceGenerator.java index 6a1d044d28..44023f9ac7 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaResourceGenerator.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaResourceGenerator.java @@ -1083,7 +1083,7 @@ private boolean generateChildAddItem(String indent, String parent, boolean first first = false; write( "if (name.equals(\""+namet+"\")) {\r\n"); if (isPrimitive(e.typeSummary()) || e.typeSummary().startsWith("canonical(")) - write(indent+" throw new FHIRException(\"Cannot call addChild on a primitive type "+parent+"."+e.getName()+"\");\r\n"); + write(indent+" throw new FHIRException(\"Cannot call addChild on a singleton property "+parent+"."+e.getName()+"\");\r\n"); else if (isAbstract(e.typeSummary())) write(indent+" throw new FHIRException(\"Cannot call addChild on an abstract type "+parent+"."+e.getName()+"\");\r\n"); else if (e.unbounded()) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Account.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Account.java index c3c8f86eae..fbb52a8273 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Account.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Account.java @@ -782,12 +782,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.name"); + throw new FHIRException("Cannot call addChild on a singleton property Account.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.status"); + throw new FHIRException("Cannot call addChild on a singleton property Account.status"); } else if (name.equals("activePeriod")) { this.activePeriod = new Period(); return this.activePeriod; @@ -807,7 +807,7 @@ public Base addChild(String name) throws FHIRException { this.owner = new Reference(); return this.owner; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.description"); + throw new FHIRException("Cannot call addChild on a singleton property Account.description"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Address.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Address.java index 7f6ddceea8..1bcd0f1ba3 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Address.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Address.java @@ -1011,23 +1011,23 @@ else if (name.equals("period")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.use"); + throw new FHIRException("Cannot call addChild on a singleton property Address.use"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.type"); + throw new FHIRException("Cannot call addChild on a singleton property Address.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.text"); + throw new FHIRException("Cannot call addChild on a singleton property Address.text"); } else if (name.equals("line")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.line"); + throw new FHIRException("Cannot call addChild on a singleton property Address.line"); } else if (name.equals("city")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.city"); + throw new FHIRException("Cannot call addChild on a singleton property Address.city"); } else if (name.equals("district")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.district"); + throw new FHIRException("Cannot call addChild on a singleton property Address.district"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.state"); + throw new FHIRException("Cannot call addChild on a singleton property Address.state"); } else if (name.equals("postalCode")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.postalCode"); + throw new FHIRException("Cannot call addChild on a singleton property Address.postalCode"); } else if (name.equals("country")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.country"); + throw new FHIRException("Cannot call addChild on a singleton property Address.country"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AllergyIntolerance.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AllergyIntolerance.java index 7a21032291..6999e2ddef 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AllergyIntolerance.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AllergyIntolerance.java @@ -1443,15 +1443,15 @@ public Base addChild(String name) throws FHIRException { this.substance = new CodeableConcept(); return this.substance; } else if (name.equals("certainty")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.certainty"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.certainty"); } else if (name.equals("manifestation")) { return addManifestation(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.description"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.description"); } else if (name.equals("onset")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.onset"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.onset"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.severity"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.severity"); } else if (name.equals("exposureRoute")) { this.exposureRoute = new CodeableConcept(); return this.exposureRoute; @@ -2433,9 +2433,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("onset")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.onset"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.onset"); } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.recordedDate"); } else if (name.equals("recorder")) { this.recorder = new Reference(); return this.recorder; @@ -2449,15 +2449,15 @@ public Base addChild(String name) throws FHIRException { this.substance = new CodeableConcept(); return this.substance; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.status"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.status"); } else if (name.equals("criticality")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.criticality"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.criticality"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.type"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.type"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.category"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.category"); } else if (name.equals("lastOccurence")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.lastOccurence"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.lastOccurence"); } else if (name.equals("note")) { this.note = new Annotation(); return this.note; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Annotation.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Annotation.java index 4f7a8a9a0f..1742dbd002 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Annotation.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Annotation.java @@ -270,9 +270,9 @@ public Base addChild(String name) throws FHIRException { this.author = new StringType(); return this.author; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.time"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.time"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.text"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.text"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Appointment.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Appointment.java index 2c69eb4940..3c516c3fdd 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Appointment.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Appointment.java @@ -853,9 +853,9 @@ public Base addChild(String name) throws FHIRException { this.actor = new Reference(); return this.actor; } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.required"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.required"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.status"); } else return super.addChild(name); } @@ -1730,7 +1730,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -1738,19 +1738,19 @@ public Base addChild(String name) throws FHIRException { this.reason = new CodeableConcept(); return this.reason; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.priority"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.description"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.description"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.start"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.end"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.end"); } else if (name.equals("minutesDuration")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.minutesDuration"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.minutesDuration"); } else if (name.equals("slot")) { return addSlot(); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.comment"); } else if (name.equals("participant")) { return addParticipant(); } else diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AppointmentResponse.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AppointmentResponse.java index d8f861c751..d259d8597c 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AppointmentResponse.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AppointmentResponse.java @@ -824,18 +824,18 @@ public Base addChild(String name) throws FHIRException { this.appointment = new Reference(); return this.appointment; } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.start"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.end"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.end"); } else if (name.equals("participantType")) { return addParticipantType(); } else if (name.equals("actor")) { this.actor = new Reference(); return this.actor; } else if (name.equals("participantStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.participantStatus"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.participantStatus"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.comment"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Attachment.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Attachment.java index 462afc3119..66cbb7f0ea 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Attachment.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Attachment.java @@ -613,21 +613,21 @@ else if (name.equals("creation")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.contentType"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.language"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.language"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.data"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.data"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.url"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.url"); } else if (name.equals("size")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.size"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.size"); } else if (name.equals("hash")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.hash"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.hash"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.title"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.title"); } else if (name.equals("creation")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.creation"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.creation"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AuditEvent.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AuditEvent.java index 660d05c35b..75a36585e7 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AuditEvent.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/AuditEvent.java @@ -999,13 +999,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("subtype")) { return addSubtype(); } else if (name.equals("action")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.action"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.action"); } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.dateTime"); } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcome"); } else if (name.equals("outcomeDesc")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcomeDesc"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcomeDesc"); } else if (name.equals("purposeOfEvent")) { return addPurposeOfEvent(); } else @@ -1772,16 +1772,16 @@ public Base addChild(String name) throws FHIRException { this.userId = new Identifier(); return this.userId; } else if (name.equals("altId")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.altId"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.altId"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.name"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.name"); } else if (name.equals("requestor")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.requestor"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.requestor"); } else if (name.equals("location")) { this.location = new Reference(); return this.location; } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.policy"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.policy"); } else if (name.equals("media")) { this.media = new Coding(); return this.media; @@ -2034,9 +2034,9 @@ else if (name.equals("type")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.address"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.address"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.type"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.type"); } else return super.addChild(name); } @@ -2279,7 +2279,7 @@ else if (name.equals("type")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("site")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.site"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.site"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; @@ -2910,11 +2910,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.name"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.description"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.description"); } else if (name.equals("query")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.query"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.query"); } else if (name.equals("detail")) { return addDetail(); } else @@ -3140,9 +3140,9 @@ else if (name.equals("value")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.type"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.type"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.value"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.value"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Basic.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Basic.java index 06a6a55e5e..de2df28673 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Basic.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Basic.java @@ -383,7 +383,7 @@ public Base addChild(String name) throws FHIRException { this.author = new Reference(); return this.author; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Basic.created"); + throw new FHIRException("Cannot call addChild on a singleton property Basic.created"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Binary.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Binary.java index 33d7a0ce28..9df7d3903a 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Binary.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Binary.java @@ -203,9 +203,9 @@ else if (name.equals("content")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.contentType"); } else if (name.equals("content")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.content"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.content"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/BodySite.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/BodySite.java index f332cca7d4..9fd4363bb1 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/BodySite.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/BodySite.java @@ -421,7 +421,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("modifier")) { return addModifier(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type BodySite.description"); + throw new FHIRException("Cannot call addChild on a singleton property BodySite.description"); } else if (name.equals("image")) { return addImage(); } else diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Bundle.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Bundle.java index eb6d16fc7e..3f364ead05 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Bundle.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Bundle.java @@ -755,9 +755,9 @@ else if (name.equals("url")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("relation")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.relation"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.relation"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.url"); } else return super.addChild(name); } @@ -1104,7 +1104,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("link")) { return addLink(); } else if (name.equals("fullUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.fullUrl"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.fullUrl"); } else if (name.equals("resource")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.resource"); } else if (name.equals("search")) { @@ -1332,9 +1332,9 @@ else if (name.equals("score")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.mode"); } else if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.score"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.score"); } else return super.addChild(name); } @@ -1847,17 +1847,17 @@ else if (name.equals("ifNoneExist")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("method")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.method"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.method"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.url"); } else if (name.equals("ifNoneMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifNoneMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifNoneMatch"); } else if (name.equals("ifModifiedSince")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifModifiedSince"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifModifiedSince"); } else if (name.equals("ifMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifMatch"); } else if (name.equals("ifNoneExist")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifNoneExist"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifNoneExist"); } else return super.addChild(name); } @@ -2207,13 +2207,13 @@ else if (name.equals("lastModified")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.status"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.status"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.location"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.location"); } else if (name.equals("etag")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.etag"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.etag"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.lastModified"); } else return super.addChild(name); } @@ -2624,9 +2624,9 @@ else if (name.equals("signature")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.type"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.type"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.total"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.total"); } else if (name.equals("link")) { return addLink(); } else if (name.equals("entry")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CarePlan.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CarePlan.java index cd6caeeecc..4a0f5fb344 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CarePlan.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CarePlan.java @@ -718,7 +718,7 @@ else if (name.equals("plan")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.code"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.code"); } else if (name.equals("plan")) { this.plan = new Reference(); return this.plan; @@ -2272,12 +2272,12 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("goal")) { return addGoal(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("prohibited")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.prohibited"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.prohibited"); } else if (name.equals("scheduledTiming")) { this.scheduled = new Timing(); return this.scheduled; @@ -2305,7 +2305,7 @@ public Base addChild(String name) throws FHIRException { this.quantity = new SimpleQuantity(); return this.quantity; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description"); } else return super.addChild(name); } @@ -3468,7 +3468,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status"); } else if (name.equals("context")) { this.context = new Reference(); return this.context; @@ -3478,11 +3478,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("modified")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.modified"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.modified"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description"); } else if (name.equals("addresses")) { return addAddresses(); } else if (name.equals("support")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Claim.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Claim.java index 534103b628..4d3ec696d4 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Claim.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Claim.java @@ -851,7 +851,7 @@ else if (name.equals("diagnosis")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("diagnosis")) { this.diagnosis = new Coding(); return this.diagnosis; @@ -1422,19 +1422,19 @@ else if (name.equals("originalRuleset")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.focal"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.businessArrangement"); } else if (name.equals("relationship")) { this.relationship = new Coding(); return this.relationship; } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.preAuthRef"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); return this.claimResponse; @@ -2451,7 +2451,7 @@ else if (name.equals("prosthesis")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; @@ -2459,12 +2459,12 @@ public Base addChild(String name) throws FHIRException { this.provider = new Reference(); return this.provider; } else if (name.equals("diagnosisLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.diagnosisLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.diagnosisLinkId"); } else if (name.equals("service")) { this.service = new Coding(); return this.service; } else if (name.equals("serviceDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.serviceDate"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.serviceDate"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; @@ -2472,9 +2472,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.points"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -3136,7 +3136,7 @@ else if (name.equals("subDetail")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; @@ -3150,9 +3150,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.points"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -3715,7 +3715,7 @@ else if (name.equals("udi")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; @@ -3729,9 +3729,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.points"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -3988,9 +3988,9 @@ else if (name.equals("priorMaterial")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("initial")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.initial"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.initial"); } else if (name.equals("priorDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.priorDate"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.priorDate"); } else if (name.equals("priorMaterial")) { this.priorMaterial = new Coding(); return this.priorMaterial; @@ -4219,7 +4219,7 @@ public Base addChild(String name) throws FHIRException { this.reason = new Coding(); return this.reason; } else if (name.equals("extractionDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.extractionDate"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.extractionDate"); } else return super.addChild(name); } @@ -5987,7 +5987,7 @@ else if (name.equals("missingTeeth")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.type"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.type"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("ruleset")) { @@ -5997,7 +5997,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.created"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.created"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; @@ -6008,7 +6008,7 @@ public Base addChild(String name) throws FHIRException { this.organization = new Reference(); return this.organization; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.use"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.use"); } else if (name.equals("priority")) { this.priority = new Coding(); return this.priority; @@ -6045,9 +6045,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("exception")) { return addException(); } else if (name.equals("school")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.school"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.school"); } else if (name.equals("accident")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.accident"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.accident"); } else if (name.equals("accidentType")) { this.accidentType = new Coding(); return this.accidentType; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ClaimResponse.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ClaimResponse.java index 78e5dc0be5..a31c4b00c0 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ClaimResponse.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ClaimResponse.java @@ -321,9 +321,9 @@ else if (name.equals("detail")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -571,7 +571,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -815,7 +815,7 @@ else if (name.equals("subDetail")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("subDetail")) { @@ -1056,7 +1056,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -1247,7 +1247,7 @@ else if (name.equals("adjudication")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("adjudication")) { return addAdjudication(); } else @@ -1479,7 +1479,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -1877,7 +1877,7 @@ else if (name.equals("detail")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("service")) { this.service = new Coding(); return this.service; @@ -1885,7 +1885,7 @@ public Base addChild(String name) throws FHIRException { this.fee = new Money(); return this.fee; } else if (name.equals("noteNumberLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumberLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumberLinkId"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -2143,7 +2143,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -2585,7 +2585,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -2920,11 +2920,11 @@ else if (name.equals("code")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("detailSequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.detailSequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.detailSequenceLinkId"); } else if (name.equals("subdetailSequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.subdetailSequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.subdetailSequenceLinkId"); } else if (name.equals("code")) { this.code = new Coding(); return this.code; @@ -3168,12 +3168,12 @@ else if (name.equals("text")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.number"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.number"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.text"); } else return super.addChild(name); } @@ -3743,19 +3743,19 @@ else if (name.equals("originalRuleset")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.focal"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.businessArrangement"); } else if (name.equals("relationship")) { this.relationship = new Coding(); return this.relationship; } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.preAuthRef"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); return this.claimResponse; @@ -5173,7 +5173,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.created"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; @@ -5184,9 +5184,9 @@ public Base addChild(String name) throws FHIRException { this.requestOrganization = new Reference(); return this.requestOrganization; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.disposition"); } else if (name.equals("payeeType")) { this.payeeType = new Coding(); return this.payeeType; @@ -5212,7 +5212,7 @@ public Base addChild(String name) throws FHIRException { this.paymentAdjustmentReason = new Coding(); return this.paymentAdjustmentReason; } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.paymentDate"); } else if (name.equals("paymentAmount")) { this.paymentAmount = new Money(); return this.paymentAmount; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ClinicalImpression.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ClinicalImpression.java index dcc84ed700..39a73f1937 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ClinicalImpression.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ClinicalImpression.java @@ -528,7 +528,7 @@ public Base addChild(String name) throws FHIRException { this.item = new CodeableConcept(); return this.item; } else if (name.equals("cause")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.cause"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.cause"); } else return super.addChild(name); } @@ -707,7 +707,7 @@ public Base addChild(String name) throws FHIRException { this.item = new CodeableConcept(); return this.item; } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.reason"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.reason"); } else return super.addChild(name); } @@ -1931,11 +1931,11 @@ public Base addChild(String name) throws FHIRException { this.assessor = new Reference(); return this.assessor; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.status"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.date"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.description"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.description"); } else if (name.equals("previous")) { this.previous = new Reference(); return this.previous; @@ -1950,9 +1950,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("investigations")) { return addInvestigations(); } else if (name.equals("protocol")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.protocol"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.protocol"); } else if (name.equals("summary")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.summary"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.summary"); } else if (name.equals("finding")) { return addFinding(); } else if (name.equals("resolved")) { @@ -1960,7 +1960,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("ruledOut")) { return addRuledOut(); } else if (name.equals("prognosis")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.prognosis"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.prognosis"); } else if (name.equals("plan")) { return addPlan(); } else if (name.equals("action")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CodeableConcept.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CodeableConcept.java index 5f4c46a0c8..625801647e 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CodeableConcept.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CodeableConcept.java @@ -201,7 +201,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("coding")) { return addCoding(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeableConcept.text"); + throw new FHIRException("Cannot call addChild on a singleton property CodeableConcept.text"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Coding.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Coding.java index efe7bd0442..7c73367c53 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Coding.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Coding.java @@ -441,15 +441,15 @@ else if (name.equals("userSelected")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.system"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.version"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.code"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.display"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.display"); } else if (name.equals("userSelected")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.userSelected"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.userSelected"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Communication.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Communication.java index e4b286ed7c..3151765282 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Communication.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Communication.java @@ -1263,14 +1263,14 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("medium")) { return addMedium(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.status"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.status"); } else if (name.equals("encounter")) { this.encounter = new Reference(); return this.encounter; } else if (name.equals("sent")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.sent"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.sent"); } else if (name.equals("received")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.received"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.received"); } else if (name.equals("reason")) { return addReason(); } else if (name.equals("subject")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CommunicationRequest.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CommunicationRequest.java index d2d82fa708..5cfd085271 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CommunicationRequest.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/CommunicationRequest.java @@ -1386,7 +1386,7 @@ public Base addChild(String name) throws FHIRException { this.requester = new Reference(); return this.requester; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.status"); } else if (name.equals("encounter")) { this.encounter = new Reference(); return this.encounter; @@ -1399,7 +1399,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("reason")) { return addReason(); } else if (name.equals("requestedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.requestedOn"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.requestedOn"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Composition.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Composition.java index fa8cfa2267..969b548509 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Composition.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Composition.java @@ -596,9 +596,9 @@ else if (name.equals("party")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.mode"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.time"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.time"); } else if (name.equals("party")) { this.party = new Reference(); return this.party; @@ -1400,7 +1400,7 @@ else if (name.equals("section")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -1408,7 +1408,7 @@ public Base addChild(String name) throws FHIRException { this.text = new Narrative(); return this.text; } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.mode"); } else if (name.equals("orderedBy")) { this.orderedBy = new CodeableConcept(); return this.orderedBy; @@ -2383,7 +2383,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.date"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2391,11 +2391,11 @@ public Base addChild(String name) throws FHIRException { this.class_ = new CodeableConcept(); return this.class_; } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.status"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.status"); } else if (name.equals("confidentiality")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.confidentiality"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.confidentiality"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ConceptMap.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ConceptMap.java index 73799ab419..14ea528e05 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ConceptMap.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ConceptMap.java @@ -198,7 +198,7 @@ else if (name.equals("telecom")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -464,9 +464,9 @@ else if (name.equals("target")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("codeSystem")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.codeSystem"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.codeSystem"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("target")) { return addTarget(); } else @@ -960,13 +960,13 @@ else if (name.equals("product")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("codeSystem")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.codeSystem"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.codeSystem"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("equivalence")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.equivalence"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.equivalence"); } else if (name.equals("comments")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.comments"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.comments"); } else if (name.equals("dependsOn")) { return addDependsOn(); } else if (name.equals("product")) { @@ -1286,11 +1286,11 @@ else if (name.equals("code")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.element"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.element"); } else if (name.equals("codeSystem")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.codeSystem"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.codeSystem"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else return super.addChild(name); } @@ -2443,32 +2443,32 @@ else if (name.equals("element")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.copyright"); } else if (name.equals("sourceUri")) { this.source = new UriType(); return this.source; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Condition.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Condition.java index 2d1e2e09a3..a220d6f3e9 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Condition.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Condition.java @@ -1729,7 +1729,7 @@ public Base addChild(String name) throws FHIRException { this.asserter = new Reference(); return this.asserter; } else if (name.equals("dateRecorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.dateRecorded"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.dateRecorded"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -1737,9 +1737,9 @@ public Base addChild(String name) throws FHIRException { this.category = new CodeableConcept(); return this.category; } else if (name.equals("clinicalStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.clinicalStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.clinicalStatus"); } else if (name.equals("verificationStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.verificationStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.verificationStatus"); } else if (name.equals("severity")) { this.severity = new CodeableConcept(); return this.severity; @@ -1784,7 +1784,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("bodySite")) { return addBodySite(); } else if (name.equals("notes")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.notes"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.notes"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Conformance.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Conformance.java index f9881b0084..ddaf721466 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Conformance.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Conformance.java @@ -2033,7 +2033,7 @@ else if (name.equals("telecom")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -2310,11 +2310,11 @@ else if (name.equals("releaseDate")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.name"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.version"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.version"); } else if (name.equals("releaseDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.releaseDate"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.releaseDate"); } else return super.addChild(name); } @@ -2533,9 +2533,9 @@ else if (name.equals("url")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.description"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.url"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.url"); } else return super.addChild(name); } @@ -3153,9 +3153,9 @@ else if (name.equals("compartment")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else if (name.equals("security")) { this.security = new ConformanceRestSecurityComponent(); return this.security; @@ -3164,13 +3164,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("interaction")) { return addInteraction(); } else if (name.equals("transactionMode")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.transactionMode"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.transactionMode"); } else if (name.equals("searchParam")) { return addSearchParam(); } else if (name.equals("operation")) { return addOperation(); } else if (name.equals("compartment")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.compartment"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.compartment"); } else return super.addChild(name); } @@ -3519,11 +3519,11 @@ else if (name.equals("certificate")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("cors")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.cors"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.cors"); } else if (name.equals("service")) { return addService(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.description"); } else if (name.equals("certificate")) { return addCertificate(); } else @@ -3737,9 +3737,9 @@ else if (name.equals("blob")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.type"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.type"); } else if (name.equals("blob")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.blob"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.blob"); } else return super.addChild(name); } @@ -4663,28 +4663,28 @@ else if (name.equals("searchParam")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.type"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.type"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; } else if (name.equals("interaction")) { return addInteraction(); } else if (name.equals("versioning")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.versioning"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.versioning"); } else if (name.equals("readHistory")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.readHistory"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.readHistory"); } else if (name.equals("updateCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.updateCreate"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.updateCreate"); } else if (name.equals("conditionalCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.conditionalCreate"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.conditionalCreate"); } else if (name.equals("conditionalUpdate")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.conditionalUpdate"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.conditionalUpdate"); } else if (name.equals("conditionalDelete")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.conditionalDelete"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.conditionalDelete"); } else if (name.equals("searchInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.searchInclude"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.searchInclude"); } else if (name.equals("searchRevInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.searchRevInclude"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.searchRevInclude"); } else if (name.equals("searchParam")) { return addSearchParam(); } else @@ -4955,9 +4955,9 @@ else if (name.equals("documentation")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.code"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.code"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else return super.addChild(name); } @@ -5549,19 +5549,19 @@ else if (name.equals("chain")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.name"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.definition"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.type"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.type"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.target"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.target"); } else if (name.equals("modifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.modifier"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.modifier"); } else if (name.equals("chain")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.chain"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.chain"); } else return super.addChild(name); } @@ -5804,9 +5804,9 @@ else if (name.equals("documentation")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.code"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.code"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else return super.addChild(name); } @@ -6017,7 +6017,7 @@ else if (name.equals("definition")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.name"); } else if (name.equals("definition")) { this.definition = new Reference(); return this.definition; @@ -6350,9 +6350,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("reliableCache")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.reliableCache"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.reliableCache"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else if (name.equals("event")) { return addEvent(); } else @@ -6556,7 +6556,7 @@ public Base addChild(String name) throws FHIRException { this.protocol = new Coding(); return this.protocol; } else if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.address"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.address"); } else return super.addChild(name); } @@ -7080,11 +7080,11 @@ public Base addChild(String name) throws FHIRException { this.code = new Coding(); return this.code; } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.category"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.category"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.mode"); } else if (name.equals("focus")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.focus"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.focus"); } else if (name.equals("request")) { this.request = new Reference(); return this.request; @@ -7092,7 +7092,7 @@ public Base addChild(String name) throws FHIRException { this.response = new Reference(); return this.response; } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else return super.addChild(name); } @@ -7393,9 +7393,9 @@ else if (name.equals("profile")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; @@ -8942,29 +8942,29 @@ else if (name.equals("document")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.url"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.version"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.status"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.date"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.description"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.copyright"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.kind"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.kind"); } else if (name.equals("software")) { this.software = new ConformanceSoftwareComponent(); return this.software; @@ -8972,11 +8972,11 @@ public Base addChild(String name) throws FHIRException { this.implementation = new ConformanceImplementationComponent(); return this.implementation; } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.fhirVersion"); } else if (name.equals("acceptUnknown")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.acceptUnknown"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.acceptUnknown"); } else if (name.equals("format")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.format"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.format"); } else if (name.equals("profile")) { return addProfile(); } else if (name.equals("rest")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ContactPoint.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ContactPoint.java index d5e7346ad7..fe0dc3cd89 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ContactPoint.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ContactPoint.java @@ -735,13 +735,13 @@ else if (name.equals("period")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.system"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.value"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.value"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.use"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.use"); } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.rank"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.rank"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Contract.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Contract.java index 40479c5c41..2780af601d 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Contract.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Contract.java @@ -750,7 +750,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("effectiveTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.effectiveTime"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.effectiveTime"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; @@ -758,9 +758,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.points"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -1022,7 +1022,7 @@ public Base addChild(String name) throws FHIRException { this.party = new Reference(); return this.party; } else if (name.equals("signature")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.signature"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.signature"); } else return super.addChild(name); } @@ -1710,7 +1710,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.issued"); } else if (name.equals("applies")) { this.applies = new Period(); return this.applies; @@ -1730,7 +1730,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("actor")) { return addActor(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.text"); } else if (name.equals("valuedItem")) { return addValuedItem(); } else if (name.equals("group")) { @@ -2531,7 +2531,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("effectiveTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.effectiveTime"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.effectiveTime"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; @@ -2539,9 +2539,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.points"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -4148,7 +4148,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.issued"); } else if (name.equals("applies")) { this.applies = new Period(); return this.applies; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Coverage.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Coverage.java index 6b913236c9..06657da807 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Coverage.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Coverage.java @@ -933,15 +933,15 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("group")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.group"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.group"); } else if (name.equals("plan")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.plan"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.plan"); } else if (name.equals("subPlan")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subPlan"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subPlan"); } else if (name.equals("dependent")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.dependent"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.dependent"); } else if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.sequence"); } else if (name.equals("subscriber")) { this.subscriber = new Reference(); return this.subscriber; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DataElement.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DataElement.java index a1e2187f44..01857043e9 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DataElement.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DataElement.java @@ -399,7 +399,7 @@ else if (name.equals("telecom")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -756,13 +756,13 @@ else if (name.equals("comments")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.identity"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.identity"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.uri"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.uri"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.name"); } else if (name.equals("comments")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.comments"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.comments"); } else return super.addChild(name); } @@ -1794,29 +1794,29 @@ else if (name.equals("element")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.url"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.version"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.status"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.date"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.date"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.copyright"); } else if (name.equals("stringency")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.stringency"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.stringency"); } else if (name.equals("mapping")) { return addMapping(); } else if (name.equals("element")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DetectedIssue.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DetectedIssue.java index 0fa599acdb..0492759df0 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DetectedIssue.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DetectedIssue.java @@ -405,7 +405,7 @@ public Base addChild(String name) throws FHIRException { this.action = new CodeableConcept(); return this.action; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.date"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.date"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; @@ -1114,13 +1114,13 @@ public Base addChild(String name) throws FHIRException { this.category = new CodeableConcept(); return this.category; } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.severity"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.severity"); } else if (name.equals("implicated")) { return addImplicated(); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.detail"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.detail"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.date"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.date"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; @@ -1128,7 +1128,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.reference"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.reference"); } else if (name.equals("mitigation")) { return addMitigation(); } else diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Device.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Device.java index bfb8395da4..007e0190af 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Device.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Device.java @@ -1267,21 +1267,21 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("note")) { return addNote(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.status"); + throw new FHIRException("Cannot call addChild on a singleton property Device.status"); } else if (name.equals("manufacturer")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufacturer"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufacturer"); } else if (name.equals("model")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.model"); + throw new FHIRException("Cannot call addChild on a singleton property Device.model"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.version"); + throw new FHIRException("Cannot call addChild on a singleton property Device.version"); } else if (name.equals("manufactureDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufactureDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufactureDate"); } else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.expiry"); + throw new FHIRException("Cannot call addChild on a singleton property Device.expiry"); } else if (name.equals("udi")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udi"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udi"); } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.lotNumber"); } else if (name.equals("owner")) { this.owner = new Reference(); return this.owner; @@ -1294,7 +1294,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("contact")) { return addContact(); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.url"); + throw new FHIRException("Cannot call addChild on a singleton property Device.url"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceComponent.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceComponent.java index aff8d8c40e..769772d41a 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceComponent.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceComponent.java @@ -527,7 +527,7 @@ public Base addChild(String name) throws FHIRException { this.componentId = new Identifier(); return this.componentId; } else if (name.equals("productionSpec")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.productionSpec"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.productionSpec"); } else return super.addChild(name); } @@ -1178,7 +1178,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("lastSystemChange")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.lastSystemChange"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.lastSystemChange"); } else if (name.equals("source")) { this.source = new Reference(); return this.source; @@ -1191,7 +1191,7 @@ public Base addChild(String name) throws FHIRException { this.parameterGroup = new CodeableConcept(); return this.parameterGroup; } else if (name.equals("measurementPrinciple")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.measurementPrinciple"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.measurementPrinciple"); } else if (name.equals("productionSpecification")) { return addProductionSpecification(); } else if (name.equals("languageCode")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceMetric.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceMetric.java index 724a42a2fb..6feb944a61 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceMetric.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceMetric.java @@ -1082,11 +1082,11 @@ else if (name.equals("time")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.type"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.type"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.state"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.state"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.time"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.time"); } else return super.addChild(name); } @@ -1836,11 +1836,11 @@ public Base addChild(String name) throws FHIRException { this.parent = new Reference(); return this.parent; } else if (name.equals("operationalStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.operationalStatus"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.operationalStatus"); } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.color"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.color"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.category"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.category"); } else if (name.equals("measurementPeriod")) { this.measurementPeriod = new Timing(); return this.measurementPeriod; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceUseRequest.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceUseRequest.java index 67b179cc95..cafc1b8110 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceUseRequest.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceUseRequest.java @@ -1390,7 +1390,7 @@ public Base addChild(String name) throws FHIRException { this.bodySite = new Reference(); return this.bodySite; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.status"); } else if (name.equals("device")) { this.device = new Reference(); return this.device; @@ -1402,13 +1402,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("indication")) { return addIndication(); } else if (name.equals("notes")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.notes"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.notes"); } else if (name.equals("prnReason")) { return addPrnReason(); } else if (name.equals("orderedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.orderedOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.orderedOn"); } else if (name.equals("recordedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.recordedOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.recordedOn"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -1422,7 +1422,7 @@ public Base addChild(String name) throws FHIRException { this.timing = new DateTimeType(); return this.timing; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.priority"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceUseStatement.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceUseStatement.java index e09757e629..eb81821244 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceUseStatement.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DeviceUseStatement.java @@ -659,9 +659,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("indication")) { return addIndication(); } else if (name.equals("notes")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.notes"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.notes"); } else if (name.equals("recordedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.recordedOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.recordedOn"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DiagnosticOrder.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DiagnosticOrder.java index 075a5f661c..67516613f4 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DiagnosticOrder.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DiagnosticOrder.java @@ -792,12 +792,12 @@ else if (name.equals("actor")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.status"); } else if (name.equals("description")) { this.description = new CodeableConcept(); return this.description; } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.dateTime"); } else if (name.equals("actor")) { this.actor = new Reference(); return this.actor; @@ -1174,7 +1174,7 @@ public Base addChild(String name) throws FHIRException { this.bodySite = new CodeableConcept(); return this.bodySite; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.status"); } else if (name.equals("event")) { return addEvent(); } else @@ -2109,9 +2109,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("specimen")) { return addSpecimen(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.status"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.priority"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.priority"); } else if (name.equals("event")) { return addEvent(); } else if (name.equals("item")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DiagnosticReport.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DiagnosticReport.java index b622053361..acf8104e95 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DiagnosticReport.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DiagnosticReport.java @@ -445,7 +445,7 @@ else if (name.equals("link")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.comment"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.comment"); } else if (name.equals("link")) { this.link = new Reference(); return this.link; @@ -1675,7 +1675,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -1695,7 +1695,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.issued"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.issued"); } else if (name.equals("performer")) { this.performer = new Reference(); return this.performer; @@ -1710,7 +1710,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("image")) { return addImage(); } else if (name.equals("conclusion")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.conclusion"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.conclusion"); } else if (name.equals("codedDiagnosis")) { return addCodedDiagnosis(); } else if (name.equals("presentedForm")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DocumentManifest.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DocumentManifest.java index 47edb143e0..8211e283ef 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DocumentManifest.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DocumentManifest.java @@ -1200,13 +1200,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.created"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.created"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.source"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.source"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.status"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.description"); } else if (name.equals("content")) { return addContent(); } else if (name.equals("related")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DocumentReference.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DocumentReference.java index 2fa6260155..c1483c6d29 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DocumentReference.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/DocumentReference.java @@ -367,7 +367,7 @@ else if (name.equals("target")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.code"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.code"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; @@ -2317,18 +2317,18 @@ public Base addChild(String name) throws FHIRException { this.authenticator = new Reference(); return this.authenticator; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.created"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.created"); } else if (name.equals("indexed")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.indexed"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.indexed"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.status"); } else if (name.equals("docStatus")) { this.docStatus = new CodeableConcept(); return this.docStatus; } else if (name.equals("relatesTo")) { return addRelatesTo(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.description"); } else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("content")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Element.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Element.java index 76cf4fce1b..0358e5606d 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Element.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Element.java @@ -260,7 +260,7 @@ else if (name.equals("extension")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Element.id"); + throw new FHIRException("Cannot call addChild on a singleton property Element.id"); } else if (name.equals("extension")) { return addExtension(); } else diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ElementDefinition.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ElementDefinition.java index 0674ccc513..bcbba4b15d 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ElementDefinition.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ElementDefinition.java @@ -862,13 +862,13 @@ else if (name.equals("rules")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("discriminator")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.discriminator"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.discriminator"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.description"); } else if (name.equals("ordered")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.ordered"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.ordered"); } else if (name.equals("rules")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.rules"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.rules"); } else return super.addChild(name); } @@ -1158,11 +1158,11 @@ else if (name.equals("max")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max"); } else return super.addChild(name); } @@ -1492,11 +1492,11 @@ else if (name.equals("aggregation")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.code"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.profile"); } else if (name.equals("aggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.aggregation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.aggregation"); } else return super.addChild(name); } @@ -1932,15 +1932,15 @@ else if (name.equals("xpath")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("key")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.key"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.key"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.severity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.severity"); } else if (name.equals("human")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.human"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.human"); } else if (name.equals("xpath")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.xpath"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.xpath"); } else return super.addChild(name); } @@ -2233,9 +2233,9 @@ else if (name.equals("valueSet[x]")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.strength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.strength"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.description"); } else if (name.equals("valueSetUri")) { this.valueSet = new UriType(); return this.valueSet; @@ -2516,11 +2516,11 @@ else if (name.equals("map")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.identity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.identity"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.language"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.language"); } else if (name.equals("map")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.map"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.map"); } else return super.addChild(name); } @@ -4555,39 +4555,39 @@ else if (name.equals("mapping")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else if (name.equals("representation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.representation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.representation"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.name"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.label"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.label"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("slicing")) { this.slicing = new ElementDefinitionSlicingComponent(); return this.slicing; } else if (name.equals("short")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.short"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.short"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.definition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.definition"); } else if (name.equals("comments")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.comments"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.comments"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.alias"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.alias"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max"); } else if (name.equals("base")) { this.base = new ElementDefinitionBaseComponent(); return this.base; } else if (name.equals("type")) { return addType(); } else if (name.equals("nameReference")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.nameReference"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.nameReference"); } else if (name.equals("defaultValueBoolean")) { this.defaultValue = new BooleanType(); return this.defaultValue; @@ -4688,7 +4688,7 @@ public Base addChild(String name) throws FHIRException { this.defaultValue = new Meta(); return this.defaultValue; } else if (name.equals("meaningWhenMissing")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.meaningWhenMissing"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.meaningWhenMissing"); } else if (name.equals("fixedBoolean")) { this.fixed = new BooleanType(); return this.fixed; @@ -5185,17 +5185,17 @@ public Base addChild(String name) throws FHIRException { this.maxValue = new Meta(); return this.maxValue; } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.maxLength"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.condition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.condition"); } else if (name.equals("constraint")) { return addConstraint(); } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mustSupport"); } else if (name.equals("isModifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isModifier"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isModifier"); } else if (name.equals("isSummary")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isSummary"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isSummary"); } else if (name.equals("binding")) { this.binding = new ElementDefinitionBindingComponent(); return this.binding; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EligibilityRequest.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EligibilityRequest.java index d1efd80f4d..ee8c674ed1 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EligibilityRequest.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EligibilityRequest.java @@ -485,7 +485,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityRequest.created"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EligibilityResponse.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EligibilityResponse.java index 60672ec6c4..1c0e535746 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EligibilityResponse.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EligibilityResponse.java @@ -693,9 +693,9 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.disposition"); } else if (name.equals("ruleset")) { this.ruleset = new Coding(); return this.ruleset; @@ -703,7 +703,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.created"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Encounter.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Encounter.java index 6814b1fead..b2cd823095 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Encounter.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Encounter.java @@ -789,7 +789,7 @@ else if (name.equals("period")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -2076,7 +2076,7 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -3370,11 +3370,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); } else if (name.equals("class")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.class"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.class"); } else if (name.equals("type")) { return addType(); } else if (name.equals("priority")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EnrollmentRequest.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EnrollmentRequest.java index 500cfe1d6d..06787cbb91 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EnrollmentRequest.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EnrollmentRequest.java @@ -667,7 +667,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.created"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EnrollmentResponse.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EnrollmentResponse.java index 3ff71d0a57..88be209bc2 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EnrollmentResponse.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EnrollmentResponse.java @@ -693,9 +693,9 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.disposition"); } else if (name.equals("ruleset")) { this.ruleset = new Coding(); return this.ruleset; @@ -703,7 +703,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.created"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EpisodeOfCare.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EpisodeOfCare.java index 28a243f4d9..03795b876a 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EpisodeOfCare.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/EpisodeOfCare.java @@ -383,7 +383,7 @@ else if (name.equals("period")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1418,7 +1418,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); } else if (name.equals("type")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ExplanationOfBenefit.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ExplanationOfBenefit.java index b6665e2ebb..d3c0e0d94b 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ExplanationOfBenefit.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ExplanationOfBenefit.java @@ -693,9 +693,9 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.disposition"); } else if (name.equals("ruleset")) { this.ruleset = new Coding(); return this.ruleset; @@ -703,7 +703,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.created"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.created"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Extension.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Extension.java index 2ce719c566..a102df0901 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Extension.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Extension.java @@ -177,7 +177,7 @@ else if (name.equals("value[x]")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Extension.url"); + throw new FHIRException("Cannot call addChild on a singleton property Extension.url"); } else if (name.equals("valueBoolean")) { this.value = new BooleanType(); return this.value; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/FamilyMemberHistory.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/FamilyMemberHistory.java index 471099f227..006e467797 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/FamilyMemberHistory.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/FamilyMemberHistory.java @@ -1389,16 +1389,16 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.date"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.date"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.status"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.status"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.name"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.name"); } else if (name.equals("relationship")) { this.relationship = new CodeableConcept(); return this.relationship; } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.gender"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.gender"); } else if (name.equals("bornPeriod")) { this.born = new Period(); return this.born; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Flag.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Flag.java index 1667daf56f..bd88f5854e 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Flag.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Flag.java @@ -659,7 +659,7 @@ public Base addChild(String name) throws FHIRException { this.category = new CodeableConcept(); return this.category; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Flag.status"); + throw new FHIRException("Cannot call addChild on a singleton property Flag.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Goal.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Goal.java index 3cf0bb54b0..1876128922 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Goal.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Goal.java @@ -1326,11 +1326,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("category")) { return addCategory(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.description"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.description"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.status"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.status"); } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.statusDate"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Group.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Group.java index d4e297a65e..1db13bc11e 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Group.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Group.java @@ -531,7 +531,7 @@ public Base addChild(String name) throws FHIRException { this.value = new Range(); return this.value; } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property Group.exclude"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -793,7 +793,7 @@ public Base addChild(String name) throws FHIRException { this.period = new Period(); return this.period; } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property Group.inactive"); } else return super.addChild(name); } @@ -1340,16 +1340,16 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.type"); + throw new FHIRException("Cannot call addChild on a singleton property Group.type"); } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.actual"); + throw new FHIRException("Cannot call addChild on a singleton property Group.actual"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.name"); + throw new FHIRException("Cannot call addChild on a singleton property Group.name"); } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property Group.quantity"); } else if (name.equals("characteristic")) { return addCharacteristic(); } else if (name.equals("member")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/HealthcareService.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/HealthcareService.java index 60d5d400da..7e84918273 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/HealthcareService.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/HealthcareService.java @@ -749,13 +749,13 @@ else if (name.equals("availableEndTime")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.allDay"); } else if (name.equals("availableStartTime")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableStartTime"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableStartTime"); } else if (name.equals("availableEndTime")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableEndTime"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableEndTime"); } else return super.addChild(name); } @@ -949,7 +949,7 @@ else if (name.equals("during")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.description"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.description"); } else if (name.equals("during")) { this.during = new Period(); return this.during; @@ -2412,11 +2412,11 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("serviceName")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.serviceName"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.serviceName"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.comment"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.comment"); } else if (name.equals("extraDetails")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.extraDetails"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.extraDetails"); } else if (name.equals("photo")) { this.photo = new Attachment(); return this.photo; @@ -2430,23 +2430,23 @@ public Base addChild(String name) throws FHIRException { this.eligibility = new CodeableConcept(); return this.eligibility; } else if (name.equals("eligibilityNote")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.eligibilityNote"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.eligibilityNote"); } else if (name.equals("programName")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.programName"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.programName"); } else if (name.equals("characteristic")) { return addCharacteristic(); } else if (name.equals("referralMethod")) { return addReferralMethod(); } else if (name.equals("publicKey")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.publicKey"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.publicKey"); } else if (name.equals("appointmentRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.appointmentRequired"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.appointmentRequired"); } else if (name.equals("availableTime")) { return addAvailableTime(); } else if (name.equals("notAvailable")) { return addNotAvailable(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availabilityExceptions"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/HumanName.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/HumanName.java index b4583c2b82..e127636e0a 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/HumanName.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/HumanName.java @@ -750,17 +750,17 @@ else if (name.equals("period")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.use"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.use"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.text"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.text"); } else if (name.equals("family")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.family"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.family"); } else if (name.equals("given")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.given"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.given"); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.prefix"); } else if (name.equals("suffix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.suffix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.suffix"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Identifier.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Identifier.java index f0acbb83c4..13bb377304 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Identifier.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Identifier.java @@ -570,14 +570,14 @@ else if (name.equals("assigner")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.use"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.use"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.system"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.value"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.value"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImagingObjectSelection.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImagingObjectSelection.java index caebd39b2c..7965465c2c 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImagingObjectSelection.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImagingObjectSelection.java @@ -346,9 +346,9 @@ else if (name.equals("series")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url"); } else if (name.equals("imagingStudy")) { this.imagingStudy = new Reference(); return this.imagingStudy; @@ -620,9 +620,9 @@ else if (name.equals("instance")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url"); } else if (name.equals("instance")) { return addInstance(); } else @@ -943,11 +943,11 @@ else if (name.equals("frames")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("sopClass")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.sopClass"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.sopClass"); } else if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url"); } else if (name.equals("frames")) { return addFrames(); } else @@ -1161,9 +1161,9 @@ else if (name.equals("url")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("frameNumbers")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.frameNumbers"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.frameNumbers"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url"); } else return super.addChild(name); } @@ -1734,7 +1734,7 @@ else if (name.equals("study")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -1742,12 +1742,12 @@ public Base addChild(String name) throws FHIRException { this.title = new CodeableConcept(); return this.title; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.description"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; } else if (name.equals("authoringTime")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.authoringTime"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.authoringTime"); } else if (name.equals("study")) { return addStudy(); } else diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImagingStudy.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImagingStudy.java index f4953ee132..13fda5def7 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImagingStudy.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImagingStudy.java @@ -856,20 +856,20 @@ else if (name.equals("instance")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.number"); } else if (name.equals("modality")) { this.modality = new Coding(); return this.modality; } else if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances"); } else if (name.equals("availability")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.availability"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.availability"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.url"); } else if (name.equals("bodySite")) { this.bodySite = new Coding(); return this.bodySite; @@ -877,7 +877,7 @@ public Base addChild(String name) throws FHIRException { this.laterality = new Coding(); return this.laterality; } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started"); } else if (name.equals("instance")) { return addInstance(); } else @@ -1362,15 +1362,15 @@ else if (name.equals("content")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.number"); } else if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("sopClass")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.sopClass"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.sopClass"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.type"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.title"); } else if (name.equals("content")) { return addContent(); } else @@ -2503,12 +2503,12 @@ else if (name.equals("series")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("accession")) { this.accession = new Identifier(); return this.accession; @@ -2522,20 +2522,20 @@ public Base addChild(String name) throws FHIRException { this.referrer = new Reference(); return this.referrer; } else if (name.equals("availability")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.availability"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.availability"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.url"); } else if (name.equals("numberOfSeries")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfSeries"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfSeries"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances"); } else if (name.equals("procedure")) { return addProcedure(); } else if (name.equals("interpreter")) { this.interpreter = new Reference(); return this.interpreter; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description"); } else if (name.equals("series")) { return addSeries(); } else diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Immunization.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Immunization.java index 2a5f2e5e8c..f08b1fb27a 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Immunization.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Immunization.java @@ -454,12 +454,12 @@ else if (name.equals("reported")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.date"); } else if (name.equals("detail")) { this.detail = new Reference(); return this.detail; } else if (name.equals("reported")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reported"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reported"); } else return super.addChild(name); } @@ -1007,16 +1007,16 @@ else if (name.equals("doseStatusReason")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("doseSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.doseSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.doseSequence"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.description"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.description"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.series"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.series"); } else if (name.equals("seriesDoses")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.seriesDoses"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.seriesDoses"); } else if (name.equals("targetDisease")) { return addTargetDisease(); } else if (name.equals("doseStatus")) { @@ -2335,9 +2335,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.status"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.date"); } else if (name.equals("vaccineCode")) { this.vaccineCode = new CodeableConcept(); return this.vaccineCode; @@ -2345,9 +2345,9 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("wasNotGiven")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.wasNotGiven"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.wasNotGiven"); } else if (name.equals("reported")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reported"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reported"); } else if (name.equals("performer")) { this.performer = new Reference(); return this.performer; @@ -2364,9 +2364,9 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.expirationDate"); } else if (name.equals("site")) { this.site = new CodeableConcept(); return this.site; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImmunizationRecommendation.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImmunizationRecommendation.java index 03abb9eab7..bc6af4216f 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImmunizationRecommendation.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImmunizationRecommendation.java @@ -552,12 +552,12 @@ else if (name.equals("supportingPatientInformation")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.date"); } else if (name.equals("vaccineCode")) { this.vaccineCode = new CodeableConcept(); return this.vaccineCode; } else if (name.equals("doseNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.doseNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.doseNumber"); } else if (name.equals("forecastStatus")) { this.forecastStatus = new CodeableConcept(); return this.forecastStatus; @@ -783,7 +783,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.value"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.value"); } else return super.addChild(name); } @@ -1135,14 +1135,14 @@ else if (name.equals("series")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("doseSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.doseSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.doseSequence"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.description"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.series"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.series"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImplementationGuide.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImplementationGuide.java index dcdc352b39..ae64182915 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImplementationGuide.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ImplementationGuide.java @@ -741,7 +741,7 @@ else if (name.equals("telecom")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -946,9 +946,9 @@ else if (name.equals("uri")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.uri"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.uri"); } else return super.addChild(name); } @@ -1212,9 +1212,9 @@ else if (name.equals("resource")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("resource")) { return addResource(); } else @@ -1714,13 +1714,13 @@ else if (name.equals("exampleFor")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.purpose"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("acronym")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.acronym"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.acronym"); } else if (name.equals("sourceUri")) { this.source = new UriType(); return this.source; @@ -1946,7 +1946,7 @@ else if (name.equals("profile")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; @@ -2484,17 +2484,17 @@ else if (name.equals("page")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.source"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.source"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.kind"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.kind"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type"); } else if (name.equals("package")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.package"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.package"); } else if (name.equals("format")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.format"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.format"); } else if (name.equals("page")) { return addPage(); } else @@ -3739,29 +3739,29 @@ else if (name.equals("page")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.version"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.copyright"); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.fhirVersion"); } else if (name.equals("dependency")) { return addDependency(); } else if (name.equals("package")) { @@ -3769,7 +3769,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("global")) { return addGlobal(); } else if (name.equals("binary")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.binary"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.binary"); } else if (name.equals("page")) { this.page = new ImplementationGuidePageComponent(); return this.page; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/List_.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/List_.java index 3177bea230..392e5aef74 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/List_.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/List_.java @@ -577,9 +577,9 @@ public Base addChild(String name) throws FHIRException { this.flag = new CodeableConcept(); return this.flag; } else if (name.equals("deleted")) { - throw new FHIRException("Cannot call addChild on a primitive type List_.deleted"); + throw new FHIRException("Cannot call addChild on a singleton property List_.deleted"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List_.date"); + throw new FHIRException("Cannot call addChild on a singleton property List_.date"); } else if (name.equals("item")) { this.item = new Reference(); return this.item; @@ -1424,7 +1424,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type List_.title"); + throw new FHIRException("Cannot call addChild on a singleton property List_.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -1438,16 +1438,16 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type List_.status"); + throw new FHIRException("Cannot call addChild on a singleton property List_.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List_.date"); + throw new FHIRException("Cannot call addChild on a singleton property List_.date"); } else if (name.equals("orderedBy")) { this.orderedBy = new CodeableConcept(); return this.orderedBy; } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type List_.mode"); + throw new FHIRException("Cannot call addChild on a singleton property List_.mode"); } else if (name.equals("note")) { - throw new FHIRException("Cannot call addChild on a primitive type List_.note"); + throw new FHIRException("Cannot call addChild on a singleton property List_.note"); } else if (name.equals("entry")) { return addEntry(); } else if (name.equals("emptyReason")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Location.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Location.java index 4760eb5b0f..4d3d8005ca 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Location.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Location.java @@ -544,11 +544,11 @@ else if (name.equals("altitude")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("longitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.longitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.longitude"); } else if (name.equals("latitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.latitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.latitude"); } else if (name.equals("altitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.altitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.altitude"); } else return super.addChild(name); } @@ -1295,13 +1295,13 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.status"); + throw new FHIRException("Cannot call addChild on a singleton property Location.status"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.name"); + throw new FHIRException("Cannot call addChild on a singleton property Location.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.description"); + throw new FHIRException("Cannot call addChild on a singleton property Location.description"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Location.mode"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Media.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Media.java index 37dfbe879d..5448a7c4d9 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Media.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Media.java @@ -930,7 +930,7 @@ else if (name.equals("content")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.type"); + throw new FHIRException("Cannot call addChild on a singleton property Media.type"); } else if (name.equals("subtype")) { this.subtype = new CodeableConcept(); return this.subtype; @@ -946,15 +946,15 @@ public Base addChild(String name) throws FHIRException { this.view = new CodeableConcept(); return this.view; } else if (name.equals("deviceName")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.deviceName"); + throw new FHIRException("Cannot call addChild on a singleton property Media.deviceName"); } else if (name.equals("height")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.height"); + throw new FHIRException("Cannot call addChild on a singleton property Media.height"); } else if (name.equals("width")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.width"); + throw new FHIRException("Cannot call addChild on a singleton property Media.width"); } else if (name.equals("frames")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.frames"); + throw new FHIRException("Cannot call addChild on a singleton property Media.frames"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Media.duration"); } else if (name.equals("content")) { this.content = new Attachment(); return this.content; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Medication.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Medication.java index 0302b311ed..6d8a673d4f 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Medication.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Medication.java @@ -627,9 +627,9 @@ else if (name.equals("expirationDate")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.expirationDate"); } else return super.addChild(name); } @@ -1306,7 +1306,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("isBrand")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.isBrand"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.isBrand"); } else if (name.equals("manufacturer")) { this.manufacturer = new Reference(); return this.manufacturer; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationAdministration.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationAdministration.java index 0ff1592f66..bc22745311 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationAdministration.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationAdministration.java @@ -619,7 +619,7 @@ else if (name.equals("rate[x]")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.text"); } else if (name.equals("siteCodeableConcept")) { this.site = new CodeableConcept(); return this.site; @@ -1691,7 +1691,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -1705,7 +1705,7 @@ public Base addChild(String name) throws FHIRException { this.prescription = new Reference(); return this.prescription; } else if (name.equals("wasNotGiven")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.wasNotGiven"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.wasNotGiven"); } else if (name.equals("reasonNotGiven")) { return addReasonNotGiven(); } else if (name.equals("reasonGiven")) { @@ -1725,7 +1725,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("device")) { return addDevice(); } else if (name.equals("note")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.note"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.note"); } else if (name.equals("dosage")) { this.dosage = new MedicationAdministrationDosageComponent(); return this.dosage; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationDispense.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationDispense.java index 6f87c82b3b..0a2dc7a783 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationDispense.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationDispense.java @@ -857,7 +857,7 @@ else if (name.equals("maxDosePerPeriod")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.text"); } else if (name.equals("additionalInstructions")) { this.additionalInstructions = new CodeableConcept(); return this.additionalInstructions; @@ -2260,7 +2260,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -2285,16 +2285,16 @@ public Base addChild(String name) throws FHIRException { this.medication = new Reference(); return this.medication; } else if (name.equals("whenPrepared")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenPrepared"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenPrepared"); } else if (name.equals("whenHandedOver")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenHandedOver"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenHandedOver"); } else if (name.equals("destination")) { this.destination = new Reference(); return this.destination; } else if (name.equals("receiver")) { return addReceiver(); } else if (name.equals("note")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.note"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.note"); } else if (name.equals("dosageInstruction")) { return addDosageInstruction(); } else if (name.equals("substitution")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationOrder.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationOrder.java index 356b0dafca..f469251b44 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationOrder.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationOrder.java @@ -881,7 +881,7 @@ else if (name.equals("maxDosePerPeriod")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.text"); } else if (name.equals("additionalInstructions")) { this.additionalInstructions = new CodeableConcept(); return this.additionalInstructions; @@ -1303,7 +1303,7 @@ public Base addChild(String name) throws FHIRException { this.validityPeriod = new Period(); return this.validityPeriod; } else if (name.equals("numberOfRepeatsAllowed")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.numberOfRepeatsAllowed"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.numberOfRepeatsAllowed"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; @@ -2519,11 +2519,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("dateWritten")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.dateWritten"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.dateWritten"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.status"); } else if (name.equals("dateEnded")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.dateEnded"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.dateEnded"); } else if (name.equals("reasonEnded")) { this.reasonEnded = new CodeableConcept(); return this.reasonEnded; @@ -2543,7 +2543,7 @@ public Base addChild(String name) throws FHIRException { this.reason = new Reference(); return this.reason; } else if (name.equals("note")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.note"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.note"); } else if (name.equals("medicationCodeableConcept")) { this.medication = new CodeableConcept(); return this.medication; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationStatement.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationStatement.java index 4de7fdf1f7..7299f9f9fa 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationStatement.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MedicationStatement.java @@ -813,7 +813,7 @@ else if (name.equals("maxDosePerPeriod")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.text"); } else if (name.equals("timing")) { this.timing = new Timing(); return this.timing; @@ -1829,11 +1829,11 @@ public Base addChild(String name) throws FHIRException { this.informationSource = new Reference(); return this.informationSource; } else if (name.equals("dateAsserted")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.dateAsserted"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.dateAsserted"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.status"); } else if (name.equals("wasNotTaken")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.wasNotTaken"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.wasNotTaken"); } else if (name.equals("reasonNotTaken")) { return addReasonNotTaken(); } else if (name.equals("reasonForUseCodeableConcept")) { @@ -1849,7 +1849,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("note")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.note"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.note"); } else if (name.equals("supportingInformation")) { return addSupportingInformation(); } else if (name.equals("medicationCodeableConcept")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MessageHeader.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MessageHeader.java index df4168ee7b..49116ca296 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MessageHeader.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/MessageHeader.java @@ -419,9 +419,9 @@ else if (name.equals("details")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.identifier"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.code"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.code"); } else if (name.equals("details")) { this.details = new Reference(); return this.details; @@ -808,16 +808,16 @@ else if (name.equals("endpoint")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.name"); } else if (name.equals("software")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.software"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.software"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.version"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.version"); } else if (name.equals("contact")) { this.contact = new ContactPoint(); return this.contact; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.endpoint"); } else return super.addChild(name); } @@ -1101,12 +1101,12 @@ else if (name.equals("endpoint")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.name"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.endpoint"); } else return super.addChild(name); } @@ -1852,7 +1852,7 @@ else if (name.equals("data")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.timestamp"); } else if (name.equals("event")) { this.event = new Coding(); return this.event; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Meta.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Meta.java index 71ba840e7e..e9ac7bfd7a 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Meta.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Meta.java @@ -436,11 +436,11 @@ else if (name.equals("tag")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("versionId")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.versionId"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.versionId"); } else if (name.equals("lastUpdated")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.lastUpdated"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.lastUpdated"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.profile"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.profile"); } else if (name.equals("security")) { return addSecurity(); } else if (name.equals("tag")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/NamingSystem.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/NamingSystem.java index e54615ac60..4c39c24295 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/NamingSystem.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/NamingSystem.java @@ -486,7 +486,7 @@ else if (name.equals("telecom")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -810,11 +810,11 @@ else if (name.equals("period")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.type"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.type"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.value"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.value"); } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.preferred"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1744,28 +1744,28 @@ else if (name.equals("replacedBy")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.kind"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.kind"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.responsible"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.usage"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.usage"); } else if (name.equals("uniqueId")) { return addUniqueId(); } else if (name.equals("replacedBy")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Narrative.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Narrative.java index e5ff4e1745..2a4fb4faf4 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Narrative.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Narrative.java @@ -336,7 +336,7 @@ public void setProperty(String name, Base value) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Narrative.status"); + throw new FHIRException("Cannot call addChild on a singleton property Narrative.status"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/NutritionOrder.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/NutritionOrder.java index 78e400d6e5..9bdc1dd745 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/NutritionOrder.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/NutritionOrder.java @@ -670,7 +670,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("fluidConsistencyType")) { return addFluidConsistencyType(); } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instruction"); } else return super.addChild(name); } @@ -1355,14 +1355,14 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("productName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.productName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.productName"); } else if (name.equals("schedule")) { return addSchedule(); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instruction"); } else return super.addChild(name); } @@ -1945,12 +1945,12 @@ public Base addChild(String name) throws FHIRException { this.baseFormulaType = new CodeableConcept(); return this.baseFormulaType; } else if (name.equals("baseFormulaProductName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.baseFormulaProductName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.baseFormulaProductName"); } else if (name.equals("additiveType")) { this.additiveType = new CodeableConcept(); return this.additiveType; } else if (name.equals("additiveProductName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.additiveProductName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.additiveProductName"); } else if (name.equals("caloricDensity")) { this.caloricDensity = new SimpleQuantity(); return this.caloricDensity; @@ -1963,7 +1963,7 @@ public Base addChild(String name) throws FHIRException { this.maxVolumeToDeliver = new SimpleQuantity(); return this.maxVolumeToDeliver; } else if (name.equals("administrationInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.administrationInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.administrationInstruction"); } else return super.addChild(name); } @@ -3089,9 +3089,9 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.dateTime"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.status"); } else if (name.equals("allergyIntolerance")) { return addAllergyIntolerance(); } else if (name.equals("foodPreferenceModifier")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Observation.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Observation.java index 34942634b7..36683d69e3 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Observation.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Observation.java @@ -755,7 +755,7 @@ public Base addChild(String name) throws FHIRException { this.age = new Range(); return this.age; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.text"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.text"); } else return super.addChild(name); } @@ -979,7 +979,7 @@ else if (name.equals("target")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.type"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.type"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; @@ -2837,7 +2837,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.status"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -2857,7 +2857,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.issued"); } else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("valueQuantity")) { @@ -2897,7 +2897,7 @@ public Base addChild(String name) throws FHIRException { this.interpretation = new CodeableConcept(); return this.interpretation; } else if (name.equals("comments")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.comments"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.comments"); } else if (name.equals("bodySite")) { this.bodySite = new CodeableConcept(); return this.bodySite; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OperationDefinition.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OperationDefinition.java index 61c2434fb1..26f878acaa 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OperationDefinition.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OperationDefinition.java @@ -424,7 +424,7 @@ else if (name.equals("telecom")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -1056,17 +1056,17 @@ else if (name.equals("part")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.use"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; @@ -1314,7 +1314,7 @@ else if (name.equals("valueSet[x]")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.strength"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.strength"); } else if (name.equals("valueSetUri")) { this.valueSet = new UriType(); return this.valueSet; @@ -2711,42 +2711,42 @@ else if (name.equals("parameter")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.kind"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.description"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.requirements"); } else if (name.equals("idempotent")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.idempotent"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.idempotent"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.code"); } else if (name.equals("notes")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.notes"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.notes"); } else if (name.equals("base")) { this.base = new Reference(); return this.base; } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.system"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.system"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type"); } else if (name.equals("instance")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.instance"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.instance"); } else if (name.equals("parameter")) { return addParameter(); } else diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OperationOutcome.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OperationOutcome.java index c1dfde6f92..2108e1efd7 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OperationOutcome.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OperationOutcome.java @@ -1245,16 +1245,16 @@ else if (name.equals("location")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.severity"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.severity"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.code"); } else if (name.equals("details")) { this.details = new CodeableConcept(); return this.details; } else if (name.equals("diagnostics")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.diagnostics"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.diagnostics"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.location"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.location"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Order.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Order.java index 736fae14ec..c1772a4ed1 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Order.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Order.java @@ -688,7 +688,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Order.date"); + throw new FHIRException("Cannot call addChild on a singleton property Order.date"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OrderResponse.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OrderResponse.java index 80145c1f4a..729c5a2bc9 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OrderResponse.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/OrderResponse.java @@ -817,14 +817,14 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderResponse.date"); + throw new FHIRException("Cannot call addChild on a singleton property OrderResponse.date"); } else if (name.equals("who")) { this.who = new Reference(); return this.who; } else if (name.equals("orderStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderResponse.orderStatus"); + throw new FHIRException("Cannot call addChild on a singleton property OrderResponse.orderStatus"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderResponse.description"); + throw new FHIRException("Cannot call addChild on a singleton property OrderResponse.description"); } else if (name.equals("fulfillment")) { return addFulfillment(); } else diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Organization.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Organization.java index b6e05407a3..17361b9627 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Organization.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Organization.java @@ -767,12 +767,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.active"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.active"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.name"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.name"); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("address")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Parameters.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Parameters.java index 0542f77c11..db6c258f88 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Parameters.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Parameters.java @@ -259,7 +259,7 @@ else if (name.equals("part")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Parameters.name"); + throw new FHIRException("Cannot call addChild on a singleton property Parameters.name"); } else if (name.equals("valueBoolean")) { this.value = new BooleanType(); return this.value; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Patient.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Patient.java index ce74d297f0..6b0b8ffda9 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Patient.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Patient.java @@ -590,7 +590,7 @@ public Base addChild(String name) throws FHIRException { this.address = new Address(); return this.address; } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.gender"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; @@ -1013,7 +1013,7 @@ public Base addChild(String name) throws FHIRException { this.language = new CodeableConcept(); return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.preferred"); } else return super.addChild(name); } @@ -1226,7 +1226,7 @@ public Base addChild(String name) throws FHIRException { this.other = new Reference(); return this.other; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.type"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.type"); } else return super.addChild(name); } @@ -2254,15 +2254,15 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.active"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.active"); } else if (name.equals("name")) { return addName(); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.birthDate"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); return this.deceased; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/PaymentNotice.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/PaymentNotice.java index 478db244cc..a183c3a8d6 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/PaymentNotice.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/PaymentNotice.java @@ -656,7 +656,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.created"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/PaymentReconciliation.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/PaymentReconciliation.java index e3acd66fc5..a71fc1e1dd 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/PaymentReconciliation.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/PaymentReconciliation.java @@ -499,7 +499,7 @@ public Base addChild(String name) throws FHIRException { this.payee = new Reference(); return this.payee; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.date"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.date"); } else if (name.equals("amount")) { this.amount = new Money(); return this.amount; @@ -682,7 +682,7 @@ public Base addChild(String name) throws FHIRException { this.type = new Coding(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.text"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.text"); } else return super.addChild(name); } @@ -1589,9 +1589,9 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.disposition"); } else if (name.equals("ruleset")) { this.ruleset = new Coding(); return this.ruleset; @@ -1599,7 +1599,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.created"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Period.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Period.java index c586480db4..67892b5aef 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Period.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Period.java @@ -211,9 +211,9 @@ else if (name.equals("end")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.start"); + throw new FHIRException("Cannot call addChild on a singleton property Period.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.end"); + throw new FHIRException("Cannot call addChild on a singleton property Period.end"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Person.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Person.java index 323d70c9d5..ff56bac0f1 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Person.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Person.java @@ -373,7 +373,7 @@ public Base addChild(String name) throws FHIRException { this.target = new Reference(); return this.target; } else if (name.equals("assurance")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.assurance"); + throw new FHIRException("Cannot call addChild on a singleton property Person.assurance"); } else return super.addChild(name); } @@ -1010,9 +1010,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Person.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Person.birthDate"); } else if (name.equals("address")) { return addAddress(); } else if (name.equals("photo")) { @@ -1022,7 +1022,7 @@ public Base addChild(String name) throws FHIRException { this.managingOrganization = new Reference(); return this.managingOrganization; } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.active"); + throw new FHIRException("Cannot call addChild on a singleton property Person.active"); } else if (name.equals("link")) { return addLink(); } else diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Practitioner.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Practitioner.java index 308b43d4bd..586f5f9b83 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Practitioner.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Practitioner.java @@ -1462,7 +1462,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.active"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.active"); } else if (name.equals("name")) { this.name = new HumanName(); return this.name; @@ -1471,9 +1471,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("address")) { return addAddress(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.birthDate"); } else if (name.equals("photo")) { return addPhoto(); } else if (name.equals("practitionerRole")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Procedure.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Procedure.java index 1ba31f6b43..a85ddf308a 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Procedure.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Procedure.java @@ -1901,7 +1901,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.status"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -1909,7 +1909,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("notPerformed")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.notPerformed"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.notPerformed"); } else if (name.equals("reasonNotPerformed")) { return addReasonNotPerformed(); } else if (name.equals("bodySite")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcedureRequest.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcedureRequest.java index 5d8e201565..dcbe4aab50 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcedureRequest.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcedureRequest.java @@ -1433,7 +1433,7 @@ public Base addChild(String name) throws FHIRException { this.performer = new Reference(); return this.performer; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.status"); } else if (name.equals("notes")) { return addNotes(); } else if (name.equals("asNeededBoolean")) { @@ -1443,12 +1443,12 @@ public Base addChild(String name) throws FHIRException { this.asNeeded = new CodeableConcept(); return this.asNeeded; } else if (name.equals("orderedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.orderedOn"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.orderedOn"); } else if (name.equals("orderer")) { this.orderer = new Reference(); return this.orderer; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.priority"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcessRequest.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcessRequest.java index a3be637b93..c7b15f2f3e 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcessRequest.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcessRequest.java @@ -294,7 +294,7 @@ public void setProperty(String name, Base value) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.sequenceLinkId"); } else return super.addChild(name); } @@ -1330,7 +1330,7 @@ else if (name.equals("period")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("action")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.action"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.action"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("ruleset")) { @@ -1340,7 +1340,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.created"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; @@ -1357,15 +1357,15 @@ public Base addChild(String name) throws FHIRException { this.response = new Reference(); return this.response; } else if (name.equals("nullify")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.nullify"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.nullify"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.reference"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.reference"); } else if (name.equals("item")) { return addItem(); } else if (name.equals("include")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.include"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.include"); } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.exclude"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcessResponse.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcessResponse.java index 0f867662b3..c9472b3dc1 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcessResponse.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ProcessResponse.java @@ -175,7 +175,7 @@ public Base addChild(String name) throws FHIRException { this.type = new Coding(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.text"); } else return super.addChild(name); } @@ -971,7 +971,7 @@ public Base addChild(String name) throws FHIRException { this.outcome = new Coding(); return this.outcome; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.disposition"); } else if (name.equals("ruleset")) { this.ruleset = new Coding(); return this.ruleset; @@ -979,7 +979,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.created"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Provenance.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Provenance.java index a036e484fe..fa0ab8aa00 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Provenance.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Provenance.java @@ -648,7 +648,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.target"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.target"); } else return super.addChild(name); } @@ -1003,14 +1003,14 @@ else if (name.equals("agent")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("role")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.role"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.role"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.reference"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.display"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.display"); } else if (name.equals("agent")) { this.agent = new ProvenanceAgentComponent(); return this.agent; @@ -1689,7 +1689,7 @@ public Base addChild(String name) throws FHIRException { this.period = new Period(); return this.period; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.recorded"); } else if (name.equals("reason")) { return addReason(); } else if (name.equals("activity")) { @@ -1699,7 +1699,7 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.policy"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.policy"); } else if (name.equals("agent")) { return addAgent(); } else if (name.equals("entity")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Quantity.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Quantity.java index 0221320ca2..13456d956e 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Quantity.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Quantity.java @@ -574,15 +574,15 @@ else if (name.equals("code")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.value"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.value"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.comparator"); } else if (name.equals("unit")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.unit"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.unit"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.system"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.system"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.code"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.code"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Questionnaire.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Questionnaire.java index aafcade637..7b39a3c06a 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Questionnaire.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Questionnaire.java @@ -1089,17 +1089,17 @@ else if (name.equals("question")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.linkId"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.title"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.title"); } else if (name.equals("concept")) { return addConcept(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.text"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.text"); } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.required"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.required"); } else if (name.equals("repeats")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.repeats"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.repeats"); } else if (name.equals("group")) { return addGroup(); } else if (name.equals("question")) { @@ -1794,17 +1794,17 @@ else if (name.equals("group")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.linkId"); } else if (name.equals("concept")) { return addConcept(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.text"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.text"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.type"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.type"); } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.required"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.required"); } else if (name.equals("repeats")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.repeats"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.repeats"); } else if (name.equals("options")) { this.options = new Reference(); return this.options; @@ -2417,17 +2417,17 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.version"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.version"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.status"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.date"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.publisher"); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("subjectType")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.subjectType"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.subjectType"); } else if (name.equals("group")) { this.group = new GroupComponent(); return this.group; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/QuestionnaireResponse.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/QuestionnaireResponse.java index 5d37cee8de..a80bbc26ef 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/QuestionnaireResponse.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/QuestionnaireResponse.java @@ -590,11 +590,11 @@ else if (name.equals("question")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.linkId"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.title"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.title"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.text"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -879,9 +879,9 @@ else if (name.equals("answer")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.linkId"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.text"); } else if (name.equals("answer")) { return addAnswer(); } else @@ -1952,7 +1952,7 @@ public Base addChild(String name) throws FHIRException { this.questionnaire = new Reference(); return this.questionnaire; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.status"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -1960,7 +1960,7 @@ public Base addChild(String name) throws FHIRException { this.author = new Reference(); return this.author; } else if (name.equals("authored")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.authored"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.authored"); } else if (name.equals("source")) { this.source = new Reference(); return this.source; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Reference.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Reference.java index c12d507b98..b94d2442f6 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Reference.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Reference.java @@ -256,9 +256,9 @@ else if (name.equals("display")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.reference"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.display"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.display"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ReferralRequest.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ReferralRequest.java index 526fa1a17e..7fb07c3e43 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ReferralRequest.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ReferralRequest.java @@ -1279,11 +1279,11 @@ else if (name.equals("fulfillmentTime")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.status"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.date"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -1305,12 +1305,12 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("dateSent")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.dateSent"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.dateSent"); } else if (name.equals("reason")) { this.reason = new CodeableConcept(); return this.reason; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.description"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.description"); } else if (name.equals("serviceRequested")) { return addServiceRequested(); } else if (name.equals("supportingInformation")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/RelatedPerson.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/RelatedPerson.java index c345e5adf0..be3ec213f4 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/RelatedPerson.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/RelatedPerson.java @@ -626,9 +626,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.gender"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.birthDate"); } else if (name.equals("address")) { return addAddress(); } else if (name.equals("photo")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Resource.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Resource.java index 36177d66b9..bb096782e7 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Resource.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Resource.java @@ -317,14 +317,14 @@ else if (name.equals("language")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.id"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.id"); } else if (name.equals("meta")) { this.meta = new Meta(); return this.meta; } else if (name.equals("implicitRules")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.implicitRules"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.implicitRules"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.language"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.language"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/RiskAssessment.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/RiskAssessment.java index 39d80fe6c2..9063d5150d 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/RiskAssessment.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/RiskAssessment.java @@ -429,7 +429,7 @@ public Base addChild(String name) throws FHIRException { this.probability = new CodeableConcept(); return this.probability; } else if (name.equals("relativeRisk")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.relativeRisk"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.relativeRisk"); } else if (name.equals("whenPeriod")) { this.when = new Period(); return this.when; @@ -437,7 +437,7 @@ public Base addChild(String name) throws FHIRException { this.when = new Range(); return this.when; } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.rationale"); } else return super.addChild(name); } @@ -1126,7 +1126,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.date"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.date"); } else if (name.equals("condition")) { this.condition = new Reference(); return this.condition; @@ -1147,7 +1147,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("prediction")) { return addPrediction(); } else if (name.equals("mitigation")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.mitigation"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.mitigation"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SampledData.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SampledData.java index e52bb1f461..00aa51eb42 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SampledData.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SampledData.java @@ -557,17 +557,17 @@ public Base addChild(String name) throws FHIRException { this.origin = new SimpleQuantity(); return this.origin; } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.period"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.period"); } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.factor"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.factor"); } else if (name.equals("lowerLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.lowerLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.lowerLimit"); } else if (name.equals("upperLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.upperLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.upperLimit"); } else if (name.equals("dimensions")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.dimensions"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.dimensions"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.data"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.data"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Schedule.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Schedule.java index 1d80355d11..0bce03dc6b 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Schedule.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Schedule.java @@ -397,7 +397,7 @@ public Base addChild(String name) throws FHIRException { this.planningHorizon = new Period(); return this.planningHorizon; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SearchParameter.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SearchParameter.java index 23c8f7a545..79d17db815 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SearchParameter.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SearchParameter.java @@ -375,7 +375,7 @@ else if (name.equals("telecom")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -1483,35 +1483,35 @@ else if (name.equals("target")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.url"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.url"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.status"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.date"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.date"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.requirements"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.code"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.code"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.base"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.base"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.type"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.type"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.description"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.description"); } else if (name.equals("xpath")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.xpath"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.xpath"); } else if (name.equals("xpathUsage")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.xpathUsage"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.xpathUsage"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.target"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.target"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Signature.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Signature.java index 21ca4221a2..b485c9eeb6 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Signature.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Signature.java @@ -410,7 +410,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("type")) { return addType(); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.when"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.when"); } else if (name.equals("whoUri")) { this.who = new UriType(); return this.who; @@ -418,9 +418,9 @@ public Base addChild(String name) throws FHIRException { this.who = new Reference(); return this.who; } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.contentType"); } else if (name.equals("blob")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.blob"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.blob"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Slot.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Slot.java index a87c167b79..2894bb67fc 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Slot.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Slot.java @@ -733,15 +733,15 @@ public Base addChild(String name) throws FHIRException { this.schedule = new Reference(); return this.schedule; } else if (name.equals("freeBusyType")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.freeBusyType"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.freeBusyType"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.start"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.end"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.end"); } else if (name.equals("overbooked")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.overbooked"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.overbooked"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Specimen.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Specimen.java index 2f637e8a58..4b5f3f0045 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Specimen.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Specimen.java @@ -558,7 +558,7 @@ public Base addChild(String name) throws FHIRException { this.collector = new Reference(); return this.collector; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.comment"); } else if (name.equals("collectedDateTime")) { this.collected = new DateTimeType(); return this.collected; @@ -842,7 +842,7 @@ else if (name.equals("additive")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.description"); } else if (name.equals("procedure")) { this.procedure = new CodeableConcept(); return this.procedure; @@ -1235,7 +1235,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.description"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -1911,7 +1911,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.status"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -1924,7 +1924,7 @@ public Base addChild(String name) throws FHIRException { this.accessionIdentifier = new Identifier(); return this.accessionIdentifier; } else if (name.equals("receivedTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.receivedTime"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.receivedTime"); } else if (name.equals("collection")) { this.collection = new SpecimenCollectionComponent(); return this.collection; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/StructureDefinition.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/StructureDefinition.java index 8aa43cdcef..fc32876034 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/StructureDefinition.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/StructureDefinition.java @@ -492,7 +492,7 @@ else if (name.equals("telecom")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -848,13 +848,13 @@ else if (name.equals("comments")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.identity"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.identity"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.uri"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.uri"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("comments")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.comments"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.comments"); } else return super.addChild(name); } @@ -2871,51 +2871,51 @@ else if (name.equals("differential")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.display"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.display"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.copyright"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.fhirVersion"); } else if (name.equals("mapping")) { return addMapping(); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.kind"); } else if (name.equals("constrainedType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.constrainedType"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.constrainedType"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.abstract"); } else if (name.equals("contextType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.contextType"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.contextType"); } else if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.context"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.base"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.base"); } else if (name.equals("snapshot")) { this.snapshot = new StructureDefinitionSnapshotComponent(); return this.snapshot; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Subscription.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Subscription.java index acd7ec5f18..e86d0ab215 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Subscription.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Subscription.java @@ -684,13 +684,13 @@ else if (name.equals("header")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.type"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.type"); } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.endpoint"); } else if (name.equals("payload")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.payload"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.payload"); } else if (name.equals("header")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.header"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.header"); } else return super.addChild(name); } @@ -1255,20 +1255,20 @@ else if (name.equals("tag")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.criteria"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.reason"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.reason"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.status"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.status"); } else if (name.equals("error")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.error"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.error"); } else if (name.equals("channel")) { this.channel = new SubscriptionChannelComponent(); return this.channel; } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.end"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.end"); } else if (name.equals("tag")) { return addTag(); } else diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Substance.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Substance.java index 4650488121..3e6f96a07c 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Substance.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Substance.java @@ -224,7 +224,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.expiry"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.expiry"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; @@ -825,7 +825,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.description"); } else if (name.equals("instance")) { return addInstance(); } else if (name.equals("ingredient")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SupplyDelivery.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SupplyDelivery.java index 0e3639b021..60c00628b1 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SupplyDelivery.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SupplyDelivery.java @@ -870,7 +870,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyDelivery.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyDelivery.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -890,7 +890,7 @@ public Base addChild(String name) throws FHIRException { this.whenPrepared = new Period(); return this.whenPrepared; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyDelivery.time"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyDelivery.time"); } else if (name.equals("destination")) { this.destination = new Reference(); return this.destination; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SupplyRequest.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SupplyRequest.java index ca7d4fa38f..02be99fdbf 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SupplyRequest.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/SupplyRequest.java @@ -957,12 +957,12 @@ public Base addChild(String name) throws FHIRException { this.source = new Reference(); return this.source; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.date"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.date"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.status"); } else if (name.equals("kind")) { this.kind = new CodeableConcept(); return this.kind; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/TestScript.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/TestScript.java index 0243053961..6aecab53a1 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/TestScript.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/TestScript.java @@ -1000,7 +1000,7 @@ else if (name.equals("telecom")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -1401,9 +1401,9 @@ else if (name.equals("description")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else return super.addChild(name); } @@ -1908,15 +1908,15 @@ else if (name.equals("conformance")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.required"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.required"); } else if (name.equals("validated")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.validated"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.validated"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination"); } else if (name.equals("link")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.link"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.link"); } else if (name.equals("conformance")) { this.conformance = new Reference(); return this.conformance; @@ -2226,9 +2226,9 @@ else if (name.equals("resource")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("autocreate")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.autocreate"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.autocreate"); } else if (name.equals("autodelete")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.autodelete"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.autodelete"); } else if (name.equals("resource")) { this.resource = new Reference(); return this.resource; @@ -2583,13 +2583,13 @@ else if (name.equals("sourceId")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.headerField"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.path"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else return super.addChild(name); } @@ -3895,31 +3895,31 @@ public Base addChild(String name) throws FHIRException { this.type = new Coding(); return this.type; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.resource"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("accept")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.accept"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.accept"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.contentType"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination"); } else if (name.equals("encodeRequestUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.encodeRequestUrl"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.encodeRequestUrl"); } else if (name.equals("params")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.params"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.params"); } else if (name.equals("requestHeader")) { return addRequestHeader(); } else if (name.equals("responseId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.responseId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.responseId"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else if (name.equals("targetId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.targetId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.targetId"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else return super.addChild(name); } @@ -4152,9 +4152,9 @@ else if (name.equals("value")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("field")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.field"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.field"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); } @@ -5458,41 +5458,41 @@ else if (name.equals("warningOnly")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("direction")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.direction"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.direction"); } else if (name.equals("compareToSourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.compareToSourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.compareToSourceId"); } else if (name.equals("compareToSourcePath")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.compareToSourcePath"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.compareToSourcePath"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.contentType"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.headerField"); } else if (name.equals("minimumId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.minimumId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.minimumId"); } else if (name.equals("navigationLinks")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.navigationLinks"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.navigationLinks"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.operator"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.operator"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.path"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.resource"); } else if (name.equals("response")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.response"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.response"); } else if (name.equals("responseCode")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.responseCode"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.responseCode"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else if (name.equals("validateProfileId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.validateProfileId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.validateProfileId"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else if (name.equals("warningOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.warningOnly"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.warningOnly"); } else return super.addChild(name); } @@ -5836,9 +5836,9 @@ else if (name.equals("action")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("metadata")) { this.metadata = new TestScriptMetadataComponent(); return this.metadata; @@ -7589,37 +7589,37 @@ else if (name.equals("teardown")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.version"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.status"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.date"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.copyright"); } else if (name.equals("metadata")) { this.metadata = new TestScriptMetadataComponent(); return this.metadata; } else if (name.equals("multiserver")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.multiserver"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.multiserver"); } else if (name.equals("fixture")) { return addFixture(); } else if (name.equals("profile")) { diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Timing.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Timing.java index c63db09a8a..ae5140f259 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Timing.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/Timing.java @@ -1420,25 +1420,25 @@ public Base addChild(String name) throws FHIRException { this.bounds = new Period(); return this.bounds; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.count"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.count"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.duration"); } else if (name.equals("durationMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.durationMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.durationMax"); } else if (name.equals("durationUnits")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.durationUnits"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.durationUnits"); } else if (name.equals("frequency")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.frequency"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.frequency"); } else if (name.equals("frequencyMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.frequencyMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.frequencyMax"); } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.period"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.period"); } else if (name.equals("periodMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.periodMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.periodMax"); } else if (name.equals("periodUnits")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.periodUnits"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.periodUnits"); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.when"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.when"); } else return super.addChild(name); } @@ -1673,7 +1673,7 @@ else if (name.equals("code")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("event")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.event"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.event"); } else if (name.equals("repeat")) { this.repeat = new TimingRepeatComponent(); return this.repeat; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ValueSet.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ValueSet.java index e78a6e033c..61e30ae0a3 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ValueSet.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/ValueSet.java @@ -391,7 +391,7 @@ else if (name.equals("telecom")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -756,11 +756,11 @@ else if (name.equals("concept")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("caseSensitive")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.caseSensitive"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.caseSensitive"); } else if (name.equals("concept")) { return addConcept(); } else @@ -1249,13 +1249,13 @@ else if (name.equals("concept")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.code"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.abstract"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.display"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.definition"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.definition"); } else if (name.equals("designation")) { return addDesignation(); } else if (name.equals("concept")) { @@ -1516,12 +1516,12 @@ else if (name.equals("value")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.language"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.value"); } else return super.addChild(name); } @@ -1772,7 +1772,7 @@ else if (name.equals("exclude")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("import")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.import"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.import"); } else if (name.equals("include")) { return addInclude(); } else if (name.equals("exclude")) { @@ -2111,9 +2111,9 @@ else if (name.equals("filter")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("concept")) { return addConcept(); } else if (name.equals("filter")) { @@ -2406,9 +2406,9 @@ else if (name.equals("designation")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.display"); } else if (name.equals("designation")) { return addDesignation(); } else @@ -2690,11 +2690,11 @@ else if (name.equals("value")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.property"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.property"); } else if (name.equals("op")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.op"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.op"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.value"); } else return super.addChild(name); } @@ -3174,13 +3174,13 @@ else if (name.equals("contains")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.identifier"); } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.timestamp"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.total"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.total"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.offset"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.offset"); } else if (name.equals("parameter")) { return addParameter(); } else if (name.equals("contains")) { @@ -3455,7 +3455,7 @@ else if (name.equals("value[x]")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("valueString")) { this.value = new StringType(); return this.value; @@ -3955,15 +3955,15 @@ else if (name.equals("contains")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.system"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.abstract"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.display"); } else if (name.equals("contains")) { return addContains(); } else @@ -5296,38 +5296,38 @@ else if (name.equals("expansion")) @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.url"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.status"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.date"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.date"); } else if (name.equals("lockedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.lockedDate"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.lockedDate"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.description"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("immutable")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.immutable"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.immutable"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.copyright"); } else if (name.equals("extensible")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.extensible"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.extensible"); } else if (name.equals("codeSystem")) { this.codeSystem = new ValueSetCodeSystemComponent(); return this.codeSystem; diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/VisionPrescription.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/VisionPrescription.java index 3243f290cd..95231b73d6 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/VisionPrescription.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/model/VisionPrescription.java @@ -1275,34 +1275,34 @@ public Base addChild(String name) throws FHIRException { this.product = new Coding(); return this.product; } else if (name.equals("eye")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.eye"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.eye"); } else if (name.equals("sphere")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.sphere"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.sphere"); } else if (name.equals("cylinder")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.cylinder"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.cylinder"); } else if (name.equals("axis")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.axis"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.axis"); } else if (name.equals("prism")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.prism"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.prism"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.base"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.base"); } else if (name.equals("add")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.add"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.add"); } else if (name.equals("power")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.power"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.power"); } else if (name.equals("backCurve")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.backCurve"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.backCurve"); } else if (name.equals("diameter")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.diameter"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.diameter"); } else if (name.equals("duration")) { this.duration = new SimpleQuantity(); return this.duration; } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.color"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.color"); } else if (name.equals("brand")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.brand"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.brand"); } else if (name.equals("notes")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.notes"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.notes"); } else return super.addChild(name); } @@ -1860,7 +1860,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("dateWritten")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.dateWritten"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.dateWritten"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Account.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Account.java index 5b76608335..92fa9a25e9 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Account.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Account.java @@ -892,12 +892,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.name"); + throw new FHIRException("Cannot call addChild on a singleton property Account.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.status"); + throw new FHIRException("Cannot call addChild on a singleton property Account.status"); } else if (name.equals("activePeriod")) { this.activePeriod = new Period(); return this.activePeriod; @@ -917,7 +917,7 @@ public Base addChild(String name) throws FHIRException { this.owner = new Reference(); return this.owner; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.description"); + throw new FHIRException("Cannot call addChild on a singleton property Account.description"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ActionDefinition.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ActionDefinition.java index ecc8764949..99f058429f 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ActionDefinition.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ActionDefinition.java @@ -905,7 +905,7 @@ public Base addChild(String name) throws FHIRException { this.actionIdentifier = new Identifier(); return this.actionIdentifier; } else if (name.equals("relationship")) { - throw new FHIRException("Cannot call addChild on a primitive type ActionDefinition.relationship"); + throw new FHIRException("Cannot call addChild on a singleton property ActionDefinition.relationship"); } else if (name.equals("offsetDuration")) { this.offset = new Duration(); return this.offset; @@ -913,7 +913,7 @@ public Base addChild(String name) throws FHIRException { this.offset = new Range(); return this.offset; } else if (name.equals("anchor")) { - throw new FHIRException("Cannot call addChild on a primitive type ActionDefinition.anchor"); + throw new FHIRException("Cannot call addChild on a singleton property ActionDefinition.anchor"); } else return super.addChild(name); } @@ -1372,9 +1372,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ActionDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ActionDefinition.path"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type ActionDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property ActionDefinition.expression"); } else return super.addChild(name); } @@ -2507,13 +2507,13 @@ public Base addChild(String name) throws FHIRException { this.actionIdentifier = new Identifier(); return this.actionIdentifier; } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ActionDefinition.label"); + throw new FHIRException("Cannot call addChild on a singleton property ActionDefinition.label"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ActionDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ActionDefinition.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ActionDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ActionDefinition.description"); } else if (name.equals("textEquivalent")) { - throw new FHIRException("Cannot call addChild on a primitive type ActionDefinition.textEquivalent"); + throw new FHIRException("Cannot call addChild on a singleton property ActionDefinition.textEquivalent"); } else if (name.equals("concept")) { return addConcept(); } else if (name.equals("supportingEvidence")) { @@ -2524,9 +2524,9 @@ public Base addChild(String name) throws FHIRException { this.relatedAction = new ActionDefinitionRelatedActionComponent(); return this.relatedAction; } else if (name.equals("participantType")) { - throw new FHIRException("Cannot call addChild on a primitive type ActionDefinition.participantType"); + throw new FHIRException("Cannot call addChild on a singleton property ActionDefinition.participantType"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ActionDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ActionDefinition.type"); } else if (name.equals("behavior")) { return addBehavior(); } else if (name.equals("resource")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Address.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Address.java index bd05ddfd5c..66f09586d2 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Address.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Address.java @@ -1119,23 +1119,23 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.use"); + throw new FHIRException("Cannot call addChild on a singleton property Address.use"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.type"); + throw new FHIRException("Cannot call addChild on a singleton property Address.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.text"); + throw new FHIRException("Cannot call addChild on a singleton property Address.text"); } else if (name.equals("line")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.line"); + throw new FHIRException("Cannot call addChild on a singleton property Address.line"); } else if (name.equals("city")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.city"); + throw new FHIRException("Cannot call addChild on a singleton property Address.city"); } else if (name.equals("district")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.district"); + throw new FHIRException("Cannot call addChild on a singleton property Address.district"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.state"); + throw new FHIRException("Cannot call addChild on a singleton property Address.state"); } else if (name.equals("postalCode")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.postalCode"); + throw new FHIRException("Cannot call addChild on a singleton property Address.postalCode"); } else if (name.equals("country")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.country"); + throw new FHIRException("Cannot call addChild on a singleton property Address.country"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AllergyIntolerance.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AllergyIntolerance.java index b0404d2c75..31fa41e193 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AllergyIntolerance.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AllergyIntolerance.java @@ -1564,15 +1564,15 @@ public Base addChild(String name) throws FHIRException { this.substance = new CodeableConcept(); return this.substance; } else if (name.equals("certainty")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.certainty"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.certainty"); } else if (name.equals("manifestation")) { return addManifestation(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.description"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.description"); } else if (name.equals("onset")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.onset"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.onset"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.severity"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.severity"); } else if (name.equals("exposureRoute")) { this.exposureRoute = new CodeableConcept(); return this.exposureRoute; @@ -2701,13 +2701,13 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.status"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.status"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.type"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.type"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.category"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.category"); } else if (name.equals("criticality")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.criticality"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.criticality"); } else if (name.equals("substance")) { this.substance = new CodeableConcept(); return this.substance; @@ -2715,7 +2715,7 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.recordedDate"); } else if (name.equals("recorder")) { this.recorder = new Reference(); return this.recorder; @@ -2723,9 +2723,9 @@ public Base addChild(String name) throws FHIRException { this.reporter = new Reference(); return this.reporter; } else if (name.equals("onset")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.onset"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.onset"); } else if (name.equals("lastOccurence")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.lastOccurence"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.lastOccurence"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("reaction")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Annotation.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Annotation.java index 245be871db..31c24f072c 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Annotation.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Annotation.java @@ -319,9 +319,9 @@ public Base addChild(String name) throws FHIRException { this.author = new StringType(); return this.author; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.time"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.time"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.text"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.text"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Appointment.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Appointment.java index 23889489ff..a6ca5a65db 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Appointment.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Appointment.java @@ -921,9 +921,9 @@ public Base addChild(String name) throws FHIRException { this.actor = new Reference(); return this.actor; } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.required"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.required"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.status"); } else return super.addChild(name); } @@ -2176,7 +2176,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.status"); } else if (name.equals("serviceCategory")) { this.serviceCategory = new CodeableConcept(); return this.serviceCategory; @@ -2191,21 +2191,21 @@ public Base addChild(String name) throws FHIRException { this.reason = new CodeableConcept(); return this.reason; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.priority"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.description"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.description"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.start"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.end"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.end"); } else if (name.equals("minutesDuration")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.minutesDuration"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.minutesDuration"); } else if (name.equals("slot")) { return addSlot(); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.created"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.created"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.comment"); } else if (name.equals("participant")) { return addParticipant(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AppointmentResponse.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AppointmentResponse.java index dabd095b59..57ea98e516 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AppointmentResponse.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AppointmentResponse.java @@ -718,18 +718,18 @@ public Base addChild(String name) throws FHIRException { this.appointment = new Reference(); return this.appointment; } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.start"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.end"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.end"); } else if (name.equals("participantType")) { return addParticipantType(); } else if (name.equals("actor")) { this.actor = new Reference(); return this.actor; } else if (name.equals("participantStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.participantStatus"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.participantStatus"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.comment"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Attachment.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Attachment.java index 88d17b602e..f1aeb32a35 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Attachment.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Attachment.java @@ -697,21 +697,21 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.contentType"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.language"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.language"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.data"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.data"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.url"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.url"); } else if (name.equals("size")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.size"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.size"); } else if (name.equals("hash")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.hash"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.hash"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.title"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.title"); } else if (name.equals("creation")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.creation"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.creation"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AuditEvent.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AuditEvent.java index e57103c551..d9b85909f7 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AuditEvent.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/AuditEvent.java @@ -1364,16 +1364,16 @@ public Base addChild(String name) throws FHIRException { this.userId = new Identifier(); return this.userId; } else if (name.equals("altId")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.altId"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.altId"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.name"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.name"); } else if (name.equals("requestor")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.requestor"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.requestor"); } else if (name.equals("location")) { this.location = new Reference(); return this.location; } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.policy"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.policy"); } else if (name.equals("media")) { this.media = new Coding(); return this.media; @@ -1667,9 +1667,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.address"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.address"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.type"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.type"); } else return super.addChild(name); } @@ -1960,7 +1960,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("site")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.site"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.site"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; @@ -2678,11 +2678,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.name"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.description"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.description"); } else if (name.equals("query")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.query"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.query"); } else if (name.equals("detail")) { return addDetail(); } else @@ -2949,9 +2949,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.type"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.type"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.value"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.value"); } else return super.addChild(name); } @@ -3683,13 +3683,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("subtype")) { return addSubtype(); } else if (name.equals("action")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.action"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.action"); } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.recorded"); } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcome"); } else if (name.equals("outcomeDesc")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcomeDesc"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcomeDesc"); } else if (name.equals("purposeOfEvent")) { return addPurposeOfEvent(); } else if (name.equals("agent")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Basic.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Basic.java index a7450bb3f3..62a9bcba27 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Basic.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Basic.java @@ -444,7 +444,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Basic.created"); + throw new FHIRException("Cannot call addChild on a singleton property Basic.created"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Binary.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Binary.java index 780737e056..7440c4ccf9 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Binary.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Binary.java @@ -245,9 +245,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.contentType"); } else if (name.equals("content")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.content"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.content"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/BodySite.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/BodySite.java index 6716909ae3..f7ab87ae92 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/BodySite.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/BodySite.java @@ -492,7 +492,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("modifier")) { return addModifier(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type BodySite.description"); + throw new FHIRException("Cannot call addChild on a singleton property BodySite.description"); } else if (name.equals("image")) { return addImage(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Bundle.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Bundle.java index f904e2d8b3..8ba653edcf 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Bundle.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Bundle.java @@ -809,9 +809,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("relation")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.relation"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.relation"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.url"); } else return super.addChild(name); } @@ -1295,7 +1295,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("link")) { return addLink(); } else if (name.equals("fullUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.fullUrl"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.fullUrl"); } else if (name.equals("resource")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.resource"); } else if (name.equals("search")) { @@ -1582,9 +1582,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.mode"); } else if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.score"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.score"); } else return super.addChild(name); } @@ -2166,17 +2166,17 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("method")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.method"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.method"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.url"); } else if (name.equals("ifNoneMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifNoneMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifNoneMatch"); } else if (name.equals("ifModifiedSince")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifModifiedSince"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifModifiedSince"); } else if (name.equals("ifMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifMatch"); } else if (name.equals("ifNoneExist")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifNoneExist"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifNoneExist"); } else return super.addChild(name); } @@ -2592,13 +2592,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.status"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.status"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.location"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.location"); } else if (name.equals("etag")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.etag"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.etag"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.lastModified"); } else return super.addChild(name); } @@ -3071,9 +3071,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.type"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.type"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.total"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.total"); } else if (name.equals("link")) { return addLink(); } else if (name.equals("entry")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CarePlan.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CarePlan.java index bd2da1a46c..775a350c05 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CarePlan.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CarePlan.java @@ -772,7 +772,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.code"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.code"); } else if (name.equals("plan")) { this.plan = new Reference(); return this.plan; @@ -2559,12 +2559,12 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("goal")) { return addGoal(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("prohibited")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.prohibited"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.prohibited"); } else if (name.equals("scheduledTiming")) { this.scheduled = new Timing(); return this.scheduled; @@ -2592,7 +2592,7 @@ public Base addChild(String name) throws FHIRException { this.quantity = new SimpleQuantity(); return this.quantity; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description"); } else return super.addChild(name); } @@ -3898,7 +3898,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status"); } else if (name.equals("context")) { this.context = new Reference(); return this.context; @@ -3908,11 +3908,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("modified")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.modified"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.modified"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description"); } else if (name.equals("addresses")) { return addAddresses(); } else if (name.equals("support")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CareTeam.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CareTeam.java index 704c16af7e..ab56d8a0c6 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CareTeam.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CareTeam.java @@ -893,7 +893,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("type")) { return addType(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CareTeam.name"); + throw new FHIRException("Cannot call addChild on a singleton property CareTeam.name"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Claim.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Claim.java index 44790d70d2..3c7c851b81 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Claim.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Claim.java @@ -1053,7 +1053,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("diagnosis")) { this.diagnosis = new Coding(); return this.diagnosis; @@ -1369,9 +1369,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.date"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.date"); } else if (name.equals("procedureCoding")) { this.procedure = new Coding(); return this.procedure; @@ -1981,9 +1981,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.focal"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.focal"); } else if (name.equals("coverageIdentifier")) { this.coverage = new Identifier(); return this.coverage; @@ -1991,9 +1991,9 @@ public Base addChild(String name) throws FHIRException { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.businessArrangement"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.preAuthRef"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); return this.claimResponse; @@ -3748,7 +3748,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; @@ -3768,7 +3768,7 @@ public Base addChild(String name) throws FHIRException { this.providerQualification = new Coding(); return this.providerQualification; } else if (name.equals("diagnosisLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.diagnosisLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.diagnosisLinkId"); } else if (name.equals("service")) { this.service = new Coding(); return this.service; @@ -3794,9 +3794,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.points"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -4742,7 +4742,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; @@ -4758,9 +4758,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.points"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -5589,7 +5589,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; @@ -5605,9 +5605,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.points"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -5924,9 +5924,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("initial")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.initial"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.initial"); } else if (name.equals("priorDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.priorDate"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.priorDate"); } else if (name.equals("priorMaterial")) { this.priorMaterial = new Coding(); return this.priorMaterial; @@ -6203,7 +6203,7 @@ public Base addChild(String name) throws FHIRException { this.reason = new Coding(); return this.reason; } else if (name.equals("extractionDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.extractionDate"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.extractionDate"); } else return super.addChild(name); } @@ -8696,7 +8696,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.type"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.type"); } else if (name.equals("subType")) { return addSubType(); } else if (name.equals("identifier")) { @@ -8708,7 +8708,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.created"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.created"); } else if (name.equals("billablePeriod")) { this.billablePeriod = new Period(); return this.billablePeriod; @@ -8731,7 +8731,7 @@ public Base addChild(String name) throws FHIRException { this.organization = new Reference(); return this.organization; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.use"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.use"); } else if (name.equals("priority")) { this.priority = new Coding(); return this.priority; @@ -8794,7 +8794,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("coverage")) { return addCoverage(); } else if (name.equals("accidentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.accidentDate"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.accidentDate"); } else if (name.equals("accidentType")) { this.accidentType = new Coding(); return this.accidentType; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ClaimResponse.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ClaimResponse.java index fb3b14ec70..2c62748ab7 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ClaimResponse.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ClaimResponse.java @@ -379,9 +379,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -743,7 +743,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -1038,7 +1038,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("subDetail")) { @@ -1393,7 +1393,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -1627,7 +1627,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("adjudication")) { return addAdjudication(); } else @@ -1973,7 +1973,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -2444,7 +2444,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("service")) { this.service = new Coding(); return this.service; @@ -2452,7 +2452,7 @@ public Base addChild(String name) throws FHIRException { this.fee = new Money(); return this.fee; } else if (name.equals("noteNumberLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumberLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumberLinkId"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -2824,7 +2824,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -3430,7 +3430,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -3823,11 +3823,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("detailSequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.detailSequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.detailSequenceLinkId"); } else if (name.equals("subdetailSequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.subdetailSequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.subdetailSequenceLinkId"); } else if (name.equals("code")) { this.code = new Coding(); return this.code; @@ -4119,12 +4119,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.number"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.number"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.text"); } else return super.addChild(name); } @@ -4680,9 +4680,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.focal"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.focal"); } else if (name.equals("coverageIdentifier")) { this.coverage = new Identifier(); return this.coverage; @@ -4690,9 +4690,9 @@ public Base addChild(String name) throws FHIRException { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.businessArrangement"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.preAuthRef"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); return this.claimResponse; @@ -6288,7 +6288,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.created"); } else if (name.equals("organizationIdentifier")) { this.organization = new Identifier(); return this.organization; @@ -6308,9 +6308,9 @@ public Base addChild(String name) throws FHIRException { this.requestOrganization = new Reference(); return this.requestOrganization; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.disposition"); } else if (name.equals("payeeType")) { this.payeeType = new Coding(); return this.payeeType; @@ -6336,7 +6336,7 @@ public Base addChild(String name) throws FHIRException { this.paymentAdjustmentReason = new Coding(); return this.paymentAdjustmentReason; } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.paymentDate"); } else if (name.equals("paymentAmount")) { this.paymentAmount = new Money(); return this.paymentAmount; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ClinicalImpression.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ClinicalImpression.java index 3ec04a9063..e8b505457a 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ClinicalImpression.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ClinicalImpression.java @@ -615,7 +615,7 @@ public Base addChild(String name) throws FHIRException { this.item = new CodeableConcept(); return this.item; } else if (name.equals("cause")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.cause"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.cause"); } else return super.addChild(name); } @@ -835,7 +835,7 @@ public Base addChild(String name) throws FHIRException { this.item = new CodeableConcept(); return this.item; } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.reason"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.reason"); } else return super.addChild(name); } @@ -2206,11 +2206,11 @@ public Base addChild(String name) throws FHIRException { this.assessor = new Reference(); return this.assessor; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.status"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.date"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.description"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.description"); } else if (name.equals("previous")) { this.previous = new Reference(); return this.previous; @@ -2225,9 +2225,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("investigations")) { return addInvestigations(); } else if (name.equals("protocol")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.protocol"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.protocol"); } else if (name.equals("summary")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.summary"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.summary"); } else if (name.equals("finding")) { return addFinding(); } else if (name.equals("resolved")) { @@ -2235,7 +2235,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("ruledOut")) { return addRuledOut(); } else if (name.equals("prognosis")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.prognosis"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.prognosis"); } else if (name.equals("plan")) { return addPlan(); } else if (name.equals("action")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CodeSystem.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CodeSystem.java index 34721ff1a2..06abb52e57 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CodeSystem.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CodeSystem.java @@ -593,7 +593,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -994,13 +994,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.operator"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.operator"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.value"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.value"); } else return super.addChild(name); } @@ -1337,11 +1337,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.type"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.type"); } else return super.addChild(name); } @@ -1882,11 +1882,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.display"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.display"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.definition"); } else if (name.equals("designation")) { return addDesignation(); } else if (name.equals("property")) { @@ -2202,12 +2202,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.language"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.value"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.value"); } else return super.addChild(name); } @@ -2505,7 +2505,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("valueCode")) { this.value = new CodeType(); return this.value; @@ -4275,44 +4275,44 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.url"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.version"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.copyright"); } else if (name.equals("caseSensitive")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.caseSensitive"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.caseSensitive"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.valueSet"); } else if (name.equals("compositional")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.compositional"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.compositional"); } else if (name.equals("versionNeeded")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.versionNeeded"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.versionNeeded"); } else if (name.equals("content")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.content"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.content"); } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.count"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.count"); } else if (name.equals("filter")) { return addFilter(); } else if (name.equals("property")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CodeableConcept.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CodeableConcept.java index 53107a9fae..29dfdfac94 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CodeableConcept.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CodeableConcept.java @@ -242,7 +242,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("coding")) { return addCoding(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeableConcept.text"); + throw new FHIRException("Cannot call addChild on a singleton property CodeableConcept.text"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Coding.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Coding.java index 0ba96e15f5..ae5f6cbf8d 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Coding.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Coding.java @@ -517,15 +517,15 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.system"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.version"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.code"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.display"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.display"); } else if (name.equals("userSelected")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.userSelected"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.userSelected"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Communication.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Communication.java index aacfcabf4d..29daff78be 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Communication.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Communication.java @@ -1422,14 +1422,14 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("medium")) { return addMedium(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.status"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.status"); } else if (name.equals("encounter")) { this.encounter = new Reference(); return this.encounter; } else if (name.equals("sent")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.sent"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.sent"); } else if (name.equals("received")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.received"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.received"); } else if (name.equals("reason")) { return addReason(); } else if (name.equals("subject")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CommunicationRequest.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CommunicationRequest.java index a3b773785a..aea7ac9a74 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CommunicationRequest.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CommunicationRequest.java @@ -1552,7 +1552,7 @@ public Base addChild(String name) throws FHIRException { this.requester = new Reference(); return this.requester; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.status"); } else if (name.equals("encounter")) { this.encounter = new Reference(); return this.encounter; @@ -1565,7 +1565,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("reason")) { return addReason(); } else if (name.equals("requestedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.requestedOn"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.requestedOn"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CompartmentDefinition.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CompartmentDefinition.java index 0ca1be88cf..74ae519356 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CompartmentDefinition.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/CompartmentDefinition.java @@ -416,7 +416,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -751,11 +751,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.code"); } else if (name.equals("param")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.param"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.param"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.documentation"); } else return super.addChild(name); } @@ -1760,27 +1760,27 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.url"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.description"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.requirements"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.code"); } else if (name.equals("search")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.search"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.search"); } else if (name.equals("resource")) { return addResource(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Composition.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Composition.java index cc148a8c05..006cd55540 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Composition.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Composition.java @@ -645,9 +645,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.mode"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.time"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.time"); } else if (name.equals("party")) { this.party = new Reference(); return this.party; @@ -1580,7 +1580,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -1588,7 +1588,7 @@ public Base addChild(String name) throws FHIRException { this.text = new Narrative(); return this.text; } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.mode"); } else if (name.equals("orderedBy")) { this.orderedBy = new CodeableConcept(); return this.orderedBy; @@ -2688,7 +2688,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.date"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2696,11 +2696,11 @@ public Base addChild(String name) throws FHIRException { this.class_ = new CodeableConcept(); return this.class_; } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.status"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.status"); } else if (name.equals("confidentiality")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.confidentiality"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.confidentiality"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ConceptMap.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ConceptMap.java index 3b2737c3d4..832a1722d8 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ConceptMap.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ConceptMap.java @@ -240,7 +240,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -630,11 +630,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.system"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("target")) { return addTarget(); } else @@ -1276,15 +1276,15 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.system"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("equivalence")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.equivalence"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.equivalence"); } else if (name.equals("comments")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.comments"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.comments"); } else if (name.equals("dependsOn")) { return addDependsOn(); } else if (name.equals("product")) { @@ -1655,11 +1655,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.element"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.element"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.system"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.system"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else return super.addChild(name); } @@ -2952,32 +2952,32 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.copyright"); } else if (name.equals("sourceUri")) { this.source = new UriType(); return this.source; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Condition.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Condition.java index caf01763cf..712c049668 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Condition.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Condition.java @@ -1958,7 +1958,7 @@ public Base addChild(String name) throws FHIRException { this.asserter = new Reference(); return this.asserter; } else if (name.equals("dateRecorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.dateRecorded"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.dateRecorded"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -1966,9 +1966,9 @@ public Base addChild(String name) throws FHIRException { this.category = new CodeableConcept(); return this.category; } else if (name.equals("clinicalStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.clinicalStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.clinicalStatus"); } else if (name.equals("verificationStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.verificationStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.verificationStatus"); } else if (name.equals("severity")) { this.severity = new CodeableConcept(); return this.severity; @@ -2013,7 +2013,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("bodySite")) { return addBodySite(); } else if (name.equals("notes")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.notes"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.notes"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Conformance.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Conformance.java index 371ffa7514..86e8e05063 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Conformance.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Conformance.java @@ -2103,7 +2103,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -2428,11 +2428,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.name"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.version"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.version"); } else if (name.equals("releaseDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.releaseDate"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.releaseDate"); } else return super.addChild(name); } @@ -2692,9 +2692,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.description"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.url"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.url"); } else return super.addChild(name); } @@ -3414,9 +3414,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else if (name.equals("security")) { this.security = new ConformanceRestSecurityComponent(); return this.security; @@ -3425,13 +3425,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("interaction")) { return addInteraction(); } else if (name.equals("transactionMode")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.transactionMode"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.transactionMode"); } else if (name.equals("searchParam")) { return addSearchParam(); } else if (name.equals("operation")) { return addOperation(); } else if (name.equals("compartment")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.compartment"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.compartment"); } else return super.addChild(name); } @@ -3836,11 +3836,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("cors")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.cors"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.cors"); } else if (name.equals("service")) { return addService(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.description"); } else if (name.equals("certificate")) { return addCertificate(); } else @@ -4095,9 +4095,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.type"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.type"); } else if (name.equals("blob")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.blob"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.blob"); } else return super.addChild(name); } @@ -5139,28 +5139,28 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.type"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.type"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; } else if (name.equals("interaction")) { return addInteraction(); } else if (name.equals("versioning")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.versioning"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.versioning"); } else if (name.equals("readHistory")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.readHistory"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.readHistory"); } else if (name.equals("updateCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.updateCreate"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.updateCreate"); } else if (name.equals("conditionalCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.conditionalCreate"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.conditionalCreate"); } else if (name.equals("conditionalUpdate")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.conditionalUpdate"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.conditionalUpdate"); } else if (name.equals("conditionalDelete")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.conditionalDelete"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.conditionalDelete"); } else if (name.equals("searchInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.searchInclude"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.searchInclude"); } else if (name.equals("searchRevInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.searchRevInclude"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.searchRevInclude"); } else if (name.equals("searchParam")) { return addSearchParam(); } else @@ -5472,9 +5472,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.code"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.code"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else return super.addChild(name); } @@ -6143,19 +6143,19 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.name"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.definition"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.type"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.type"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.target"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.target"); } else if (name.equals("modifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.modifier"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.modifier"); } else if (name.equals("chain")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.chain"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.chain"); } else return super.addChild(name); } @@ -6439,9 +6439,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.code"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.code"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else return super.addChild(name); } @@ -6700,7 +6700,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.name"); } else if (name.equals("definition")) { this.definition = new Reference(); return this.definition; @@ -7089,9 +7089,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("reliableCache")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.reliableCache"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.reliableCache"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else if (name.equals("event")) { return addEvent(); } else @@ -7336,7 +7336,7 @@ public Base addChild(String name) throws FHIRException { this.protocol = new Coding(); return this.protocol; } else if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.address"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.address"); } else return super.addChild(name); } @@ -7936,11 +7936,11 @@ public Base addChild(String name) throws FHIRException { this.code = new Coding(); return this.code; } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.category"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.category"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.mode"); } else if (name.equals("focus")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.focus"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.focus"); } else if (name.equals("request")) { this.request = new Reference(); return this.request; @@ -7948,7 +7948,7 @@ public Base addChild(String name) throws FHIRException { this.response = new Reference(); return this.response; } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else return super.addChild(name); } @@ -8297,9 +8297,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; @@ -10087,31 +10087,31 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.url"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.version"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.status"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.date"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.copyright"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.kind"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.kind"); } else if (name.equals("software")) { this.software = new ConformanceSoftwareComponent(); return this.software; @@ -10119,11 +10119,11 @@ public Base addChild(String name) throws FHIRException { this.implementation = new ConformanceImplementationComponent(); return this.implementation; } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.fhirVersion"); } else if (name.equals("acceptUnknown")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.acceptUnknown"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.acceptUnknown"); } else if (name.equals("format")) { - throw new FHIRException("Cannot call addChild on a primitive type Conformance.format"); + throw new FHIRException("Cannot call addChild on a singleton property Conformance.format"); } else if (name.equals("profile")) { return addProfile(); } else if (name.equals("rest")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ContactPoint.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ContactPoint.java index ccee0397d3..ebe3089d75 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ContactPoint.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ContactPoint.java @@ -806,13 +806,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.system"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.value"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.value"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.use"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.use"); } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.rank"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.rank"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Contract.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Contract.java index f36558c7df..0122a7d176 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Contract.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Contract.java @@ -1218,7 +1218,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("effectiveTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.effectiveTime"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.effectiveTime"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; @@ -1226,9 +1226,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.points"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -2055,7 +2055,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.issued"); } else if (name.equals("applies")) { this.applies = new Period(); return this.applies; @@ -2074,7 +2074,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("agent")) { return addAgent(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.text"); } else if (name.equals("valuedItem")) { return addValuedItem(); } else if (name.equals("group")) { @@ -3055,7 +3055,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("effectiveTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.effectiveTime"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.effectiveTime"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; @@ -3063,9 +3063,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.points"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -5023,7 +5023,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.issued"); } else if (name.equals("applies")) { this.applies = new Period(); return this.applies; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Coverage.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Coverage.java index 2a7d960625..94e27778f1 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Coverage.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Coverage.java @@ -1306,7 +1306,7 @@ public Base addChild(String name) throws FHIRException { this.issuer = new Reference(); return this.issuer; } else if (name.equals("bin")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.bin"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.bin"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1331,21 +1331,21 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("group")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.group"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.group"); } else if (name.equals("plan")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.plan"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.plan"); } else if (name.equals("subPlan")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subPlan"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subPlan"); } else if (name.equals("dependent")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.dependent"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.dependent"); } else if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.sequence"); } else if (name.equals("exception")) { return addException(); } else if (name.equals("school")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.school"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.school"); } else if (name.equals("network")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.network"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.network"); } else if (name.equals("contract")) { return addContract(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DataElement.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DataElement.java index 26096d6a05..5e8a085a15 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DataElement.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DataElement.java @@ -445,7 +445,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -857,13 +857,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.identity"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.identity"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.uri"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.uri"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.name"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.comment"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.comment"); } else return super.addChild(name); } @@ -2022,29 +2022,29 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.url"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.version"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.version"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.status"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.publisher"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.date"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.date"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.name"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.copyright"); } else if (name.equals("stringency")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.stringency"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.stringency"); } else if (name.equals("mapping")) { return addMapping(); } else if (name.equals("element")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DataRequirement.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DataRequirement.java index ce9816de8c..7dd6d96983 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DataRequirement.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DataRequirement.java @@ -531,7 +531,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.path"); } else if (name.equals("valueSetString")) { this.valueSet = new StringType(); return this.valueSet; @@ -539,7 +539,7 @@ public Base addChild(String name) throws FHIRException { this.valueSet = new Reference(); return this.valueSet; } else if (name.equals("valueCode")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.valueCode"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.valueCode"); } else if (name.equals("valueCoding")) { return addValueCoding(); } else if (name.equals("valueCodeableConcept")) { @@ -849,7 +849,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.path"); } else if (name.equals("valueDateTime")) { this.value = new DateTimeType(); return this.value; @@ -1344,12 +1344,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.type"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.type"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.mustSupport"); } else if (name.equals("codeFilter")) { return addCodeFilter(); } else if (name.equals("dateFilter")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DecisionSupportRule.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DecisionSupportRule.java index db644bbd5e..ce8a67ca62 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DecisionSupportRule.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DecisionSupportRule.java @@ -464,7 +464,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("trigger")) { return addTrigger(); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type DecisionSupportRule.condition"); + throw new FHIRException("Cannot call addChild on a singleton property DecisionSupportRule.condition"); } else if (name.equals("action")) { return addAction(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DetectedIssue.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DetectedIssue.java index 57b1b11fc4..c546ad6ee1 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DetectedIssue.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DetectedIssue.java @@ -458,7 +458,7 @@ public Base addChild(String name) throws FHIRException { this.action = new CodeableConcept(); return this.action; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.date"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.date"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; @@ -1266,13 +1266,13 @@ public Base addChild(String name) throws FHIRException { this.category = new CodeableConcept(); return this.category; } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.severity"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.severity"); } else if (name.equals("implicated")) { return addImplicated(); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.detail"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.detail"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.date"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.date"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; @@ -1280,7 +1280,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.reference"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.reference"); } else if (name.equals("mitigation")) { return addMitigation(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Device.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Device.java index 783dc82327..3e2921969e 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Device.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Device.java @@ -1366,22 +1366,22 @@ public Base addChild(String name) throws FHIRException { this.udiCarrier = new Identifier(); return this.udiCarrier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.status"); + throw new FHIRException("Cannot call addChild on a singleton property Device.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.lotNumber"); } else if (name.equals("manufacturer")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufacturer"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufacturer"); } else if (name.equals("manufactureDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufactureDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufactureDate"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.expirationDate"); } else if (name.equals("model")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.model"); + throw new FHIRException("Cannot call addChild on a singleton property Device.model"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.version"); + throw new FHIRException("Cannot call addChild on a singleton property Device.version"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -1394,7 +1394,7 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.url"); + throw new FHIRException("Cannot call addChild on a singleton property Device.url"); } else if (name.equals("note")) { return addNote(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceComponent.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceComponent.java index 0cd4918aa0..e93f3a8bf4 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceComponent.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceComponent.java @@ -580,7 +580,7 @@ public Base addChild(String name) throws FHIRException { this.componentId = new Identifier(); return this.componentId; } else if (name.equals("productionSpec")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.productionSpec"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.productionSpec"); } else return super.addChild(name); } @@ -1331,7 +1331,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("lastSystemChange")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.lastSystemChange"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.lastSystemChange"); } else if (name.equals("source")) { this.source = new Reference(); return this.source; @@ -1344,7 +1344,7 @@ public Base addChild(String name) throws FHIRException { this.parameterGroup = new CodeableConcept(); return this.parameterGroup; } else if (name.equals("measurementPrinciple")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.measurementPrinciple"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.measurementPrinciple"); } else if (name.equals("productionSpecification")) { return addProductionSpecification(); } else if (name.equals("languageCode")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceMetric.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceMetric.java index fa4ba9a00f..7e73972d3b 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceMetric.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceMetric.java @@ -1151,11 +1151,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.type"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.type"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.state"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.state"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.time"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.time"); } else return super.addChild(name); } @@ -2005,11 +2005,11 @@ public Base addChild(String name) throws FHIRException { this.parent = new Reference(); return this.parent; } else if (name.equals("operationalStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.operationalStatus"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.operationalStatus"); } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.color"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.color"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.category"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.category"); } else if (name.equals("measurementPeriod")) { this.measurementPeriod = new Timing(); return this.measurementPeriod; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceUseRequest.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceUseRequest.java index 96d61d1641..76793efaf8 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceUseRequest.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceUseRequest.java @@ -1520,7 +1520,7 @@ public Base addChild(String name) throws FHIRException { this.bodySite = new Reference(); return this.bodySite; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.status"); } else if (name.equals("device")) { this.device = new Reference(); return this.device; @@ -1532,13 +1532,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("indication")) { return addIndication(); } else if (name.equals("notes")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.notes"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.notes"); } else if (name.equals("prnReason")) { return addPrnReason(); } else if (name.equals("orderedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.orderedOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.orderedOn"); } else if (name.equals("recordedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.recordedOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.recordedOn"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -1552,7 +1552,7 @@ public Base addChild(String name) throws FHIRException { this.timing = new DateTimeType(); return this.timing; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.priority"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceUseStatement.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceUseStatement.java index 6aa516789a..7e6c9f906f 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceUseStatement.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DeviceUseStatement.java @@ -752,9 +752,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("indication")) { return addIndication(); } else if (name.equals("notes")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.notes"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.notes"); } else if (name.equals("recordedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.recordedOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.recordedOn"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DiagnosticOrder.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DiagnosticOrder.java index f94985865e..d343e1235f 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DiagnosticOrder.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DiagnosticOrder.java @@ -876,12 +876,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.status"); } else if (name.equals("description")) { this.description = new CodeableConcept(); return this.description; } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.dateTime"); } else if (name.equals("actor")) { this.actor = new Reference(); return this.actor; @@ -1321,7 +1321,7 @@ public Base addChild(String name) throws FHIRException { this.bodySite = new CodeableConcept(); return this.bodySite; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.status"); } else if (name.equals("event")) { return addEvent(); } else @@ -2354,9 +2354,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.status"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.priority"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.priority"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DiagnosticReport.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DiagnosticReport.java index a544e46fd2..5898282ea9 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DiagnosticReport.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DiagnosticReport.java @@ -490,7 +490,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.comment"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.comment"); } else if (name.equals("link")) { this.link = new Reference(); return this.link; @@ -1870,7 +1870,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -1890,7 +1890,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.issued"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.issued"); } else if (name.equals("performer")) { this.performer = new Reference(); return this.performer; @@ -1905,7 +1905,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("image")) { return addImage(); } else if (name.equals("conclusion")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.conclusion"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.conclusion"); } else if (name.equals("codedDiagnosis")) { return addCodedDiagnosis(); } else if (name.equals("presentedForm")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DocumentManifest.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DocumentManifest.java index 3a2c6aec2c..02e8009e8a 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DocumentManifest.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DocumentManifest.java @@ -1389,13 +1389,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.created"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.created"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.source"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.source"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.status"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.description"); } else if (name.equals("content")) { return addContent(); } else if (name.equals("related")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DocumentReference.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DocumentReference.java index 3782deb025..762747d165 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DocumentReference.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/DocumentReference.java @@ -413,7 +413,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.code"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.code"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; @@ -2671,18 +2671,18 @@ public Base addChild(String name) throws FHIRException { this.authenticator = new Reference(); return this.authenticator; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.created"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.created"); } else if (name.equals("indexed")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.indexed"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.indexed"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.status"); } else if (name.equals("docStatus")) { this.docStatus = new CodeableConcept(); return this.docStatus; } else if (name.equals("relatesTo")) { return addRelatesTo(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.description"); } else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("content")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Element.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Element.java index e500c7ab31..6dfbe91133 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Element.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Element.java @@ -303,7 +303,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Element.id"); + throw new FHIRException("Cannot call addChild on a singleton property Element.id"); } else if (name.equals("extension")) { return addExtension(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ElementDefinition.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ElementDefinition.java index b6fbb4f8e6..3d30b8d9b3 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ElementDefinition.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ElementDefinition.java @@ -1130,13 +1130,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("discriminator")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.discriminator"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.discriminator"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.description"); } else if (name.equals("ordered")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.ordered"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.ordered"); } else if (name.equals("rules")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.rules"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.rules"); } else return super.addChild(name); } @@ -1474,11 +1474,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max"); } else return super.addChild(name); } @@ -1936,13 +1936,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.code"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.profile"); } else if (name.equals("aggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.aggregation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.aggregation"); } else if (name.equals("versioning")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.versioning"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.versioning"); } else return super.addChild(name); } @@ -2519,17 +2519,17 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("key")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.key"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.key"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.severity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.severity"); } else if (name.equals("human")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.human"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.human"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.expression"); } else if (name.equals("xpath")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.xpath"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.xpath"); } else return super.addChild(name); } @@ -2871,9 +2871,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.strength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.strength"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.description"); } else if (name.equals("valueSetUri")) { this.valueSet = new UriType(); return this.valueSet; @@ -3202,11 +3202,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.identity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.identity"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.language"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.language"); } else if (name.equals("map")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.map"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.map"); } else return super.addChild(name); } @@ -5482,37 +5482,37 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else if (name.equals("representation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.representation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.representation"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.name"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.label"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.label"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("slicing")) { this.slicing = new ElementDefinitionSlicingComponent(); return this.slicing; } else if (name.equals("short")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.short"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.short"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.definition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.definition"); } else if (name.equals("comments")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.comments"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.comments"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.alias"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.alias"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max"); } else if (name.equals("base")) { this.base = new ElementDefinitionBaseComponent(); return this.base; } else if (name.equals("contentReference")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.contentReference"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.contentReference"); } else if (name.equals("type")) { return addType(); } else if (name.equals("defaultValueBoolean")) { @@ -5615,7 +5615,7 @@ public Base addChild(String name) throws FHIRException { this.defaultValue = new Meta(); return this.defaultValue; } else if (name.equals("meaningWhenMissing")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.meaningWhenMissing"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.meaningWhenMissing"); } else if (name.equals("fixedBoolean")) { this.fixed = new BooleanType(); return this.fixed; @@ -6112,17 +6112,17 @@ public Base addChild(String name) throws FHIRException { this.maxValue = new Meta(); return this.maxValue; } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.maxLength"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.condition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.condition"); } else if (name.equals("constraint")) { return addConstraint(); } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mustSupport"); } else if (name.equals("isModifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isModifier"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isModifier"); } else if (name.equals("isSummary")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isSummary"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isSummary"); } else if (name.equals("binding")) { this.binding = new ElementDefinitionBindingComponent(); return this.binding; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EligibilityRequest.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EligibilityRequest.java index 0f4281a81a..541225fb56 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EligibilityRequest.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EligibilityRequest.java @@ -1103,7 +1103,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityRequest.created"); } else if (name.equals("targetIdentifier")) { this.target = new Identifier(); return this.target; @@ -1150,7 +1150,7 @@ public Base addChild(String name) throws FHIRException { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityRequest.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityRequest.businessArrangement"); } else if (name.equals("servicedDate")) { this.serviced = new DateType(); return this.serviced; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EligibilityResponse.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EligibilityResponse.java index d4e0b619b8..21f14486af 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EligibilityResponse.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EligibilityResponse.java @@ -1932,9 +1932,9 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.disposition"); } else if (name.equals("ruleset")) { this.ruleset = new Coding(); return this.ruleset; @@ -1942,7 +1942,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.created"); } else if (name.equals("organizationIdentifier")) { this.organization = new Identifier(); return this.organization; @@ -1962,7 +1962,7 @@ public Base addChild(String name) throws FHIRException { this.requestOrganization = new Reference(); return this.requestOrganization; } else if (name.equals("inforce")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.inforce"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.inforce"); } else if (name.equals("contract")) { this.contract = new Reference(); return this.contract; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Encounter.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Encounter.java index 914c17c25c..81bfc8b414 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Encounter.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Encounter.java @@ -843,7 +843,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -2337,7 +2337,7 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -3797,11 +3797,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); } else if (name.equals("class")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.class"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.class"); } else if (name.equals("type")) { return addType(); } else if (name.equals("priority")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EnrollmentRequest.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EnrollmentRequest.java index dfafa046fd..4e1985a283 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EnrollmentRequest.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EnrollmentRequest.java @@ -766,7 +766,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.created"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EnrollmentResponse.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EnrollmentResponse.java index 44da43e311..7f9be5daa2 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EnrollmentResponse.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EnrollmentResponse.java @@ -793,9 +793,9 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.disposition"); } else if (name.equals("ruleset")) { this.ruleset = new Coding(); return this.ruleset; @@ -803,7 +803,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.created"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EpisodeOfCare.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EpisodeOfCare.java index 6199ecaf9e..aaffb54cd1 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EpisodeOfCare.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/EpisodeOfCare.java @@ -429,7 +429,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1370,7 +1370,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); } else if (name.equals("type")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ExpansionProfile.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ExpansionProfile.java index b2fb2d7f5b..358a0b9905 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ExpansionProfile.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ExpansionProfile.java @@ -239,7 +239,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -841,9 +841,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.system"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.version"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.version"); } else return super.addChild(name); } @@ -1251,9 +1251,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.system"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.version"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.version"); } else return super.addChild(name); } @@ -1805,7 +1805,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.language"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; @@ -2177,7 +2177,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.language"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; @@ -3745,48 +3745,48 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.url"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.version"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.status"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.description"); } else if (name.equals("codeSystem")) { this.codeSystem = new ExpansionProfileCodeSystemComponent(); return this.codeSystem; } else if (name.equals("includeDesignations")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.includeDesignations"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.includeDesignations"); } else if (name.equals("designation")) { this.designation = new ExpansionProfileDesignationComponent(); return this.designation; } else if (name.equals("includeDefinition")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.includeDefinition"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.includeDefinition"); } else if (name.equals("includeInactive")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.includeInactive"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.includeInactive"); } else if (name.equals("excludeNested")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.excludeNested"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.excludeNested"); } else if (name.equals("excludeNotForUI")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.excludeNotForUI"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.excludeNotForUI"); } else if (name.equals("excludePostCoordinated")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.excludePostCoordinated"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.excludePostCoordinated"); } else if (name.equals("displayLanguage")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.displayLanguage"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.displayLanguage"); } else if (name.equals("limitedExpansion")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.limitedExpansion"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.limitedExpansion"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ExplanationOfBenefit.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ExplanationOfBenefit.java index 9bfb9ca2da..9b5a76e7f7 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ExplanationOfBenefit.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ExplanationOfBenefit.java @@ -713,7 +713,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("diagnosis")) { this.diagnosis = new Coding(); return this.diagnosis; @@ -1029,9 +1029,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.date"); } else if (name.equals("procedureCoding")) { this.procedure = new Coding(); return this.procedure; @@ -1299,7 +1299,7 @@ public Base addChild(String name) throws FHIRException { this.coverage = new Reference(); return this.coverage; } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.preAuthRef"); } else return super.addChild(name); } @@ -3173,7 +3173,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; @@ -3193,7 +3193,7 @@ public Base addChild(String name) throws FHIRException { this.providerQualification = new Coding(); return this.providerQualification; } else if (name.equals("diagnosisLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.diagnosisLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.diagnosisLinkId"); } else if (name.equals("service")) { this.service = new Coding(); return this.service; @@ -3219,9 +3219,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.points"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -3233,7 +3233,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("subSite")) { return addSubSite(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -3669,7 +3669,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.value"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.value"); } else return super.addChild(name); } @@ -4587,7 +4587,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; @@ -4603,9 +4603,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.points"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -4993,7 +4993,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.value"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.value"); } else return super.addChild(name); } @@ -5844,7 +5844,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; @@ -5860,9 +5860,9 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.points"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -6241,7 +6241,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.value"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.value"); } else return super.addChild(name); } @@ -6530,9 +6530,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("initial")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.initial"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.initial"); } else if (name.equals("priorDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.priorDate"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.priorDate"); } else if (name.equals("priorMaterial")) { this.priorMaterial = new Coding(); return this.priorMaterial; @@ -7005,7 +7005,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequenceLinkId"); } else if (name.equals("service")) { this.service = new Coding(); return this.service; @@ -7013,7 +7013,7 @@ public Base addChild(String name) throws FHIRException { this.fee = new Money(); return this.fee; } else if (name.equals("noteNumberLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumberLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumberLinkId"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -7385,7 +7385,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.value"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.value"); } else return super.addChild(name); } @@ -7991,7 +7991,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.value"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.value"); } else return super.addChild(name); } @@ -8266,7 +8266,7 @@ public Base addChild(String name) throws FHIRException { this.reason = new Coding(); return this.reason; } else if (name.equals("extractionDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.extractionDate"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.extractionDate"); } else return super.addChild(name); } @@ -8550,12 +8550,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.number"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.number"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.text"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.text"); } else return super.addChild(name); } @@ -12193,12 +12193,12 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.created"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.created"); } else if (name.equals("billablePeriod")) { this.billablePeriod = new Period(); return this.billablePeriod; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.disposition"); } else if (name.equals("providerIdentifier")) { this.provider = new Identifier(); return this.provider; @@ -12259,12 +12259,12 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("precedence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.precedence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.precedence"); } else if (name.equals("coverage")) { this.coverage = new CoverageComponent(); return this.coverage; } else if (name.equals("accidentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.accidentDate"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.accidentDate"); } else if (name.equals("accidentType")) { this.accidentType = new Coding(); return this.accidentType; @@ -12306,7 +12306,7 @@ public Base addChild(String name) throws FHIRException { this.paymentAdjustmentReason = new Coding(); return this.paymentAdjustmentReason; } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.paymentDate"); } else if (name.equals("paymentAmount")) { this.paymentAmount = new Money(); return this.paymentAmount; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Extension.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Extension.java index 051c261c36..565b4dae66 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Extension.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Extension.java @@ -234,7 +234,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Extension.url"); + throw new FHIRException("Cannot call addChild on a singleton property Extension.url"); } else if (name.equals("valueBoolean")) { this.value = new BooleanType(); return this.value; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/FamilyMemberHistory.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/FamilyMemberHistory.java index e25973fb88..069ed81098 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/FamilyMemberHistory.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/FamilyMemberHistory.java @@ -1562,16 +1562,16 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.date"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.date"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.status"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.status"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.name"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.name"); } else if (name.equals("relationship")) { this.relationship = new CodeableConcept(); return this.relationship; } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.gender"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.gender"); } else if (name.equals("bornPeriod")) { this.born = new Period(); return this.born; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Flag.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Flag.java index ec7ed6bd16..7e078656ef 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Flag.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Flag.java @@ -748,7 +748,7 @@ public Base addChild(String name) throws FHIRException { this.category = new CodeableConcept(); return this.category; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Flag.status"); + throw new FHIRException("Cannot call addChild on a singleton property Flag.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Goal.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Goal.java index 960207f665..c86adfadf1 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Goal.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Goal.java @@ -1492,11 +1492,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("category")) { return addCategory(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.description"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.description"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.status"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.status"); } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.statusDate"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Group.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Group.java index ba12bbf440..e3de17bf6f 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Group.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Group.java @@ -591,7 +591,7 @@ public Base addChild(String name) throws FHIRException { this.value = new Range(); return this.value; } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property Group.exclude"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -901,7 +901,7 @@ public Base addChild(String name) throws FHIRException { this.period = new Period(); return this.period; } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property Group.inactive"); } else return super.addChild(name); } @@ -1607,18 +1607,18 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.type"); + throw new FHIRException("Cannot call addChild on a singleton property Group.type"); } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.actual"); + throw new FHIRException("Cannot call addChild on a singleton property Group.actual"); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.active"); + throw new FHIRException("Cannot call addChild on a singleton property Group.active"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.name"); + throw new FHIRException("Cannot call addChild on a singleton property Group.name"); } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property Group.quantity"); } else if (name.equals("characteristic")) { return addCharacteristic(); } else if (name.equals("member")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/GuidanceResponse.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/GuidanceResponse.java index 453ce02ca8..064c6cb389 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/GuidanceResponse.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/GuidanceResponse.java @@ -1222,13 +1222,13 @@ public Base addChild(String name) throws FHIRException { this.actionIdentifier = new Identifier(); return this.actionIdentifier; } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.label"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.label"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.title"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.description"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.description"); } else if (name.equals("textEquivalent")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.textEquivalent"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.textEquivalent"); } else if (name.equals("concept")) { return addConcept(); } else if (name.equals("supportingEvidence")) { @@ -1241,7 +1241,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("participant")) { return addParticipant(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.type"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.type"); } else if (name.equals("behavior")) { return addBehavior(); } else if (name.equals("resource")) { @@ -1684,7 +1684,7 @@ public Base addChild(String name) throws FHIRException { this.actionIdentifier = new Identifier(); return this.actionIdentifier; } else if (name.equals("relationship")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.relationship"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.relationship"); } else if (name.equals("offsetDuration")) { this.offset = new Duration(); return this.offset; @@ -1692,7 +1692,7 @@ public Base addChild(String name) throws FHIRException { this.offset = new Range(); return this.offset; } else if (name.equals("anchor")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.anchor"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.anchor"); } else return super.addChild(name); } @@ -2616,12 +2616,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("requestId")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.requestId"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.requestId"); } else if (name.equals("module")) { this.module = new Reference(); return this.module; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.status"); } else if (name.equals("evaluationMessage")) { return addEvaluationMessage(); } else if (name.equals("outputParameters")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/HealthcareService.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/HealthcareService.java index d03585fbee..818014db8f 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/HealthcareService.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/HealthcareService.java @@ -626,13 +626,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.allDay"); } else if (name.equals("availableStartTime")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableStartTime"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableStartTime"); } else if (name.equals("availableEndTime")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableEndTime"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableEndTime"); } else return super.addChild(name); } @@ -867,7 +867,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.description"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.description"); } else if (name.equals("during")) { this.during = new Period(); return this.during; @@ -2598,11 +2598,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("location")) { return addLocation(); } else if (name.equals("serviceName")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.serviceName"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.serviceName"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.comment"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.comment"); } else if (name.equals("extraDetails")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.extraDetails"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.extraDetails"); } else if (name.equals("photo")) { this.photo = new Attachment(); return this.photo; @@ -2616,23 +2616,23 @@ public Base addChild(String name) throws FHIRException { this.eligibility = new CodeableConcept(); return this.eligibility; } else if (name.equals("eligibilityNote")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.eligibilityNote"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.eligibilityNote"); } else if (name.equals("programName")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.programName"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.programName"); } else if (name.equals("characteristic")) { return addCharacteristic(); } else if (name.equals("referralMethod")) { return addReferralMethod(); } else if (name.equals("publicKey")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.publicKey"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.publicKey"); } else if (name.equals("appointmentRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.appointmentRequired"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.appointmentRequired"); } else if (name.equals("availableTime")) { return addAvailableTime(); } else if (name.equals("notAvailable")) { return addNotAvailable(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availabilityExceptions"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/HumanName.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/HumanName.java index 5c88065cda..b828ca4c55 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/HumanName.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/HumanName.java @@ -924,17 +924,17 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.use"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.use"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.text"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.text"); } else if (name.equals("family")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.family"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.family"); } else if (name.equals("given")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.given"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.given"); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.prefix"); } else if (name.equals("suffix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.suffix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.suffix"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Identifier.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Identifier.java index 79e9d48460..d68532fe33 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Identifier.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Identifier.java @@ -644,14 +644,14 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.use"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.use"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.system"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.value"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.value"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingExcerpt.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingExcerpt.java index cfa21ce6fb..467bef0e31 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingExcerpt.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingExcerpt.java @@ -598,7 +598,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.uid"); } else if (name.equals("imagingStudy")) { this.imagingStudy = new Reference(); return this.imagingStudy; @@ -874,9 +874,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.type"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.url"); } else return super.addChild(name); } @@ -1554,21 +1554,21 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.contentType"); } else if (name.equals("height")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.height"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.height"); } else if (name.equals("width")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.width"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.width"); } else if (name.equals("frames")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.frames"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.frames"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.duration"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.duration"); } else if (name.equals("size")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.size"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.size"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.title"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.url"); } else return super.addChild(name); } @@ -1874,7 +1874,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.uid"); } else if (name.equals("dicom")) { return addDicom(); } else if (name.equals("instance")) { @@ -2136,9 +2136,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.type"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.url"); } else return super.addChild(name); } @@ -2512,13 +2512,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sopClass")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.sopClass"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.sopClass"); } else if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.uid"); } else if (name.equals("dicom")) { return addDicom(); } else if (name.equals("frameNumbers")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.frameNumbers"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.frameNumbers"); } else return super.addChild(name); } @@ -2778,9 +2778,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.type"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.url"); } else return super.addChild(name); } @@ -3422,12 +3422,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.uid"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("authoringTime")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.authoringTime"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.authoringTime"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; @@ -3435,7 +3435,7 @@ public Base addChild(String name) throws FHIRException { this.title = new CodeableConcept(); return this.title; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingExcerpt.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingExcerpt.description"); } else if (name.equals("study")) { return addStudy(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingObjectSelection.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingObjectSelection.java index fe83f74c1f..6060631099 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingObjectSelection.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingObjectSelection.java @@ -402,9 +402,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url"); } else if (name.equals("imagingStudy")) { this.imagingStudy = new Reference(); return this.imagingStudy; @@ -729,9 +729,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url"); } else if (name.equals("instance")) { return addInstance(); } else @@ -1107,11 +1107,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sopClass")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.sopClass"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.sopClass"); } else if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url"); } else if (name.equals("frame")) { return addFrame(); } else @@ -1370,9 +1370,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.number"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url"); } else return super.addChild(name); } @@ -2019,12 +2019,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("authoringTime")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.authoringTime"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.authoringTime"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; @@ -2032,7 +2032,7 @@ public Base addChild(String name) throws FHIRException { this.title = new CodeableConcept(); return this.title; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.description"); } else if (name.equals("study")) { return addStudy(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingStudy.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingStudy.java index 84fd253992..53529a236c 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingStudy.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImagingStudy.java @@ -967,20 +967,20 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.number"); } else if (name.equals("modality")) { this.modality = new Coding(); return this.modality; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances"); } else if (name.equals("availability")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.availability"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.availability"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.url"); } else if (name.equals("bodySite")) { this.bodySite = new Coding(); return this.bodySite; @@ -988,7 +988,7 @@ public Base addChild(String name) throws FHIRException { this.laterality = new Coding(); return this.laterality; } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started"); } else if (name.equals("instance")) { return addInstance(); } else @@ -1542,15 +1542,15 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.number"); } else if (name.equals("sopClass")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.sopClass"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.sopClass"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.type"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.title"); } else if (name.equals("content")) { return addContent(); } else @@ -2826,21 +2826,21 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("accession")) { this.accession = new Identifier(); return this.accession; } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("availability")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.availability"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.availability"); } else if (name.equals("modalityList")) { return addModalityList(); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started"); } else if (name.equals("order")) { return addOrder(); } else if (name.equals("referrer")) { @@ -2850,15 +2850,15 @@ public Base addChild(String name) throws FHIRException { this.interpreter = new Reference(); return this.interpreter; } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.url"); } else if (name.equals("numberOfSeries")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfSeries"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfSeries"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances"); } else if (name.equals("procedure")) { return addProcedure(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description"); } else if (name.equals("series")) { return addSeries(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Immunization.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Immunization.java index 128e2fc21e..d65baff441 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Immunization.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Immunization.java @@ -545,12 +545,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.date"); } else if (name.equals("detail")) { this.detail = new Reference(); return this.detail; } else if (name.equals("reported")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reported"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reported"); } else return super.addChild(name); } @@ -1183,16 +1183,16 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("doseSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.doseSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.doseSequence"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.description"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.description"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.series"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.series"); } else if (name.equals("seriesDoses")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.seriesDoses"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.seriesDoses"); } else if (name.equals("targetDisease")) { return addTargetDisease(); } else if (name.equals("doseStatus")) { @@ -2687,9 +2687,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.status"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.date"); } else if (name.equals("vaccineCode")) { this.vaccineCode = new CodeableConcept(); return this.vaccineCode; @@ -2697,9 +2697,9 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("wasNotGiven")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.wasNotGiven"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.wasNotGiven"); } else if (name.equals("reported")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reported"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reported"); } else if (name.equals("performer")) { this.performer = new Reference(); return this.performer; @@ -2716,9 +2716,9 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.expirationDate"); } else if (name.equals("site")) { this.site = new CodeableConcept(); return this.site; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImmunizationRecommendation.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImmunizationRecommendation.java index 468939c2ba..cd32262aae 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImmunizationRecommendation.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImmunizationRecommendation.java @@ -639,12 +639,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.date"); } else if (name.equals("vaccineCode")) { this.vaccineCode = new CodeableConcept(); return this.vaccineCode; } else if (name.equals("doseNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.doseNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.doseNumber"); } else if (name.equals("forecastStatus")) { this.forecastStatus = new CodeableConcept(); return this.forecastStatus; @@ -911,7 +911,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.value"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.value"); } else return super.addChild(name); } @@ -1318,14 +1318,14 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("doseSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.doseSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.doseSequence"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.description"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.series"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.series"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImplementationGuide.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImplementationGuide.java index a1194ad6a5..25b9f08311 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImplementationGuide.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ImplementationGuide.java @@ -596,7 +596,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -842,9 +842,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.uri"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.uri"); } else return super.addChild(name); } @@ -1157,9 +1157,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("resource")) { return addResource(); } else @@ -1744,13 +1744,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("example")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.example"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.example"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("acronym")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.acronym"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.acronym"); } else if (name.equals("sourceUri")) { this.source = new UriType(); return this.source; @@ -2017,7 +2017,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; @@ -2632,17 +2632,17 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.source"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.source"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.kind"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.kind"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type"); } else if (name.equals("package")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.package"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.package"); } else if (name.equals("format")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.format"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.format"); } else if (name.equals("page")) { return addPage(); } else @@ -4035,29 +4035,29 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.version"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.copyright"); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.fhirVersion"); } else if (name.equals("dependency")) { return addDependency(); } else if (name.equals("package")) { @@ -4065,7 +4065,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("global")) { return addGlobal(); } else if (name.equals("binary")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.binary"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.binary"); } else if (name.equals("page")) { this.page = new ImplementationGuidePageComponent(); return this.page; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Library.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Library.java index 15492027b6..a7d1a13e95 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Library.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Library.java @@ -344,11 +344,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.name"); + throw new FHIRException("Cannot call addChild on a singleton property Library.name"); } else if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property Library.identifier"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.version"); + throw new FHIRException("Cannot call addChild on a singleton property Library.version"); } else return super.addChild(name); } @@ -778,11 +778,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.name"); + throw new FHIRException("Cannot call addChild on a singleton property Library.name"); } else if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property Library.identifier"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.version"); + throw new FHIRException("Cannot call addChild on a singleton property Library.version"); } else if (name.equals("documentAttachment")) { this.document = new Attachment(); return this.document; @@ -1145,11 +1145,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.name"); + throw new FHIRException("Cannot call addChild on a singleton property Library.name"); } else if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property Library.identifier"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.version"); + throw new FHIRException("Cannot call addChild on a singleton property Library.version"); } else return super.addChild(name); } @@ -1587,13 +1587,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.name"); + throw new FHIRException("Cannot call addChild on a singleton property Library.name"); } else if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property Library.identifier"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.version"); + throw new FHIRException("Cannot call addChild on a singleton property Library.version"); } else if (name.equals("codeSystem")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.codeSystem"); + throw new FHIRException("Cannot call addChild on a singleton property Library.codeSystem"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Linkage.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Linkage.java index be01cbf1b6..e788438657 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Linkage.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Linkage.java @@ -366,7 +366,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Linkage.type"); + throw new FHIRException("Cannot call addChild on a singleton property Linkage.type"); } else if (name.equals("resource")) { this.resource = new Reference(); return this.resource; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ListResource.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ListResource.java index 87a95db750..8af39ead43 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ListResource.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ListResource.java @@ -641,9 +641,9 @@ public Base addChild(String name) throws FHIRException { this.flag = new CodeableConcept(); return this.flag; } else if (name.equals("deleted")) { - throw new FHIRException("Cannot call addChild on a primitive type List.deleted"); + throw new FHIRException("Cannot call addChild on a singleton property List.deleted"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List.date"); + throw new FHIRException("Cannot call addChild on a singleton property List.date"); } else if (name.equals("item")) { this.item = new Reference(); return this.item; @@ -1595,11 +1595,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type List.status"); + throw new FHIRException("Cannot call addChild on a singleton property List.status"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type List.mode"); + throw new FHIRException("Cannot call addChild on a singleton property List.mode"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type List.title"); + throw new FHIRException("Cannot call addChild on a singleton property List.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -1610,7 +1610,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List.date"); + throw new FHIRException("Cannot call addChild on a singleton property List.date"); } else if (name.equals("source")) { this.source = new Reference(); return this.source; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Location.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Location.java index f16bfa7906..211c3bf451 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Location.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Location.java @@ -667,11 +667,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("longitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.longitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.longitude"); } else if (name.equals("latitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.latitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.latitude"); } else if (name.equals("altitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.altitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.altitude"); } else return super.addChild(name); } @@ -1531,13 +1531,13 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.status"); + throw new FHIRException("Cannot call addChild on a singleton property Location.status"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.name"); + throw new FHIRException("Cannot call addChild on a singleton property Location.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.description"); + throw new FHIRException("Cannot call addChild on a singleton property Location.description"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Location.mode"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Measure.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Measure.java index 3f93293964..8efb6086a0 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Measure.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Measure.java @@ -1073,9 +1073,9 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.name"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("population")) { return addPopulation(); } else if (name.equals("stratifier")) { @@ -1538,16 +1538,16 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.type"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.type"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.name"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.criteria"); } else return super.addChild(name); } @@ -1863,9 +1863,9 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.criteria"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.path"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.path"); } else return super.addChild(name); } @@ -2276,11 +2276,11 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.usage"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.usage"); } else if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.criteria"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.path"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.path"); } else return super.addChild(name); } @@ -3488,27 +3488,27 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("library")) { return addLibrary(); } else if (name.equals("disclaimer")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.disclaimer"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.disclaimer"); } else if (name.equals("scoring")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.scoring"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.scoring"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.type"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.type"); } else if (name.equals("riskAdjustment")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.riskAdjustment"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.riskAdjustment"); } else if (name.equals("rateAggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.rateAggregation"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.rateAggregation"); } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.rationale"); } else if (name.equals("clinicalRecommendationStatement")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.clinicalRecommendationStatement"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.clinicalRecommendationStatement"); } else if (name.equals("improvementNotation")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.improvementNotation"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.improvementNotation"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.definition"); } else if (name.equals("guidance")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.guidance"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.guidance"); } else if (name.equals("set")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.set"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.set"); } else if (name.equals("group")) { return addGroup(); } else if (name.equals("supplementalData")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MeasureReport.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MeasureReport.java index c7a29cc387..981af916e2 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MeasureReport.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MeasureReport.java @@ -717,7 +717,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("population")) { return addPopulation(); } else if (name.equals("measureScore")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.measureScore"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.measureScore"); } else if (name.equals("stratifier")) { return addStratifier(); } else if (name.equals("supplementalData")) { @@ -1063,9 +1063,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.type"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.type"); } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.count"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.count"); } else if (name.equals("patients")) { this.patients = new Reference(); return this.patients; @@ -1632,11 +1632,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.value"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.value"); } else if (name.equals("population")) { return addPopulation(); } else if (name.equals("measureScore")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.measureScore"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.measureScore"); } else return super.addChild(name); } @@ -1967,9 +1967,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.type"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.type"); } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.count"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.count"); } else if (name.equals("patients")) { this.patients = new Reference(); return this.patients; @@ -2537,9 +2537,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.value"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.value"); } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.count"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.count"); } else if (name.equals("patients")) { this.patients = new Reference(); return this.patients; @@ -3303,7 +3303,7 @@ public Base addChild(String name) throws FHIRException { this.measure = new Reference(); return this.measure; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.type"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.type"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -3311,9 +3311,9 @@ public Base addChild(String name) throws FHIRException { this.period = new Period(); return this.period; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.date"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.date"); } else if (name.equals("reportingOrganization")) { this.reportingOrganization = new Reference(); return this.reportingOrganization; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Media.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Media.java index d213a637ce..dc603cabb0 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Media.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Media.java @@ -1049,7 +1049,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.type"); + throw new FHIRException("Cannot call addChild on a singleton property Media.type"); } else if (name.equals("subtype")) { this.subtype = new CodeableConcept(); return this.subtype; @@ -1063,15 +1063,15 @@ public Base addChild(String name) throws FHIRException { this.operator = new Reference(); return this.operator; } else if (name.equals("deviceName")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.deviceName"); + throw new FHIRException("Cannot call addChild on a singleton property Media.deviceName"); } else if (name.equals("height")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.height"); + throw new FHIRException("Cannot call addChild on a singleton property Media.height"); } else if (name.equals("width")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.width"); + throw new FHIRException("Cannot call addChild on a singleton property Media.width"); } else if (name.equals("frames")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.frames"); + throw new FHIRException("Cannot call addChild on a singleton property Media.frames"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Media.duration"); } else if (name.equals("content")) { this.content = new Attachment(); return this.content; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Medication.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Medication.java index df0253d690..ce9dd1ec5a 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Medication.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Medication.java @@ -759,9 +759,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.expirationDate"); } else return super.addChild(name); } @@ -1577,7 +1577,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("isBrand")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.isBrand"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.isBrand"); } else if (name.equals("manufacturer")) { this.manufacturer = new Reference(); return this.manufacturer; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationAdministration.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationAdministration.java index 4f6e54807f..1076c4b0cd 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationAdministration.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationAdministration.java @@ -693,7 +693,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.text"); } else if (name.equals("siteCodeableConcept")) { this.site = new CodeableConcept(); return this.site; @@ -1879,7 +1879,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.status"); } else if (name.equals("medicationCodeableConcept")) { this.medication = new CodeableConcept(); return this.medication; @@ -1905,7 +1905,7 @@ public Base addChild(String name) throws FHIRException { this.prescription = new Reference(); return this.prescription; } else if (name.equals("wasNotGiven")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.wasNotGiven"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.wasNotGiven"); } else if (name.equals("reasonNotGiven")) { return addReasonNotGiven(); } else if (name.equals("reasonGiven")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationDispense.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationDispense.java index 5127a90d7e..55cfdcd343 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationDispense.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationDispense.java @@ -961,7 +961,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.text"); } else if (name.equals("additionalInstructions")) { this.additionalInstructions = new CodeableConcept(); return this.additionalInstructions; @@ -2547,7 +2547,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.status"); } else if (name.equals("medicationCodeableConcept")) { this.medication = new CodeableConcept(); return this.medication; @@ -2572,9 +2572,9 @@ public Base addChild(String name) throws FHIRException { this.daysSupply = new SimpleQuantity(); return this.daysSupply; } else if (name.equals("whenPrepared")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenPrepared"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenPrepared"); } else if (name.equals("whenHandedOver")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenHandedOver"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenHandedOver"); } else if (name.equals("destination")) { this.destination = new Reference(); return this.destination; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationOrder.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationOrder.java index d21e735854..595ad91c31 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationOrder.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationOrder.java @@ -1005,7 +1005,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.text"); } else if (name.equals("additionalInstructions")) { this.additionalInstructions = new CodeableConcept(); return this.additionalInstructions; @@ -1494,7 +1494,7 @@ public Base addChild(String name) throws FHIRException { this.validityPeriod = new Period(); return this.validityPeriod; } else if (name.equals("numberOfRepeatsAllowed")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.numberOfRepeatsAllowed"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.numberOfRepeatsAllowed"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; @@ -2960,7 +2960,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.status"); } else if (name.equals("medicationCodeableConcept")) { this.medication = new CodeableConcept(); return this.medication; @@ -2974,7 +2974,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("dateWritten")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.dateWritten"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.dateWritten"); } else if (name.equals("prescriber")) { this.prescriber = new Reference(); return this.prescriber; @@ -2983,7 +2983,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("reasonReference")) { return addReasonReference(); } else if (name.equals("dateEnded")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.dateEnded"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.dateEnded"); } else if (name.equals("reasonEnded")) { this.reasonEnded = new CodeableConcept(); return this.reasonEnded; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationStatement.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationStatement.java index 6ad135cbf1..2834ac78e4 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationStatement.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MedicationStatement.java @@ -909,7 +909,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.text"); } else if (name.equals("timing")) { this.timing = new Timing(); return this.timing; @@ -2040,7 +2040,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.status"); } else if (name.equals("medicationCodeableConcept")) { this.medication = new CodeableConcept(); return this.medication; @@ -2062,9 +2062,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("supportingInformation")) { return addSupportingInformation(); } else if (name.equals("dateAsserted")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.dateAsserted"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.dateAsserted"); } else if (name.equals("wasNotTaken")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.wasNotTaken"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.wasNotTaken"); } else if (name.equals("reasonNotTaken")) { return addReasonNotTaken(); } else if (name.equals("reasonForUseCodeableConcept")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MessageHeader.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MessageHeader.java index 051772e061..34b0f38571 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MessageHeader.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/MessageHeader.java @@ -472,9 +472,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.identifier"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.code"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.code"); } else if (name.equals("details")) { this.details = new Reference(); return this.details; @@ -923,16 +923,16 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.name"); } else if (name.equals("software")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.software"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.software"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.version"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.version"); } else if (name.equals("contact")) { this.contact = new ContactPoint(); return this.contact; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.endpoint"); } else return super.addChild(name); } @@ -1264,12 +1264,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.name"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.endpoint"); } else return super.addChild(name); } @@ -2120,7 +2120,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.timestamp"); } else if (name.equals("event")) { this.event = new Coding(); return this.event; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Meta.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Meta.java index 423e28c848..d14974202e 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Meta.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Meta.java @@ -525,11 +525,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("versionId")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.versionId"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.versionId"); } else if (name.equals("lastUpdated")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.lastUpdated"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.lastUpdated"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.profile"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.profile"); } else if (name.equals("security")) { return addSecurity(); } else if (name.equals("tag")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ModuleDefinition.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ModuleDefinition.java index 82f9a46e50..5ea2a51c4b 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ModuleDefinition.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ModuleDefinition.java @@ -318,11 +318,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.name"); } else if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.identifier"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.version"); } else return super.addChild(name); } @@ -709,11 +709,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.name"); } else if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.identifier"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.version"); } else if (name.equals("documentAttachment")) { this.document = new Attachment(); return this.document; @@ -1035,11 +1035,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.name"); } else if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.identifier"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.version"); } else return super.addChild(name); } @@ -1438,13 +1438,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.name"); } else if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.identifier"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.version"); } else if (name.equals("codeSystem")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.codeSystem"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.codeSystem"); } else return super.addChild(name); } @@ -1908,13 +1908,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.use"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.type"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; @@ -2404,12 +2404,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.type"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.mustSupport"); } else if (name.equals("codeFilter")) { return addCodeFilter(); } else if (name.equals("dateFilter")) { @@ -2792,7 +2792,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.path"); } else if (name.equals("valueSetString")) { this.valueSet = new StringType(); return this.valueSet; @@ -3092,7 +3092,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.path"); } else if (name.equals("valueDateTime")) { this.value = new DateTimeType(); return this.value; @@ -3712,7 +3712,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleDefinition.version"); } else if (name.equals("model")) { return addModel(); } else if (name.equals("library")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ModuleMetadata.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ModuleMetadata.java index 5d1208a6cf..ef6519e479 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ModuleMetadata.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ModuleMetadata.java @@ -1185,9 +1185,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.type"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.name"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.name"); } else if (name.equals("contact")) { return addContact(); } else @@ -1427,7 +1427,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.name"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -1663,7 +1663,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.name"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -1960,7 +1960,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.type"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.type"); } else if (name.equals("document")) { this.document = new Attachment(); return this.document; @@ -3590,31 +3590,31 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.url"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.version"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.name"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.title"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.title"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.type"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.type"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.status"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.experimental"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.description"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.description"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.usage"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.usage"); } else if (name.equals("publicationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.publicationDate"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.publicationDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -3625,11 +3625,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("contributor")) { return addContributor(); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ModuleMetadata.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ModuleMetadata.copyright"); } else if (name.equals("relatedResource")) { return addRelatedResource(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/NamingSystem.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/NamingSystem.java index 98f5741842..8beaea44af 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/NamingSystem.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/NamingSystem.java @@ -536,7 +536,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -915,11 +915,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.type"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.type"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.value"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.value"); } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.preferred"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1968,28 +1968,28 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.kind"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.kind"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.responsible"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.usage"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.usage"); } else if (name.equals("uniqueId")) { return addUniqueId(); } else if (name.equals("replacedBy")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Narrative.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Narrative.java index 24de5666f1..f51565516a 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Narrative.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Narrative.java @@ -375,7 +375,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Narrative.status"); + throw new FHIRException("Cannot call addChild on a singleton property Narrative.status"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/NutritionOrder.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/NutritionOrder.java index e87033742a..29767f9068 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/NutritionOrder.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/NutritionOrder.java @@ -767,7 +767,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("fluidConsistencyType")) { return addFluidConsistencyType(); } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instruction"); } else return super.addChild(name); } @@ -1597,14 +1597,14 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("productName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.productName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.productName"); } else if (name.equals("schedule")) { return addSchedule(); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instruction"); } else return super.addChild(name); } @@ -2283,12 +2283,12 @@ public Base addChild(String name) throws FHIRException { this.baseFormulaType = new CodeableConcept(); return this.baseFormulaType; } else if (name.equals("baseFormulaProductName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.baseFormulaProductName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.baseFormulaProductName"); } else if (name.equals("additiveType")) { this.additiveType = new CodeableConcept(); return this.additiveType; } else if (name.equals("additiveProductName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.additiveProductName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.additiveProductName"); } else if (name.equals("caloricDensity")) { this.caloricDensity = new SimpleQuantity(); return this.caloricDensity; @@ -2301,7 +2301,7 @@ public Base addChild(String name) throws FHIRException { this.maxVolumeToDeliver = new SimpleQuantity(); return this.maxVolumeToDeliver; } else if (name.equals("administrationInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.administrationInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.administrationInstruction"); } else return super.addChild(name); } @@ -3582,7 +3582,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -3590,7 +3590,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.dateTime"); } else if (name.equals("orderer")) { this.orderer = new Reference(); return this.orderer; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Observation.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Observation.java index 64745db31c..f36361f7a1 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Observation.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Observation.java @@ -827,7 +827,7 @@ public Base addChild(String name) throws FHIRException { this.age = new Range(); return this.age; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.text"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.text"); } else return super.addChild(name); } @@ -1092,7 +1092,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.type"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.type"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; @@ -3177,7 +3177,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.status"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -3197,7 +3197,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.issued"); } else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("valueQuantity")) { @@ -3237,7 +3237,7 @@ public Base addChild(String name) throws FHIRException { this.interpretation = new CodeableConcept(); return this.interpretation; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.comment"); } else if (name.equals("bodySite")) { this.bodySite = new CodeableConcept(); return this.bodySite; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OperationDefinition.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OperationDefinition.java index cf0cf9f322..b90650aa00 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OperationDefinition.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OperationDefinition.java @@ -476,7 +476,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -1277,19 +1277,19 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.use"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type"); } else if (name.equals("searchType")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.searchType"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.searchType"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; @@ -1580,7 +1580,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.strength"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.strength"); } else if (name.equals("valueSetUri")) { this.valueSet = new UriType(); return this.valueSet; @@ -3205,44 +3205,44 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.kind"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.requirements"); } else if (name.equals("idempotent")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.idempotent"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.idempotent"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.code"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.comment"); } else if (name.equals("base")) { this.base = new Reference(); return this.base; } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.system"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.system"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type"); } else if (name.equals("instance")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.instance"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.instance"); } else if (name.equals("parameter")) { return addParameter(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OperationOutcome.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OperationOutcome.java index eec3585f24..4d5b93abb8 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OperationOutcome.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OperationOutcome.java @@ -1406,18 +1406,18 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.severity"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.severity"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.code"); } else if (name.equals("details")) { this.details = new CodeableConcept(); return this.details; } else if (name.equals("diagnostics")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.diagnostics"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.diagnostics"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.location"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.location"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.expression"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.expression"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Order.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Order.java index 09111b54f8..223856d68b 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Order.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Order.java @@ -814,7 +814,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Order.date"); + throw new FHIRException("Cannot call addChild on a singleton property Order.date"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OrderResponse.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OrderResponse.java index 566a60c971..b5ddf4434d 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OrderResponse.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/OrderResponse.java @@ -900,14 +900,14 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderResponse.date"); + throw new FHIRException("Cannot call addChild on a singleton property OrderResponse.date"); } else if (name.equals("who")) { this.who = new Reference(); return this.who; } else if (name.equals("orderStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderResponse.orderStatus"); + throw new FHIRException("Cannot call addChild on a singleton property OrderResponse.orderStatus"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderResponse.description"); + throw new FHIRException("Cannot call addChild on a singleton property OrderResponse.description"); } else if (name.equals("fulfillment")) { return addFulfillment(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Organization.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Organization.java index b86a4e6f9e..6681a1b890 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Organization.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Organization.java @@ -907,12 +907,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.active"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.active"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.name"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.name"); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("address")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ParameterDefinition.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ParameterDefinition.java index 59d96ed925..3ddbb1923c 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ParameterDefinition.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ParameterDefinition.java @@ -621,17 +621,17 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.use"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.type"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Parameters.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Parameters.java index 072a23f9fb..2ba4c679fc 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Parameters.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Parameters.java @@ -315,7 +315,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Parameters.name"); + throw new FHIRException("Cannot call addChild on a singleton property Parameters.name"); } else if (name.equals("valueBoolean")) { this.value = new BooleanType(); return this.value; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Patient.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Patient.java index 94f6394651..2169cf3e52 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Patient.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Patient.java @@ -672,7 +672,7 @@ public Base addChild(String name) throws FHIRException { this.address = new Address(); return this.address; } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.gender"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; @@ -1184,7 +1184,7 @@ public Base addChild(String name) throws FHIRException { this.language = new CodeableConcept(); return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.preferred"); } else return super.addChild(name); } @@ -1438,7 +1438,7 @@ public Base addChild(String name) throws FHIRException { this.other = new Reference(); return this.other; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.type"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.type"); } else return super.addChild(name); } @@ -2617,15 +2617,15 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.active"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.active"); } else if (name.equals("name")) { return addName(); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.birthDate"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); return this.deceased; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PaymentNotice.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PaymentNotice.java index 43805c9dd3..98edc8de86 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PaymentNotice.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PaymentNotice.java @@ -797,7 +797,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.created"); } else if (name.equals("targetIdentifier")) { this.target = new Identifier(); return this.target; @@ -832,7 +832,7 @@ public Base addChild(String name) throws FHIRException { this.paymentStatus = new Coding(); return this.paymentStatus; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.statusDate"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PaymentReconciliation.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PaymentReconciliation.java index 92f1dadcb1..55704e9245 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PaymentReconciliation.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PaymentReconciliation.java @@ -566,7 +566,7 @@ public Base addChild(String name) throws FHIRException { this.payee = new Reference(); return this.payee; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.date"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.date"); } else if (name.equals("amount")) { this.amount = new Money(); return this.amount; @@ -790,7 +790,7 @@ public Base addChild(String name) throws FHIRException { this.type = new Coding(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.text"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.text"); } else return super.addChild(name); } @@ -1802,9 +1802,9 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.disposition"); } else if (name.equals("ruleset")) { this.ruleset = new Coding(); return this.ruleset; @@ -1812,7 +1812,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.created"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Period.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Period.java index 565da0411e..87634842a5 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Period.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Period.java @@ -278,9 +278,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.start"); + throw new FHIRException("Cannot call addChild on a singleton property Period.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.end"); + throw new FHIRException("Cannot call addChild on a singleton property Period.end"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Person.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Person.java index db8d77e9f2..38a6acf7d3 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Person.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Person.java @@ -419,7 +419,7 @@ public Base addChild(String name) throws FHIRException { this.target = new Reference(); return this.target; } else if (name.equals("assurance")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.assurance"); + throw new FHIRException("Cannot call addChild on a singleton property Person.assurance"); } else return super.addChild(name); } @@ -1155,9 +1155,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Person.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Person.birthDate"); } else if (name.equals("address")) { return addAddress(); } else if (name.equals("photo")) { @@ -1167,7 +1167,7 @@ public Base addChild(String name) throws FHIRException { this.managingOrganization = new Reference(); return this.managingOrganization; } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.active"); + throw new FHIRException("Cannot call addChild on a singleton property Person.active"); } else if (name.equals("link")) { return addLink(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Practitioner.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Practitioner.java index 16d0f39cab..ec4a33807d 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Practitioner.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Practitioner.java @@ -1859,7 +1859,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.active"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.active"); } else if (name.equals("name")) { return addName(); } else if (name.equals("telecom")) { @@ -1867,9 +1867,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("address")) { return addAddress(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.birthDate"); } else if (name.equals("photo")) { return addPhoto(); } else if (name.equals("practitionerRole")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PractitionerRole.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PractitionerRole.java index 780bf9ca9d..f0ac49bd90 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PractitionerRole.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/PractitionerRole.java @@ -412,13 +412,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.allDay"); } else if (name.equals("availableStartTime")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availableStartTime"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availableStartTime"); } else if (name.equals("availableEndTime")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availableEndTime"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availableEndTime"); } else return super.addChild(name); } @@ -653,7 +653,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.description"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.description"); } else if (name.equals("during")) { this.during = new Period(); return this.during; @@ -1674,7 +1674,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.active"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.active"); } else if (name.equals("practitioner")) { this.practitioner = new Reference(); return this.practitioner; @@ -1699,7 +1699,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("notAvailable")) { return addNotAvailable(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availabilityExceptions"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Procedure.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Procedure.java index 35e3fd0333..ddbfc23cbf 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Procedure.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Procedure.java @@ -2167,7 +2167,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.status"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -2175,7 +2175,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("notPerformed")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.notPerformed"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.notPerformed"); } else if (name.equals("reasonNotPerformed")) { return addReasonNotPerformed(); } else if (name.equals("bodySite")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcedureRequest.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcedureRequest.java index 9aa33258a1..07f223a75c 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcedureRequest.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcedureRequest.java @@ -1568,7 +1568,7 @@ public Base addChild(String name) throws FHIRException { this.performer = new Reference(); return this.performer; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.status"); } else if (name.equals("notes")) { return addNotes(); } else if (name.equals("asNeededBoolean")) { @@ -1578,12 +1578,12 @@ public Base addChild(String name) throws FHIRException { this.asNeeded = new CodeableConcept(); return this.asNeeded; } else if (name.equals("orderedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.orderedOn"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.orderedOn"); } else if (name.equals("orderer")) { this.orderer = new Reference(); return this.orderer; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.priority"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcessRequest.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcessRequest.java index 22fc611e90..eb47c9567b 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcessRequest.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcessRequest.java @@ -333,7 +333,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.sequenceLinkId"); } else return super.addChild(name); } @@ -1483,7 +1483,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("action")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.action"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.action"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("ruleset")) { @@ -1493,7 +1493,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.created"); } else if (name.equals("targetIdentifier")) { this.target = new Identifier(); return this.target; @@ -1525,15 +1525,15 @@ public Base addChild(String name) throws FHIRException { this.response = new Reference(); return this.response; } else if (name.equals("nullify")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.nullify"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.nullify"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.reference"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.reference"); } else if (name.equals("item")) { return addItem(); } else if (name.equals("include")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.include"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.include"); } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.exclude"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcessResponse.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcessResponse.java index ebd5788ad7..0a3570d208 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcessResponse.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ProcessResponse.java @@ -217,7 +217,7 @@ public Base addChild(String name) throws FHIRException { this.type = new Coding(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.text"); } else return super.addChild(name); } @@ -1109,7 +1109,7 @@ public Base addChild(String name) throws FHIRException { this.outcome = new Coding(); return this.outcome; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.disposition"); } else if (name.equals("ruleset")) { this.ruleset = new Coding(); return this.ruleset; @@ -1117,7 +1117,7 @@ public Base addChild(String name) throws FHIRException { this.originalRuleset = new Coding(); return this.originalRuleset; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.created"); } else if (name.equals("organizationIdentifier")) { this.organization = new Identifier(); return this.organization; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Protocol.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Protocol.java index 3d35e4535c..161962cebc 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Protocol.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Protocol.java @@ -1137,9 +1137,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.name"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.description"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.description"); } else if (name.equals("duration")) { this.duration = new Duration(); return this.duration; @@ -1150,7 +1150,7 @@ public Base addChild(String name) throws FHIRException { this.exit = new ProtocolStepPreconditionComponent(); return this.exit; } else if (name.equals("firstActivity")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.firstActivity"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.firstActivity"); } else if (name.equals("activity")) { return addActivity(); } else if (name.equals("next")) { @@ -1572,7 +1572,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.description"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.description"); } else if (name.equals("condition")) { this.condition = new ProtocolStepPreconditionConditionComponent(); return this.condition; @@ -2280,11 +2280,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("alternative")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.alternative"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.alternative"); } else if (name.equals("component")) { return addComponent(); } else if (name.equals("following")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.following"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.following"); } else if (name.equals("wait")) { this.wait = new Duration(); return this.wait; @@ -2550,9 +2550,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.sequence"); } else if (name.equals("activity")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.activity"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.activity"); } else return super.addChild(name); } @@ -3213,7 +3213,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.category"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.category"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -3235,7 +3235,7 @@ public Base addChild(String name) throws FHIRException { this.quantity = new SimpleQuantity(); return this.quantity; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.description"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.description"); } else return super.addChild(name); } @@ -3533,9 +3533,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.description"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.description"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.reference"); } else if (name.equals("condition")) { this.condition = new ProtocolStepPreconditionComponent(); return this.condition; @@ -4260,11 +4260,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.title"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.status"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.status"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.type"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.type"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -4272,7 +4272,7 @@ public Base addChild(String name) throws FHIRException { this.group = new Reference(); return this.group; } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Protocol.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Protocol.purpose"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Provenance.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Provenance.java index a8d7ce0fa0..1091787e20 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Provenance.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Provenance.java @@ -771,7 +771,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.target"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.target"); } else return super.addChild(name); } @@ -1188,14 +1188,14 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("role")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.role"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.role"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.reference"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.display"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.display"); } else if (name.equals("agent")) { this.agent = new ProvenanceAgentComponent(); return this.agent; @@ -1967,7 +1967,7 @@ public Base addChild(String name) throws FHIRException { this.period = new Period(); return this.period; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.recorded"); } else if (name.equals("reason")) { return addReason(); } else if (name.equals("activity")) { @@ -1977,7 +1977,7 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.policy"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.policy"); } else if (name.equals("agent")) { return addAgent(); } else if (name.equals("entity")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Quantity.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Quantity.java index ff2a0dc327..1e03bcb31d 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Quantity.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Quantity.java @@ -719,15 +719,15 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.value"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.value"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.comparator"); } else if (name.equals("unit")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.unit"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.unit"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.system"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.system"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.code"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.code"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Questionnaire.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Questionnaire.java index 57a14c9483..103e36a854 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Questionnaire.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Questionnaire.java @@ -1876,25 +1876,25 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.linkId"); } else if (name.equals("concept")) { return addConcept(); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.prefix"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.text"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.text"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.type"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.type"); } else if (name.equals("enableWhen")) { return addEnableWhen(); } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.required"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.required"); } else if (name.equals("repeats")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.repeats"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.repeats"); } else if (name.equals("readOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.readOnly"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.readOnly"); } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.maxLength"); } else if (name.equals("options")) { this.options = new Reference(); return this.options; @@ -2493,9 +2493,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("question")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.question"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.question"); } else if (name.equals("answered")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.answered"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.answered"); } else if (name.equals("answerBoolean")) { this.answer = new BooleanType(); return this.answer; @@ -3734,27 +3734,27 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.url"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.version"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.version"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.status"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.date"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.publisher"); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.title"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.title"); } else if (name.equals("concept")) { return addConcept(); } else if (name.equals("subjectType")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.subjectType"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.subjectType"); } else if (name.equals("item")) { return addItem(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/QuestionnaireResponse.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/QuestionnaireResponse.java index 082b48693d..6c49ea0249 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/QuestionnaireResponse.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/QuestionnaireResponse.java @@ -591,9 +591,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.linkId"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.text"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -1822,7 +1822,7 @@ public Base addChild(String name) throws FHIRException { this.questionnaire = new Reference(); return this.questionnaire; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.status"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -1830,7 +1830,7 @@ public Base addChild(String name) throws FHIRException { this.author = new Reference(); return this.author; } else if (name.equals("authored")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.authored"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.authored"); } else if (name.equals("source")) { this.source = new Reference(); return this.source; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Reference.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Reference.java index d068d604a5..7a35c0217a 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Reference.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Reference.java @@ -325,9 +325,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.reference"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.display"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.display"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ReferralRequest.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ReferralRequest.java index 4dbf0b1be3..2fe1de6a8e 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ReferralRequest.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ReferralRequest.java @@ -1658,9 +1658,9 @@ public Base addChild(String name) throws FHIRException { this.parent = new Identifier(); return this.parent; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.status"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.category"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.category"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -1677,7 +1677,7 @@ public Base addChild(String name) throws FHIRException { this.fulfillmentTime = new Period(); return this.fulfillmentTime; } else if (name.equals("authored")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.authored"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.authored"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; @@ -1690,7 +1690,7 @@ public Base addChild(String name) throws FHIRException { this.reason = new CodeableConcept(); return this.reason; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.description"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.description"); } else if (name.equals("serviceRequested")) { return addServiceRequested(); } else if (name.equals("supportingInformation")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/RelatedPerson.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/RelatedPerson.java index cc8d80bd57..04fbf6111e 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/RelatedPerson.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/RelatedPerson.java @@ -725,9 +725,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.gender"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.birthDate"); } else if (name.equals("address")) { return addAddress(); } else if (name.equals("photo")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Resource.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Resource.java index 4ca51d607e..f91543a1ec 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Resource.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Resource.java @@ -373,14 +373,14 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.id"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.id"); } else if (name.equals("meta")) { this.meta = new Meta(); return this.meta; } else if (name.equals("implicitRules")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.implicitRules"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.implicitRules"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.language"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.language"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/RiskAssessment.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/RiskAssessment.java index 72a9262b37..3969172391 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/RiskAssessment.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/RiskAssessment.java @@ -516,7 +516,7 @@ public Base addChild(String name) throws FHIRException { this.probability = new CodeableConcept(); return this.probability; } else if (name.equals("relativeRisk")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.relativeRisk"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.relativeRisk"); } else if (name.equals("whenPeriod")) { this.when = new Period(); return this.when; @@ -524,7 +524,7 @@ public Base addChild(String name) throws FHIRException { this.when = new Range(); return this.when; } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.rationale"); } else return super.addChild(name); } @@ -1311,7 +1311,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.date"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.date"); } else if (name.equals("condition")) { this.condition = new Reference(); return this.condition; @@ -1332,7 +1332,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("prediction")) { return addPrediction(); } else if (name.equals("mitigation")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.mitigation"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.mitigation"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SampledData.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SampledData.java index 441ec77806..4ab2097538 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SampledData.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SampledData.java @@ -718,17 +718,17 @@ public Base addChild(String name) throws FHIRException { this.origin = new SimpleQuantity(); return this.origin; } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.period"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.period"); } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.factor"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.factor"); } else if (name.equals("lowerLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.lowerLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.lowerLimit"); } else if (name.equals("upperLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.upperLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.upperLimit"); } else if (name.equals("dimensions")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.dimensions"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.dimensions"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.data"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.data"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Schedule.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Schedule.java index cc8ee2e1d4..2c7bb2fad7 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Schedule.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Schedule.java @@ -577,7 +577,7 @@ public Base addChild(String name) throws FHIRException { this.planningHorizon = new Period(); return this.planningHorizon; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SearchParameter.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SearchParameter.java index 6f80a78673..f1059134ea 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SearchParameter.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SearchParameter.java @@ -421,7 +421,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -1806,39 +1806,39 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.url"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.url"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.status"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.date"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.requirements"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.code"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.code"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.base"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.base"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.type"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.type"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.description"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.description"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.expression"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.expression"); } else if (name.equals("xpath")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.xpath"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.xpath"); } else if (name.equals("xpathUsage")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.xpathUsage"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.xpathUsage"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.target"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.target"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Sequence.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Sequence.java index adbbf8ec92..61365e1070 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Sequence.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Sequence.java @@ -741,7 +741,7 @@ public Base addChild(String name) throws FHIRException { this.chromosome = new CodeableConcept(); return this.chromosome; } else if (name.equals("genomeBuild")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.genomeBuild"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.genomeBuild"); } else if (name.equals("referenceSeqId")) { this.referenceSeqId = new CodeableConcept(); return this.referenceSeqId; @@ -749,11 +749,11 @@ public Base addChild(String name) throws FHIRException { this.referenceSeqPointer = new Reference(); return this.referenceSeqPointer; } else if (name.equals("referenceSeqString")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.referenceSeqString"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.referenceSeqString"); } else if (name.equals("windowStart")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.windowStart"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.windowStart"); } else if (name.equals("windowEnd")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.windowEnd"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.windowEnd"); } else return super.addChild(name); } @@ -1266,15 +1266,15 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.start"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.end"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.end"); } else if (name.equals("observedAllele")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.observedAllele"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.observedAllele"); } else if (name.equals("referenceAllele")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.referenceAllele"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.referenceAllele"); } else if (name.equals("cigar")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.cigar"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.cigar"); } else return super.addChild(name); } @@ -1625,14 +1625,14 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.start"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.end"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.end"); } else if (name.equals("score")) { this.score = new Quantity(); return this.score; } else if (name.equals("method")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.method"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.method"); } else return super.addChild(name); } @@ -2031,13 +2031,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.url"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.url"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.name"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.name"); } else if (name.equals("variantId")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.variantId"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.variantId"); } else if (name.equals("readId")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.readId"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.readId"); } else return super.addChild(name); } @@ -2452,11 +2452,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("precisionOfBoundaries")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.precisionOfBoundaries"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.precisionOfBoundaries"); } else if (name.equals("reportedaCGHRatio")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.reportedaCGHRatio"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.reportedaCGHRatio"); } else if (name.equals("length")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.length"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.length"); } else if (name.equals("outer")) { this.outer = new SequenceStructureVariationOuterComponent(); return this.outer; @@ -2699,9 +2699,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.start"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.end"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.end"); } else return super.addChild(name); } @@ -2930,9 +2930,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.start"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.end"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.end"); } else return super.addChild(name); } @@ -4227,7 +4227,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.type"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.type"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -4254,18 +4254,18 @@ public Base addChild(String name) throws FHIRException { this.allelicState = new CodeableConcept(); return this.allelicState; } else if (name.equals("allelicFrequency")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.allelicFrequency"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.allelicFrequency"); } else if (name.equals("copyNumberEvent")) { this.copyNumberEvent = new CodeableConcept(); return this.copyNumberEvent; } else if (name.equals("readCoverage")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.readCoverage"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.readCoverage"); } else if (name.equals("repository")) { return addRepository(); } else if (name.equals("pointer")) { return addPointer(); } else if (name.equals("observedSeq")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.observedSeq"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.observedSeq"); } else if (name.equals("observation")) { this.observation = new Reference(); return this.observation; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Signature.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Signature.java index 0c0457007b..f84fa7ea73 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Signature.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Signature.java @@ -487,7 +487,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("type")) { return addType(); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.when"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.when"); } else if (name.equals("whoUri")) { this.who = new UriType(); return this.who; @@ -495,9 +495,9 @@ public Base addChild(String name) throws FHIRException { this.who = new Reference(); return this.who; } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.contentType"); } else if (name.equals("blob")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.blob"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.blob"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Slot.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Slot.java index 8230e05ab8..a2513a13c4 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Slot.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Slot.java @@ -1001,15 +1001,15 @@ public Base addChild(String name) throws FHIRException { this.schedule = new Reference(); return this.schedule; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.status"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.status"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.start"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.end"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.end"); } else if (name.equals("overbooked")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.overbooked"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.overbooked"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Specimen.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Specimen.java index d912c55a03..831de516f5 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Specimen.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Specimen.java @@ -631,7 +631,7 @@ public Base addChild(String name) throws FHIRException { this.collector = new Reference(); return this.collector; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.comment"); } else if (name.equals("collectedDateTime")) { this.collected = new DateTimeType(); return this.collected; @@ -959,7 +959,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.description"); } else if (name.equals("procedure")) { this.procedure = new CodeableConcept(); return this.procedure; @@ -1423,7 +1423,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.description"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2203,7 +2203,7 @@ public Base addChild(String name) throws FHIRException { this.accessionIdentifier = new Identifier(); return this.accessionIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.status"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2211,7 +2211,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("receivedTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.receivedTime"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.receivedTime"); } else if (name.equals("parent")) { return addParent(); } else if (name.equals("collection")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/StructureDefinition.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/StructureDefinition.java index 3dbf7ba968..7ec1f03883 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/StructureDefinition.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/StructureDefinition.java @@ -635,7 +635,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -1046,13 +1046,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.identity"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.identity"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.uri"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.uri"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("comments")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.comments"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.comments"); } else return super.addChild(name); } @@ -3418,53 +3418,53 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.display"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.display"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.copyright"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.fhirVersion"); } else if (name.equals("mapping")) { return addMapping(); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.kind"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.abstract"); } else if (name.equals("contextType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.contextType"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.contextType"); } else if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.context"); } else if (name.equals("baseType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.baseType"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.baseType"); } else if (name.equals("baseDefinition")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.baseDefinition"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.baseDefinition"); } else if (name.equals("derivation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.derivation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.derivation"); } else if (name.equals("snapshot")) { this.snapshot = new StructureDefinitionSnapshotComponent(); return this.snapshot; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/StructureMap.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/StructureMap.java index fc6a1f01c5..ba7e491978 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/StructureMap.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/StructureMap.java @@ -1088,7 +1088,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -1411,11 +1411,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.url"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.mode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else return super.addChild(name); } @@ -1853,11 +1853,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("extends")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.extends"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.extends"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else if (name.equals("input")) { return addInput(); } else if (name.equals("rule")) { @@ -2261,13 +2261,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.type"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.mode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else return super.addChild(name); } @@ -2751,7 +2751,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("source")) { return addSource(); } else if (name.equals("target")) { @@ -2761,7 +2761,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("dependent")) { return addDependent(); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else return super.addChild(name); } @@ -3467,21 +3467,21 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.required"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.required"); } else if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.context"); } else if (name.equals("contextType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.contextType"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.contextType"); } else if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.element"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.element"); } else if (name.equals("listMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.listMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.listMode"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.variable"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.condition"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.condition"); } else if (name.equals("check")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.check"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.check"); } else return super.addChild(name); } @@ -4162,19 +4162,19 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.context"); } else if (name.equals("contextType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.contextType"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.contextType"); } else if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.element"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.element"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.variable"); } else if (name.equals("listMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.listMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.listMode"); } else if (name.equals("listRuleId")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.listRuleId"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.listRuleId"); } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.transform"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.transform"); } else if (name.equals("parameter")) { return addParameter(); } else @@ -4671,9 +4671,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.variable"); } else return super.addChild(name); } @@ -5969,35 +5969,35 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.copyright"); } else if (name.equals("structure")) { return addStructure(); } else if (name.equals("import")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.import"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.import"); } else if (name.equals("group")) { return addGroup(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Subscription.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Subscription.java index 9491e423c9..a3bbf866ee 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Subscription.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Subscription.java @@ -748,13 +748,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.type"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.type"); } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.endpoint"); } else if (name.equals("payload")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.payload"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.payload"); } else if (name.equals("header")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.header"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.header"); } else return super.addChild(name); } @@ -1402,20 +1402,20 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.criteria"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.reason"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.reason"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.status"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.status"); } else if (name.equals("error")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.error"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.error"); } else if (name.equals("channel")) { this.channel = new SubscriptionChannelComponent(); return this.channel; } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.end"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.end"); } else if (name.equals("tag")) { return addTag(); } else diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Substance.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Substance.java index 3f330eabd6..6dd691e1b9 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Substance.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Substance.java @@ -273,7 +273,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.expiry"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.expiry"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; @@ -986,7 +986,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.description"); } else if (name.equals("instance")) { return addInstance(); } else if (name.equals("ingredient")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SupplyDelivery.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SupplyDelivery.java index 13dc755f8a..3e4c0f8edc 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SupplyDelivery.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SupplyDelivery.java @@ -979,7 +979,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyDelivery.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyDelivery.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -999,7 +999,7 @@ public Base addChild(String name) throws FHIRException { this.whenPrepared = new Period(); return this.whenPrepared; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyDelivery.time"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyDelivery.time"); } else if (name.equals("destination")) { this.destination = new Reference(); return this.destination; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SupplyRequest.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SupplyRequest.java index 6334a0277f..7e2b0295a6 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SupplyRequest.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/SupplyRequest.java @@ -1100,12 +1100,12 @@ public Base addChild(String name) throws FHIRException { this.source = new Reference(); return this.source; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.date"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.date"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.status"); } else if (name.equals("kind")) { this.kind = new CodeableConcept(); return this.kind; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Task.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Task.java index 3a426a25ec..1b29117191 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Task.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Task.java @@ -630,7 +630,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.name"); + throw new FHIRException("Cannot call addChild on a singleton property Task.name"); } else if (name.equals("valueBoolean")) { this.value = new BooleanType(); return this.value; @@ -938,7 +938,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.name"); + throw new FHIRException("Cannot call addChild on a singleton property Task.name"); } else if (name.equals("valueBoolean")) { this.value = new BooleanType(); return this.value; @@ -2238,13 +2238,13 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.description"); + throw new FHIRException("Cannot call addChild on a singleton property Task.description"); } else if (name.equals("performerType")) { return addPerformerType(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Task.priority"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.status"); + throw new FHIRException("Cannot call addChild on a singleton property Task.status"); } else if (name.equals("failureReason")) { this.failureReason = new CodeableConcept(); return this.failureReason; @@ -2255,11 +2255,11 @@ public Base addChild(String name) throws FHIRException { this.for_ = new Reference(); return this.for_; } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Task.definition"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.created"); + throw new FHIRException("Cannot call addChild on a singleton property Task.created"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Task.lastModified"); } else if (name.equals("creator")) { this.creator = new Reference(); return this.creator; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/TestScript.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/TestScript.java index 98c3e31114..e96020bab7 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/TestScript.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/TestScript.java @@ -1058,7 +1058,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -1286,7 +1286,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("index")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.index"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.index"); } else if (name.equals("profile")) { this.profile = new Coding(); return this.profile; @@ -1511,7 +1511,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("index")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.index"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.index"); } else if (name.equals("profile")) { this.profile = new Coding(); return this.profile; @@ -1991,9 +1991,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else return super.addChild(name); } @@ -2642,17 +2642,17 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.required"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.required"); } else if (name.equals("validated")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.validated"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.validated"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("origin")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.origin"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.origin"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination"); } else if (name.equals("link")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.link"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.link"); } else if (name.equals("conformance")) { this.conformance = new Reference(); return this.conformance; @@ -3018,9 +3018,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("autocreate")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.autocreate"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.autocreate"); } else if (name.equals("autodelete")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.autodelete"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.autodelete"); } else if (name.equals("resource")) { this.resource = new Reference(); return this.resource; @@ -3505,15 +3505,15 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("defaultValue")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.defaultValue"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.defaultValue"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.headerField"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.path"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else return super.addChild(name); } @@ -4019,9 +4019,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); } @@ -4499,7 +4499,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("ruleId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.ruleId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.ruleId"); } else if (name.equals("param")) { return addParam(); } else @@ -4756,9 +4756,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); } @@ -6351,33 +6351,33 @@ public Base addChild(String name) throws FHIRException { this.type = new Coding(); return this.type; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.resource"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("accept")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.accept"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.accept"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.contentType"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination"); } else if (name.equals("encodeRequestUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.encodeRequestUrl"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.encodeRequestUrl"); } else if (name.equals("origin")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.origin"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.origin"); } else if (name.equals("params")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.params"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.params"); } else if (name.equals("requestHeader")) { return addRequestHeader(); } else if (name.equals("responseId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.responseId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.responseId"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else if (name.equals("targetId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.targetId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.targetId"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else return super.addChild(name); } @@ -6655,9 +6655,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("field")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.field"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.field"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); } @@ -8202,33 +8202,33 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("direction")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.direction"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.direction"); } else if (name.equals("compareToSourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.compareToSourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.compareToSourceId"); } else if (name.equals("compareToSourcePath")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.compareToSourcePath"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.compareToSourcePath"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.contentType"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.headerField"); } else if (name.equals("minimumId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.minimumId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.minimumId"); } else if (name.equals("navigationLinks")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.navigationLinks"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.navigationLinks"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.operator"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.operator"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.path"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.resource"); } else if (name.equals("response")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.response"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.response"); } else if (name.equals("responseCode")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.responseCode"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.responseCode"); } else if (name.equals("rule")) { this.rule = new SetupActionAssertRuleComponent(); return this.rule; @@ -8236,13 +8236,13 @@ public Base addChild(String name) throws FHIRException { this.ruleset = new SetupActionAssertRulesetComponent(); return this.ruleset; } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else if (name.equals("validateProfileId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.validateProfileId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.validateProfileId"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else if (name.equals("warningOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.warningOnly"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.warningOnly"); } else return super.addChild(name); } @@ -8521,7 +8521,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("ruleId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.ruleId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.ruleId"); } else if (name.equals("param")) { return addParam(); } else @@ -8778,9 +8778,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); } @@ -9012,7 +9012,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("rulesetId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.rulesetId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.rulesetId"); } else if (name.equals("rule")) { return addRule(); } else @@ -9251,7 +9251,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("ruleId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.ruleId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.ruleId"); } else if (name.equals("param")) { return addParam(); } else @@ -9509,9 +9509,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); } @@ -9867,9 +9867,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("metadata")) { this.metadata = new TestScriptMetadataComponent(); return this.metadata; @@ -12074,32 +12074,32 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.version"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.status"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.date"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.copyright"); } else if (name.equals("origin")) { return addOrigin(); } else if (name.equals("destination")) { diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Timing.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Timing.java index 400ee339a5..104e977e71 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Timing.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/Timing.java @@ -1769,29 +1769,29 @@ public Base addChild(String name) throws FHIRException { this.bounds = new Period(); return this.bounds; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.count"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.count"); } else if (name.equals("countMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.countMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.countMax"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.duration"); } else if (name.equals("durationMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.durationMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.durationMax"); } else if (name.equals("durationUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.durationUnit"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.durationUnit"); } else if (name.equals("frequency")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.frequency"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.frequency"); } else if (name.equals("frequencyMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.frequencyMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.frequencyMax"); } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.period"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.period"); } else if (name.equals("periodMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.periodMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.periodMax"); } else if (name.equals("periodUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.periodUnit"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.periodUnit"); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.when"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.when"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.offset"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.offset"); } else return super.addChild(name); } @@ -2087,7 +2087,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("event")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.event"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.event"); } else if (name.equals("repeat")) { this.repeat = new TimingRepeatComponent(); return this.repeat; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/TriggerDefinition.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/TriggerDefinition.java index b3d27d90f2..974ebda085 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/TriggerDefinition.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/TriggerDefinition.java @@ -604,9 +604,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.type"); } else if (name.equals("eventName")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.eventName"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.eventName"); } else if (name.equals("eventTimingTiming")) { this.eventTiming = new Timing(); return this.eventTiming; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ValueSet.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ValueSet.java index c22b743745..d839b2dd19 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ValueSet.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/ValueSet.java @@ -437,7 +437,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("telecom")) { return addTelecom(); } else @@ -740,7 +740,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("import")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.import"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.import"); } else if (name.equals("include")) { return addInclude(); } else if (name.equals("exclude")) { @@ -1134,9 +1134,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("concept")) { return addConcept(); } else if (name.equals("filter")) { @@ -1477,9 +1477,9 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.display"); } else if (name.equals("designation")) { return addDesignation(); } else @@ -1775,12 +1775,12 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.language"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.value"); } else return super.addChild(name); } @@ -2103,11 +2103,11 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.property"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.property"); } else if (name.equals("op")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.op"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.op"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.value"); } else return super.addChild(name); } @@ -2658,13 +2658,13 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.identifier"); } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.timestamp"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.total"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.total"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.offset"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.offset"); } else if (name.equals("parameter")) { return addParameter(); } else if (name.equals("contains")) { @@ -2980,7 +2980,7 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("valueString")) { this.value = new StringType(); return this.value; @@ -3550,15 +3550,15 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.system"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.abstract"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.display"); } else if (name.equals("contains")) { return addContains(); } else @@ -5001,38 +5001,38 @@ public Base makeProperty(int hash, String name) throws FHIRException { @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.url"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.status"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.experimental"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.date"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.date"); } else if (name.equals("lockedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.lockedDate"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.lockedDate"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.description"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("immutable")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.immutable"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.immutable"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.requirements"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.copyright"); } else if (name.equals("extensible")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.extensible"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.extensible"); } else if (name.equals("compose")) { this.compose = new ValueSetComposeComponent(); return this.compose; diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/VisionPrescription.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/VisionPrescription.java index 523da4a414..db527aa332 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/VisionPrescription.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/VisionPrescription.java @@ -1548,34 +1548,34 @@ public Base addChild(String name) throws FHIRException { this.product = new Coding(); return this.product; } else if (name.equals("eye")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.eye"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.eye"); } else if (name.equals("sphere")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.sphere"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.sphere"); } else if (name.equals("cylinder")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.cylinder"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.cylinder"); } else if (name.equals("axis")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.axis"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.axis"); } else if (name.equals("prism")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.prism"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.prism"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.base"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.base"); } else if (name.equals("add")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.add"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.add"); } else if (name.equals("power")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.power"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.power"); } else if (name.equals("backCurve")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.backCurve"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.backCurve"); } else if (name.equals("diameter")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.diameter"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.diameter"); } else if (name.equals("duration")) { this.duration = new SimpleQuantity(); return this.duration; } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.color"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.color"); } else if (name.equals("brand")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.brand"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.brand"); } else if (name.equals("notes")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.notes"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.notes"); } else return super.addChild(name); } @@ -2210,7 +2210,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("dateWritten")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.dateWritten"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.dateWritten"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Account.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Account.java index 50ed7a1135..8d3ca00547 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Account.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Account.java @@ -379,7 +379,7 @@ public Base addChild(String name) throws FHIRException { return this.coverage; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Account.priority"); } else return super.addChild(name); @@ -665,7 +665,7 @@ public Base addChild(String name) throws FHIRException { return this.party; } else if (name.equals("onHold")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.onHold"); + throw new FHIRException("Cannot call addChild on a singleton property Account.onHold"); } else if (name.equals("period")) { this.period = new Period(); @@ -1488,14 +1488,14 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.status"); + throw new FHIRException("Cannot call addChild on a singleton property Account.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.name"); + throw new FHIRException("Cannot call addChild on a singleton property Account.name"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -1521,7 +1521,7 @@ else if (name.equals("owner")) { return this.owner; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.description"); + throw new FHIRException("Cannot call addChild on a singleton property Account.description"); } else if (name.equals("guarantor")) { return addGuarantor(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ActivityDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ActivityDefinition.java index e9ab693bbd..9bca8a3f94 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ActivityDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ActivityDefinition.java @@ -2319,7 +2319,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.type"); } else if (name.equals("role")) { this.role = new CodeableConcept(); @@ -2697,16 +2697,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.description"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.path"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.language"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.language"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.expression"); } else return super.addChild(name); @@ -5032,46 +5032,46 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.publisher"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.description"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.usage"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -5093,7 +5093,7 @@ else if (name.equals("contact")) { return addContact(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.copyright"); } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); @@ -5102,7 +5102,7 @@ else if (name.equals("library")) { return addLibrary(); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.kind"); } else if (name.equals("code")) { this.code = new CodeableConcept(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Address.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Address.java index de962207c8..4ce4ddbb5f 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Address.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Address.java @@ -1005,31 +1005,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.use"); + throw new FHIRException("Cannot call addChild on a singleton property Address.use"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.type"); + throw new FHIRException("Cannot call addChild on a singleton property Address.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.text"); + throw new FHIRException("Cannot call addChild on a singleton property Address.text"); } else if (name.equals("line")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.line"); + throw new FHIRException("Cannot call addChild on a singleton property Address.line"); } else if (name.equals("city")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.city"); + throw new FHIRException("Cannot call addChild on a singleton property Address.city"); } else if (name.equals("district")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.district"); + throw new FHIRException("Cannot call addChild on a singleton property Address.district"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.state"); + throw new FHIRException("Cannot call addChild on a singleton property Address.state"); } else if (name.equals("postalCode")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.postalCode"); + throw new FHIRException("Cannot call addChild on a singleton property Address.postalCode"); } else if (name.equals("country")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.country"); + throw new FHIRException("Cannot call addChild on a singleton property Address.country"); } else if (name.equals("period")) { this.period = new Period(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AdverseEvent.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AdverseEvent.java index f9c202d81b..970457bd73 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AdverseEvent.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AdverseEvent.java @@ -703,14 +703,14 @@ public Base addChild(String name) throws FHIRException { return this.instance; } else if (name.equals("causality")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.causality"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.causality"); } else if (name.equals("causalityAssessment")) { this.causalityAssessment = new CodeableConcept(); return this.causalityAssessment; } else if (name.equals("causalityProductRelatedness")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.causalityProductRelatedness"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.causalityProductRelatedness"); } else if (name.equals("causalityMethod")) { this.causalityMethod = new CodeableConcept(); @@ -1907,7 +1907,7 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.category"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.category"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -1918,7 +1918,7 @@ else if (name.equals("subject")) { return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.date"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.date"); } else if (name.equals("reaction")) { return addReaction(); @@ -1944,7 +1944,7 @@ else if (name.equals("eventParticipant")) { return this.eventParticipant; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.description"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.description"); } else if (name.equals("suspectEntity")) { return addSuspectEntity(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AllergyIntolerance.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AllergyIntolerance.java index d22189a618..8fd9555138 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AllergyIntolerance.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AllergyIntolerance.java @@ -1238,13 +1238,13 @@ else if (name.equals("manifestation")) { return addManifestation(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.description"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.description"); } else if (name.equals("onset")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.onset"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.onset"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.severity"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.severity"); } else if (name.equals("exposureRoute")) { this.exposureRoute = new CodeableConcept(); @@ -2433,19 +2433,19 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("clinicalStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.clinicalStatus"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.clinicalStatus"); } else if (name.equals("verificationStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.verificationStatus"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.verificationStatus"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.type"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.type"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.category"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.category"); } else if (name.equals("criticality")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.criticality"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.criticality"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -2476,7 +2476,7 @@ else if (name.equals("onsetString")) { return this.onset; } else if (name.equals("assertedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.assertedDate"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.assertedDate"); } else if (name.equals("recorder")) { this.recorder = new Reference(); @@ -2487,7 +2487,7 @@ else if (name.equals("asserter")) { return this.asserter; } else if (name.equals("lastOccurrence")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.lastOccurrence"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.lastOccurrence"); } else if (name.equals("note")) { return addNote(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Annotation.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Annotation.java index 1051490f5e..920a2c3fb4 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Annotation.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Annotation.java @@ -327,10 +327,10 @@ else if (name.equals("authorString")) { return this.author; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.time"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.time"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.text"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.text"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Appointment.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Appointment.java index e4d1707854..64439789d7 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Appointment.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Appointment.java @@ -829,10 +829,10 @@ else if (name.equals("actor")) { return this.actor; } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.required"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.required"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.status"); } else return super.addChild(name); @@ -2349,7 +2349,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.status"); } else if (name.equals("serviceCategory")) { this.serviceCategory = new CodeableConcept(); @@ -2372,31 +2372,31 @@ else if (name.equals("indication")) { return addIndication(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.priority"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.description"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.description"); } else if (name.equals("supportingInformation")) { return addSupportingInformation(); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.start"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.end"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.end"); } else if (name.equals("minutesDuration")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.minutesDuration"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.minutesDuration"); } else if (name.equals("slot")) { return addSlot(); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.created"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.created"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.comment"); } else if (name.equals("incomingReferral")) { return addIncomingReferral(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AppointmentResponse.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AppointmentResponse.java index 2ef6575e8b..3fa90c760c 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AppointmentResponse.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AppointmentResponse.java @@ -787,10 +787,10 @@ else if (name.equals("appointment")) { return this.appointment; } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.start"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.end"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.end"); } else if (name.equals("participantType")) { return addParticipantType(); @@ -800,10 +800,10 @@ else if (name.equals("actor")) { return this.actor; } else if (name.equals("participantStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.participantStatus"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.participantStatus"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.comment"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.comment"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Attachment.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Attachment.java index f28f5ed2b0..7c10d44720 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Attachment.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Attachment.java @@ -636,28 +636,28 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.contentType"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.language"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.language"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.data"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.data"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.url"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.url"); } else if (name.equals("size")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.size"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.size"); } else if (name.equals("hash")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.hash"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.hash"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.title"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.title"); } else if (name.equals("creation")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.creation"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.creation"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AuditEvent.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AuditEvent.java index 7fd2789550..a61e7edb91 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AuditEvent.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/AuditEvent.java @@ -1216,20 +1216,20 @@ else if (name.equals("userId")) { return this.userId; } else if (name.equals("altId")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.altId"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.altId"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.name"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.name"); } else if (name.equals("requestor")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.requestor"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.requestor"); } else if (name.equals("location")) { this.location = new Reference(); return this.location; } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.policy"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.policy"); } else if (name.equals("media")) { this.media = new Coding(); @@ -1511,10 +1511,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.address"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.address"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.type"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.type"); } else return super.addChild(name); @@ -1810,7 +1810,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("site")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.site"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.site"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); @@ -2523,13 +2523,13 @@ else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.name"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.description"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.description"); } else if (name.equals("query")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.query"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.query"); } else if (name.equals("detail")) { return addDetail(); @@ -2796,10 +2796,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.type"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.type"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.value"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.value"); } else return super.addChild(name); @@ -3555,16 +3555,16 @@ else if (name.equals("subtype")) { return addSubtype(); } else if (name.equals("action")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.action"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.action"); } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.recorded"); } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcome"); } else if (name.equals("outcomeDesc")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcomeDesc"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcomeDesc"); } else if (name.equals("purposeOfEvent")) { return addPurposeOfEvent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Basic.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Basic.java index ec403ffb10..f7514a4a6f 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Basic.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Basic.java @@ -430,7 +430,7 @@ else if (name.equals("subject")) { return this.subject; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Basic.created"); + throw new FHIRException("Cannot call addChild on a singleton property Basic.created"); } else if (name.equals("author")) { this.author = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Binary.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Binary.java index 644380cfd7..40d79c2dd8 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Binary.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Binary.java @@ -304,14 +304,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.contentType"); } else if (name.equals("securityContext")) { this.securityContext = new Reference(); return this.securityContext; } else if (name.equals("content")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.content"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.content"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/BodySite.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/BodySite.java index 863af07973..ad9c431b6d 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/BodySite.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/BodySite.java @@ -569,7 +569,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type BodySite.active"); + throw new FHIRException("Cannot call addChild on a singleton property BodySite.active"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -579,7 +579,7 @@ else if (name.equals("qualifier")) { return addQualifier(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type BodySite.description"); + throw new FHIRException("Cannot call addChild on a singleton property BodySite.description"); } else if (name.equals("image")) { return addImage(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Bundle.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Bundle.java index 6f5a5b5999..27dfad958a 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Bundle.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Bundle.java @@ -698,10 +698,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("relation")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.relation"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.relation"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.url"); } else return super.addChild(name); @@ -1166,7 +1166,7 @@ public Base addChild(String name) throws FHIRException { return addLink(); } else if (name.equals("fullUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.fullUrl"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.fullUrl"); } else if (name.equals("resource")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.resource"); @@ -1455,10 +1455,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.mode"); } else if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.score"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.score"); } else return super.addChild(name); @@ -1968,22 +1968,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("method")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.method"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.method"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.url"); } else if (name.equals("ifNoneMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifNoneMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifNoneMatch"); } else if (name.equals("ifModifiedSince")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifModifiedSince"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifModifiedSince"); } else if (name.equals("ifMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifMatch"); } else if (name.equals("ifNoneExist")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifNoneExist"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifNoneExist"); } else return super.addChild(name); @@ -2406,16 +2406,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.status"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.status"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.location"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.location"); } else if (name.equals("etag")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.etag"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.etag"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.lastModified"); } else if (name.equals("outcome")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.outcome"); @@ -2940,10 +2940,10 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.type"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.type"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.total"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.total"); } else if (name.equals("link")) { return addLink(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CapabilityStatement.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CapabilityStatement.java index 091f886672..0148bb9b2f 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CapabilityStatement.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CapabilityStatement.java @@ -1798,13 +1798,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.name"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.version"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.version"); } else if (name.equals("releaseDate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.releaseDate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.releaseDate"); } else return super.addChild(name); @@ -2054,10 +2054,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.description"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.description"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.url"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.url"); } else return super.addChild(name); @@ -2705,10 +2705,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else if (name.equals("security")) { this.security = new CapabilityStatementRestSecurityComponent(); @@ -2727,7 +2727,7 @@ else if (name.equals("operation")) { return addOperation(); } else if (name.equals("compartment")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.compartment"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.compartment"); } else return super.addChild(name); @@ -3136,13 +3136,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("cors")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.cors"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.cors"); } else if (name.equals("service")) { return addService(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.description"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.description"); } else if (name.equals("certificate")) { return addCertificate(); @@ -3399,10 +3399,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.type"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.type"); } else if (name.equals("blob")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.blob"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.blob"); } else return super.addChild(name); @@ -4547,47 +4547,47 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.type"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.type"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else if (name.equals("interaction")) { return addInteraction(); } else if (name.equals("versioning")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.versioning"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.versioning"); } else if (name.equals("readHistory")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.readHistory"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.readHistory"); } else if (name.equals("updateCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.updateCreate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.updateCreate"); } else if (name.equals("conditionalCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.conditionalCreate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.conditionalCreate"); } else if (name.equals("conditionalRead")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.conditionalRead"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.conditionalRead"); } else if (name.equals("conditionalUpdate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.conditionalUpdate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.conditionalUpdate"); } else if (name.equals("conditionalDelete")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.conditionalDelete"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.conditionalDelete"); } else if (name.equals("referencePolicy")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.referencePolicy"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.referencePolicy"); } else if (name.equals("searchInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.searchInclude"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.searchInclude"); } else if (name.equals("searchRevInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.searchRevInclude"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.searchRevInclude"); } else if (name.equals("searchParam")) { return addSearchParam(); @@ -4887,10 +4887,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.code"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.code"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else return super.addChild(name); @@ -5268,16 +5268,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.name"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.definition"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.type"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.type"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else return super.addChild(name); @@ -5531,10 +5531,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.code"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.code"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else return super.addChild(name); @@ -5781,7 +5781,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.name"); } else if (name.equals("definition")) { this.definition = new Reference(); @@ -6236,10 +6236,10 @@ public Base addChild(String name) throws FHIRException { return addEndpoint(); } else if (name.equals("reliableCache")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.reliableCache"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.reliableCache"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else if (name.equals("supportedMessage")) { return addSupportedMessage(); @@ -6491,7 +6491,7 @@ public Base addChild(String name) throws FHIRException { return this.protocol; } else if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.address"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.address"); } else return super.addChild(name); @@ -6741,7 +6741,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.mode"); } else if (name.equals("definition")) { this.definition = new Reference(); @@ -7308,13 +7308,13 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.category"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.category"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.mode"); } else if (name.equals("focus")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.focus"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.focus"); } else if (name.equals("request")) { this.request = new Reference(); @@ -7325,7 +7325,7 @@ else if (name.equals("response")) { return this.response; } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else return super.addChild(name); @@ -7650,10 +7650,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else if (name.equals("profile")) { this.profile = new Reference(); @@ -9515,34 +9515,34 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.url"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.version"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.title"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.date"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.description"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -9551,16 +9551,16 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.copyright"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.kind"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.kind"); } else if (name.equals("instantiates")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.instantiates"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.instantiates"); } else if (name.equals("software")) { this.software = new CapabilityStatementSoftwareComponent(); @@ -9571,19 +9571,19 @@ else if (name.equals("implementation")) { return this.implementation; } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.fhirVersion"); } else if (name.equals("acceptUnknown")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.acceptUnknown"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.acceptUnknown"); } else if (name.equals("format")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.format"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.format"); } else if (name.equals("patchFormat")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.patchFormat"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.patchFormat"); } else if (name.equals("implementationGuide")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.implementationGuide"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.implementationGuide"); } else if (name.equals("profile")) { return addProfile(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CarePlan.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CarePlan.java index e379b60729..f3364354d7 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CarePlan.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CarePlan.java @@ -2160,13 +2160,13 @@ else if (name.equals("goal")) { return addGoal(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status"); } else if (name.equals("statusReason")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.statusReason"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.statusReason"); } else if (name.equals("prohibited")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.prohibited"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.prohibited"); } else if (name.equals("scheduledTiming")) { this.scheduled = new Timing(); @@ -2204,7 +2204,7 @@ else if (name.equals("quantity")) { return this.quantity; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description"); } else return super.addChild(name); @@ -3918,19 +3918,19 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.intent"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.title"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description"); } else if (name.equals("subject")) { this.subject = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CareTeam.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CareTeam.java index bfd45bf84b..d9c6b01c6e 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CareTeam.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CareTeam.java @@ -1441,13 +1441,13 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CareTeam.status"); + throw new FHIRException("Cannot call addChild on a singleton property CareTeam.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CareTeam.name"); + throw new FHIRException("Cannot call addChild on a singleton property CareTeam.name"); } else if (name.equals("subject")) { this.subject = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ChargeItem.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ChargeItem.java index 28a65afad7..6734b00815 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ChargeItem.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ChargeItem.java @@ -2107,10 +2107,10 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.definition"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.definition"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.status"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.status"); } else if (name.equals("partOf")) { return addPartOf(); @@ -2158,21 +2158,21 @@ else if (name.equals("bodysite")) { return addBodysite(); } else if (name.equals("factorOverride")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.factorOverride"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.factorOverride"); } else if (name.equals("priceOverride")) { this.priceOverride = new Money(); return this.priceOverride; } else if (name.equals("overrideReason")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.overrideReason"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.overrideReason"); } else if (name.equals("enterer")) { this.enterer = new Reference(); return this.enterer; } else if (name.equals("enteredDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.enteredDate"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.enteredDate"); } else if (name.equals("reason")) { return addReason(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Claim.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Claim.java index ce2d691f4e..243b21880c 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Claim.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Claim.java @@ -1197,14 +1197,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("provider")) { this.provider = new Reference(); return this.provider; } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.responsible"); } else if (name.equals("role")) { this.role = new CodeableConcept(); @@ -1701,7 +1701,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); @@ -2111,7 +2111,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("diagnosisCodeableConcept")) { this.diagnosis = new CodeableConcept(); @@ -2454,10 +2454,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.date"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.date"); } else if (name.equals("procedureCodeableConcept")) { this.procedure = new CodeableConcept(); @@ -2988,20 +2988,20 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.focal"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.businessArrangement"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.preAuthRef"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); @@ -3311,7 +3311,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.date"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -4830,19 +4830,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("careTeamLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.careTeamLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.careTeamLinkId"); } else if (name.equals("diagnosisLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.diagnosisLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.diagnosisLinkId"); } else if (name.equals("procedureLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.procedureLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.procedureLinkId"); } else if (name.equals("informationLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.informationLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.informationLinkId"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); @@ -4891,7 +4891,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("net")) { this.net = new Money(); @@ -5806,7 +5806,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); @@ -5835,7 +5835,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("net")) { this.net = new Money(); @@ -6629,7 +6629,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); @@ -6658,7 +6658,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("net")) { this.net = new Money(); @@ -8597,7 +8597,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.status"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -8607,7 +8607,7 @@ else if (name.equals("subType")) { return addSubType(); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.use"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.use"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -8618,7 +8618,7 @@ else if (name.equals("billablePeriod")) { return this.billablePeriod; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.created"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClaimResponse.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClaimResponse.java index e6c0307654..527aef6247 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClaimResponse.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClaimResponse.java @@ -532,10 +532,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); @@ -897,7 +897,7 @@ else if (name.equals("amount")) { return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); @@ -1299,10 +1299,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); @@ -1654,10 +1654,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); @@ -2316,7 +2316,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); @@ -2338,7 +2338,7 @@ else if (name.equals("fee")) { return this.fee; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); @@ -2891,7 +2891,7 @@ else if (name.equals("fee")) { return this.fee; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); @@ -3260,13 +3260,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId"); } else if (name.equals("detailSequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.detailSequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.detailSequenceLinkId"); } else if (name.equals("subdetailSequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.subdetailSequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.subdetailSequenceLinkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -3671,7 +3671,7 @@ else if (name.equals("adjustmentReason")) { return this.adjustmentReason; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.date"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.date"); } else if (name.equals("amount")) { this.amount = new Money(); @@ -4008,14 +4008,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.number"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.number"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.text"); } else if (name.equals("language")) { this.language = new CodeableConcept(); @@ -4543,20 +4543,20 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.focal"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.businessArrangement"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.preAuthRef"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); @@ -6063,14 +6063,14 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.created"); } else if (name.equals("insurer")) { this.insurer = new Reference(); @@ -6093,7 +6093,7 @@ else if (name.equals("outcome")) { return this.outcome; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.disposition"); } else if (name.equals("payeeType")) { this.payeeType = new CodeableConcept(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClinicalImpression.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClinicalImpression.java index 3e25a241ac..ab1484fb36 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClinicalImpression.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClinicalImpression.java @@ -638,7 +638,7 @@ else if (name.equals("itemReference")) { return this.item; } else if (name.equals("basis")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.basis"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.basis"); } else return super.addChild(name); @@ -2084,14 +2084,14 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.status"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.status"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.description"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.description"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -2110,7 +2110,7 @@ else if (name.equals("effectivePeriod")) { return this.effective; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.date"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.date"); } else if (name.equals("assessor")) { this.assessor = new Reference(); @@ -2127,10 +2127,10 @@ else if (name.equals("investigation")) { return addInvestigation(); } else if (name.equals("protocol")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.protocol"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.protocol"); } else if (name.equals("summary")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.summary"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.summary"); } else if (name.equals("finding")) { return addFinding(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeSystem.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeSystem.java index 1eedd90349..ebf62f7d36 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeSystem.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeSystem.java @@ -1025,16 +1025,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.operator"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.operator"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.value"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.value"); } else return super.addChild(name); @@ -1421,16 +1421,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.uri"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.uri"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.type"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.type"); } else return super.addChild(name); @@ -1957,13 +1957,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.display"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.display"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.definition"); } else if (name.equals("designation")) { return addDesignation(); @@ -2281,14 +2281,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.language"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.value"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.value"); } else return super.addChild(name); @@ -2607,7 +2607,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("valueCode")) { this.value = new CodeType(); @@ -4293,38 +4293,38 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.url"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.version"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.title"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -4333,31 +4333,31 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.copyright"); } else if (name.equals("caseSensitive")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.caseSensitive"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.caseSensitive"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.valueSet"); } else if (name.equals("hierarchyMeaning")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.hierarchyMeaning"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.hierarchyMeaning"); } else if (name.equals("compositional")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.compositional"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.compositional"); } else if (name.equals("versionNeeded")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.versionNeeded"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.versionNeeded"); } else if (name.equals("content")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.content"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.content"); } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.count"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.count"); } else if (name.equals("filter")) { return addFilter(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeableConcept.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeableConcept.java index f4176ea150..4535d0ecfa 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeableConcept.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeableConcept.java @@ -250,7 +250,7 @@ public Base addChild(String name) throws FHIRException { return addCoding(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeableConcept.text"); + throw new FHIRException("Cannot call addChild on a singleton property CodeableConcept.text"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coding.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coding.java index f762ce02e1..81d039f0e5 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coding.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coding.java @@ -450,19 +450,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.system"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.version"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.code"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.display"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.display"); } else if (name.equals("userSelected")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.userSelected"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.userSelected"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Communication.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Communication.java index c1f65154dd..51b0f4c2ca 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Communication.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Communication.java @@ -1941,10 +1941,10 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.status"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.status"); } else if (name.equals("notDone")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.notDone"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.notDone"); } else if (name.equals("notDoneReason")) { this.notDoneReason = new CodeableConcept(); @@ -1971,10 +1971,10 @@ else if (name.equals("context")) { return this.context; } else if (name.equals("sent")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.sent"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.sent"); } else if (name.equals("received")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.received"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.received"); } else if (name.equals("sender")) { this.sender = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CommunicationRequest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CommunicationRequest.java index fa2facd565..f79d3aebb7 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CommunicationRequest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CommunicationRequest.java @@ -2300,13 +2300,13 @@ else if (name.equals("groupIdentifier")) { return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.priority"); } else if (name.equals("medium")) { return addMedium(); @@ -2337,7 +2337,7 @@ else if (name.equals("occurrencePeriod")) { return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.authoredOn"); } else if (name.equals("sender")) { this.sender = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CompartmentDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CompartmentDefinition.java index 49b65b8206..1fc5d4f977 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CompartmentDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/CompartmentDefinition.java @@ -479,13 +479,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.code"); } else if (name.equals("param")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.param"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.param"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.documentation"); } else return super.addChild(name); @@ -1523,34 +1523,34 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.url"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.description"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.purpose"); } else if (name.equals("useContext")) { return addUseContext(); @@ -1559,10 +1559,10 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.code"); } else if (name.equals("search")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.search"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.search"); } else if (name.equals("resource")) { return addResource(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Composition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Composition.java index 490ceadbb7..6fe7d3d2b2 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Composition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Composition.java @@ -981,10 +981,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.mode"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.time"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.time"); } else if (name.equals("party")) { this.party = new Reference(); @@ -1250,7 +1250,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.code"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.code"); } else if (name.equals("targetIdentifier")) { this.target = new Identifier(); @@ -2149,7 +2149,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -2160,7 +2160,7 @@ else if (name.equals("text")) { return this.text; } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.mode"); } else if (name.equals("orderedBy")) { this.orderedBy = new CodeableConcept(); @@ -3256,7 +3256,7 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.status"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -3275,16 +3275,16 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.date"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.date"); } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.title"); } else if (name.equals("confidentiality")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.confidentiality"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.confidentiality"); } else if (name.equals("attester")) { return addAttester(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ConceptMap.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ConceptMap.java index d569cb8deb..d0f284d058 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ConceptMap.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ConceptMap.java @@ -611,16 +611,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.source"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.source"); } else if (name.equals("sourceVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.sourceVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.sourceVersion"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.target"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.target"); } else if (name.equals("targetVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.targetVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.targetVersion"); } else if (name.equals("element")) { return addElement(); @@ -951,10 +951,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.display"); } else if (name.equals("target")) { return addTarget(); @@ -1480,16 +1480,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.display"); } else if (name.equals("equivalence")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.equivalence"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.equivalence"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.comment"); } else if (name.equals("dependsOn")) { return addDependsOn(); @@ -1886,16 +1886,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.property"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.property"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.system"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.system"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.display"); } else return super.addChild(name); @@ -2281,16 +2281,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.mode"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.mode"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.display"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.url"); } else return super.addChild(name); @@ -3512,38 +3512,38 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.title"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -3552,10 +3552,10 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.copyright"); } else if (name.equals("sourceUri")) { this.source = new UriType(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Condition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Condition.java index aaa52c455a..68ad9f741a 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Condition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Condition.java @@ -2071,10 +2071,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("clinicalStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.clinicalStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.clinicalStatus"); } else if (name.equals("verificationStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.verificationStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.verificationStatus"); } else if (name.equals("category")) { return addCategory(); @@ -2143,7 +2143,7 @@ else if (name.equals("abatementString")) { return this.abatement; } else if (name.equals("assertedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.assertedDate"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.assertedDate"); } else if (name.equals("asserter")) { this.asserter = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Consent.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Consent.java index dacafd783f..493a38dc7b 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Consent.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Consent.java @@ -860,10 +860,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("authority")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.authority"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.authority"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.uri"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.uri"); } else return super.addChild(name); @@ -1108,7 +1108,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("meaning")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.meaning"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.meaning"); } else if (name.equals("reference")) { this.reference = new Reference(); @@ -1872,7 +1872,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.type"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.type"); } else if (name.equals("period")) { this.period = new Period(); @@ -2413,7 +2413,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("meaning")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.meaning"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.meaning"); } else if (name.equals("reference")) { this.reference = new Reference(); @@ -3758,7 +3758,7 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.status"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.status"); } else if (name.equals("category")) { return addCategory(); @@ -3772,7 +3772,7 @@ else if (name.equals("period")) { return this.period; } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.dateTime"); } else if (name.equals("consentingParty")) { return addConsentingParty(); @@ -3802,7 +3802,7 @@ else if (name.equals("policy")) { return addPolicy(); } else if (name.equals("policyRule")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.policyRule"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.policyRule"); } else if (name.equals("securityLabel")) { return addSecurityLabel(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactDetail.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactDetail.java index 5ca452e3e8..8cd8e0dd34 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactDetail.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactDetail.java @@ -247,7 +247,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactDetail.name"); + throw new FHIRException("Cannot call addChild on a singleton property ContactDetail.name"); } else if (name.equals("telecom")) { return addTelecom(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactPoint.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactPoint.java index f71b2e289c..e6348b0df8 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactPoint.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactPoint.java @@ -737,16 +737,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.system"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.value"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.value"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.use"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.use"); } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.rank"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.rank"); } else if (name.equals("period")) { this.period = new Period(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contract.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contract.java index 8092d96d76..150696eb21 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contract.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contract.java @@ -1470,7 +1470,7 @@ else if (name.equals("identifier")) { return this.identifier; } else if (name.equals("effectiveTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.effectiveTime"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.effectiveTime"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); @@ -1481,10 +1481,10 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.points"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.points"); } else if (name.equals("net")) { this.net = new Money(); @@ -2418,7 +2418,7 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.issued"); } else if (name.equals("applies")) { this.applies = new Period(); @@ -2448,7 +2448,7 @@ else if (name.equals("agent")) { return addAgent(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.text"); } else if (name.equals("valuedItem")) { return addValuedItem(); @@ -3349,7 +3349,7 @@ else if (name.equals("identifier")) { return this.identifier; } else if (name.equals("effectiveTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.effectiveTime"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.effectiveTime"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); @@ -3360,10 +3360,10 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.points"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.points"); } else if (name.equals("net")) { this.net = new Money(); @@ -5624,10 +5624,10 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.status"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.status"); } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.issued"); } else if (name.equals("applies")) { this.applies = new Period(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contributor.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contributor.java index f8cca75dd0..64a25a9784 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contributor.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contributor.java @@ -445,10 +445,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Contributor.type"); + throw new FHIRException("Cannot call addChild on a singleton property Contributor.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Contributor.name"); + throw new FHIRException("Cannot call addChild on a singleton property Contributor.name"); } else if (name.equals("contact")) { return addContact(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coverage.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coverage.java index efec98cee8..fe0b27c03b 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coverage.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coverage.java @@ -1035,40 +1035,40 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("group")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.group"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.group"); } else if (name.equals("groupDisplay")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.groupDisplay"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.groupDisplay"); } else if (name.equals("subGroup")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subGroup"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subGroup"); } else if (name.equals("subGroupDisplay")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subGroupDisplay"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subGroupDisplay"); } else if (name.equals("plan")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.plan"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.plan"); } else if (name.equals("planDisplay")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.planDisplay"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.planDisplay"); } else if (name.equals("subPlan")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subPlan"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subPlan"); } else if (name.equals("subPlanDisplay")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subPlanDisplay"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subPlanDisplay"); } else if (name.equals("class")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.class"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.class"); } else if (name.equals("classDisplay")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.classDisplay"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.classDisplay"); } else if (name.equals("subClass")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subClass"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subClass"); } else if (name.equals("subClassDisplay")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subClassDisplay"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subClassDisplay"); } else return super.addChild(name); @@ -2200,7 +2200,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.status"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -2215,7 +2215,7 @@ else if (name.equals("subscriber")) { return this.subscriber; } else if (name.equals("subscriberId")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subscriberId"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subscriberId"); } else if (name.equals("beneficiary")) { this.beneficiary = new Reference(); @@ -2237,16 +2237,16 @@ else if (name.equals("grouping")) { return this.grouping; } else if (name.equals("dependent")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.dependent"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.dependent"); } else if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.sequence"); } else if (name.equals("order")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.order"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.order"); } else if (name.equals("network")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.network"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.network"); } else if (name.equals("contract")) { return addContract(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataElement.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataElement.java index 44aa6cbfa5..167d892533 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataElement.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataElement.java @@ -548,16 +548,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.identity"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.identity"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.uri"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.uri"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.name"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.comment"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.comment"); } else return super.addChild(name); @@ -1678,31 +1678,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.url"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.version"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.version"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.status"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.date"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.publisher"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.title"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.title"); } else if (name.equals("contact")) { return addContact(); @@ -1714,10 +1714,10 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.copyright"); } else if (name.equals("stringency")) { - throw new FHIRException("Cannot call addChild on a primitive type DataElement.stringency"); + throw new FHIRException("Cannot call addChild on a singleton property DataElement.stringency"); } else if (name.equals("mapping")) { return addMapping(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataRequirement.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataRequirement.java index 34f0f4b57a..e7e9386aa7 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataRequirement.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataRequirement.java @@ -475,7 +475,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.path"); } else if (name.equals("valueSetString")) { this.valueSet = new StringType(); @@ -486,7 +486,7 @@ else if (name.equals("valueSetReference")) { return this.valueSet; } else if (name.equals("valueCode")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.valueCode"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.valueCode"); } else if (name.equals("valueCoding")) { return addValueCoding(); @@ -778,7 +778,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.path"); } else if (name.equals("valueDateTime")) { this.value = new DateTimeType(); @@ -1265,13 +1265,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.type"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.profile"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.profile"); } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.mustSupport"); } else if (name.equals("codeFilter")) { return addCodeFilter(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DetectedIssue.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DetectedIssue.java index 4999bf37f2..13b33e4b12 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DetectedIssue.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DetectedIssue.java @@ -606,7 +606,7 @@ public Base addChild(String name) throws FHIRException { return this.action; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.date"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.date"); } else if (name.equals("author")) { this.author = new Reference(); @@ -1429,21 +1429,21 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.status"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.severity"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.severity"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.date"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.date"); } else if (name.equals("author")) { this.author = new Reference(); @@ -1453,10 +1453,10 @@ else if (name.equals("implicated")) { return addImplicated(); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.detail"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.detail"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.reference"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.reference"); } else if (name.equals("mitigation")) { return addMitigation(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Device.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Device.java index 46d49a11b8..3f55abcf17 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Device.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Device.java @@ -910,25 +910,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("deviceIdentifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.deviceIdentifier"); + throw new FHIRException("Cannot call addChild on a singleton property Device.deviceIdentifier"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.name"); + throw new FHIRException("Cannot call addChild on a singleton property Device.name"); } else if (name.equals("jurisdiction")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.jurisdiction"); + throw new FHIRException("Cannot call addChild on a singleton property Device.jurisdiction"); } else if (name.equals("carrierHRF")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.carrierHRF"); + throw new FHIRException("Cannot call addChild on a singleton property Device.carrierHRF"); } else if (name.equals("carrierAIDC")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.carrierAIDC"); + throw new FHIRException("Cannot call addChild on a singleton property Device.carrierAIDC"); } else if (name.equals("issuer")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.issuer"); + throw new FHIRException("Cannot call addChild on a singleton property Device.issuer"); } else if (name.equals("entryType")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.entryType"); + throw new FHIRException("Cannot call addChild on a singleton property Device.entryType"); } else return super.addChild(name); @@ -2148,29 +2148,29 @@ else if (name.equals("udi")) { return this.udi; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.status"); + throw new FHIRException("Cannot call addChild on a singleton property Device.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.lotNumber"); } else if (name.equals("manufacturer")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufacturer"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufacturer"); } else if (name.equals("manufactureDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufactureDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufactureDate"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.expirationDate"); } else if (name.equals("model")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.model"); + throw new FHIRException("Cannot call addChild on a singleton property Device.model"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.version"); + throw new FHIRException("Cannot call addChild on a singleton property Device.version"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -2188,7 +2188,7 @@ else if (name.equals("location")) { return this.location; } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.url"); + throw new FHIRException("Cannot call addChild on a singleton property Device.url"); } else if (name.equals("note")) { return addNote(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceComponent.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceComponent.java index da6b9049b5..f9021ea1f6 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceComponent.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceComponent.java @@ -513,7 +513,7 @@ else if (name.equals("componentId")) { return this.componentId; } else if (name.equals("productionSpec")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.productionSpec"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.productionSpec"); } else return super.addChild(name); @@ -1216,7 +1216,7 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("lastSystemChange")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.lastSystemChange"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.lastSystemChange"); } else if (name.equals("source")) { this.source = new Reference(); @@ -1234,7 +1234,7 @@ else if (name.equals("parameterGroup")) { return this.parameterGroup; } else if (name.equals("measurementPrinciple")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.measurementPrinciple"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.measurementPrinciple"); } else if (name.equals("productionSpecification")) { return addProductionSpecification(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceMetric.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceMetric.java index 82597f4825..099a3278d4 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceMetric.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceMetric.java @@ -1023,13 +1023,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.type"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.type"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.state"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.state"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.time"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.time"); } else return super.addChild(name); @@ -1741,13 +1741,13 @@ else if (name.equals("parent")) { return this.parent; } else if (name.equals("operationalStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.operationalStatus"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.operationalStatus"); } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.color"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.color"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.category"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.category"); } else if (name.equals("measurementPeriod")) { this.measurementPeriod = new Timing(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceRequest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceRequest.java index 1f211ff23c..7831b10d16 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceRequest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceRequest.java @@ -2140,14 +2140,14 @@ else if (name.equals("groupIdentifier")) { return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.status"); } else if (name.equals("intent")) { this.intent = new CodeableConcept(); return this.intent; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.priority"); } else if (name.equals("codeReference")) { this.code = new Reference(); @@ -2178,7 +2178,7 @@ else if (name.equals("occurrenceTiming")) { return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new DeviceRequestRequesterComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceUseStatement.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceUseStatement.java index f529decb75..8b0fda2131 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceUseStatement.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceUseStatement.java @@ -985,7 +985,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.status"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -1008,7 +1008,7 @@ else if (name.equals("timingDateTime")) { return this.timing; } else if (name.equals("recordedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.recordedOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.recordedOn"); } else if (name.equals("source")) { this.source = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DiagnosticReport.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DiagnosticReport.java index 429ade1429..ad61a01852 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DiagnosticReport.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DiagnosticReport.java @@ -707,7 +707,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.comment"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.comment"); } else if (name.equals("link")) { this.link = new Reference(); @@ -2024,7 +2024,7 @@ else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); @@ -2051,7 +2051,7 @@ else if (name.equals("effectivePeriod")) { return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.issued"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.issued"); } else if (name.equals("performer")) { return addPerformer(); @@ -2069,7 +2069,7 @@ else if (name.equals("image")) { return addImage(); } else if (name.equals("conclusion")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.conclusion"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.conclusion"); } else if (name.equals("codedDiagnosis")) { return addCodedDiagnosis(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentManifest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentManifest.java index f91d76b15c..a270fd38fa 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentManifest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentManifest.java @@ -1330,7 +1330,7 @@ else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -1341,7 +1341,7 @@ else if (name.equals("subject")) { return this.subject; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.created"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.created"); } else if (name.equals("author")) { return addAuthor(); @@ -1350,10 +1350,10 @@ else if (name.equals("recipient")) { return addRecipient(); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.source"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.source"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.description"); } else if (name.equals("content")) { return addContent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentReference.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentReference.java index 1c3b62f6c9..0de1e9b563 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentReference.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentReference.java @@ -514,7 +514,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.code"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.code"); } else if (name.equals("target")) { this.target = new Reference(); @@ -2662,10 +2662,10 @@ else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.status"); } else if (name.equals("docStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.docStatus"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.docStatus"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -2680,10 +2680,10 @@ else if (name.equals("subject")) { return this.subject; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.created"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.created"); } else if (name.equals("indexed")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.indexed"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.indexed"); } else if (name.equals("author")) { return addAuthor(); @@ -2700,7 +2700,7 @@ else if (name.equals("relatesTo")) { return addRelatesTo(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.description"); } else if (name.equals("securityLabel")) { return addSecurityLabel(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Dosage.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Dosage.java index 61361fe6f1..b7618868e4 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Dosage.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Dosage.java @@ -900,16 +900,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.sequence"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.text"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.text"); } else if (name.equals("additionalInstruction")) { return addAdditionalInstruction(); } else if (name.equals("patientInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.patientInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.patientInstruction"); } else if (name.equals("timing")) { this.timing = new Timing(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Element.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Element.java index a207223ba4..ee6b8bc837 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Element.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Element.java @@ -295,7 +295,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Element.id"); + throw new FHIRException("Cannot call addChild on a singleton property Element.id"); } else if (name.equals("extension")) { return addExtension(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ElementDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ElementDefinition.java index 836089e481..8500821623 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ElementDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ElementDefinition.java @@ -1113,13 +1113,13 @@ public Base addChild(String name) throws FHIRException { return addDiscriminator(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.description"); } else if (name.equals("ordered")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.ordered"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.ordered"); } else if (name.equals("rules")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.rules"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.rules"); } else return super.addChild(name); @@ -1374,10 +1374,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else return super.addChild(name); @@ -1683,13 +1683,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max"); } else return super.addChild(name); @@ -2155,19 +2155,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.code"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.profile"); } else if (name.equals("targetProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.targetProfile"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.targetProfile"); } else if (name.equals("aggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.aggregation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.aggregation"); } else if (name.equals("versioning")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.versioning"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.versioning"); } else return super.addChild(name); @@ -2439,7 +2439,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.label"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.label"); } else if (name.equals("valueBoolean")) { this.value = new BooleanType(); @@ -3141,25 +3141,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("key")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.key"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.key"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.severity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.severity"); } else if (name.equals("human")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.human"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.human"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.expression"); } else if (name.equals("xpath")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.xpath"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.xpath"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.source"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.source"); } else return super.addChild(name); @@ -3490,10 +3490,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.strength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.strength"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.description"); } else if (name.equals("valueSetUri")) { this.valueSet = new UriType(); @@ -3880,16 +3880,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.identity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.identity"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.language"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.language"); } else if (name.equals("map")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.map"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.map"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.comment"); } else return super.addChild(name); @@ -6343,16 +6343,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else if (name.equals("representation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.representation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.representation"); } else if (name.equals("sliceName")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.sliceName"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.sliceName"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.label"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.label"); } else if (name.equals("code")) { return addCode(); @@ -6362,32 +6362,32 @@ else if (name.equals("slicing")) { return this.slicing; } else if (name.equals("short")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.short"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.short"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.definition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.definition"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.comment"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.alias"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.alias"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max"); } else if (name.equals("base")) { this.base = new ElementDefinitionBaseComponent(); return this.base; } else if (name.equals("contentReference")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.contentReference"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.contentReference"); } else if (name.equals("type")) { return addType(); @@ -6525,10 +6525,10 @@ else if (name.equals("defaultValueMeta")) { return this.defaultValue; } else if (name.equals("meaningWhenMissing")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.meaningWhenMissing"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.meaningWhenMissing"); } else if (name.equals("orderMeaning")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.orderMeaning"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.orderMeaning"); } else if (name.equals("fixedBoolean")) { this.fixed = new BooleanType(); @@ -6870,22 +6870,22 @@ else if (name.equals("maxValueQuantity")) { return this.maxValue; } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.maxLength"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.condition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.condition"); } else if (name.equals("constraint")) { return addConstraint(); } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mustSupport"); } else if (name.equals("isModifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isModifier"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isModifier"); } else if (name.equals("isSummary")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isSummary"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isSummary"); } else if (name.equals("binding")) { this.binding = new ElementDefinitionBindingComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityRequest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityRequest.java index 035ab95850..fdcf7a5071 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityRequest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityRequest.java @@ -1175,7 +1175,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityRequest.status"); } else if (name.equals("priority")) { this.priority = new CodeableConcept(); @@ -1194,7 +1194,7 @@ else if (name.equals("servicedPeriod")) { return this.serviced; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityRequest.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); @@ -1221,7 +1221,7 @@ else if (name.equals("coverage")) { return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityRequest.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityRequest.businessArrangement"); } else if (name.equals("benefitCategory")) { this.benefitCategory = new CodeableConcept(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityResponse.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityResponse.java index 9e497f9435..650b529832 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityResponse.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityResponse.java @@ -1062,13 +1062,13 @@ else if (name.equals("subCategory")) { return this.subCategory; } else if (name.equals("excluded")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.excluded"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.excluded"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.name"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.description"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.description"); } else if (name.equals("network")) { this.network = new CodeableConcept(); @@ -2534,10 +2534,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.status"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.created"); } else if (name.equals("requestProvider")) { this.requestProvider = new Reference(); @@ -2556,14 +2556,14 @@ else if (name.equals("outcome")) { return this.outcome; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.disposition"); } else if (name.equals("insurer")) { this.insurer = new Reference(); return this.insurer; } else if (name.equals("inforce")) { - throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.inforce"); + throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.inforce"); } else if (name.equals("insurance")) { return addInsurance(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Encounter.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Encounter.java index 1c20c6455b..e104cf8605 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Encounter.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Encounter.java @@ -569,7 +569,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("period")) { this.period = new Period(); @@ -1369,7 +1369,7 @@ else if (name.equals("role")) { return this.role; } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.rank"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.rank"); } else return super.addChild(name); @@ -2346,7 +2346,7 @@ public Base addChild(String name) throws FHIRException { return this.location; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("period")) { this.period = new Period(); @@ -3860,7 +3860,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Endpoint.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Endpoint.java index e9d88d64ed..fb52741bfd 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Endpoint.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Endpoint.java @@ -993,14 +993,14 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.status"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.status"); } else if (name.equals("connectionType")) { this.connectionType = new Coding(); return this.connectionType; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.name"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.name"); } else if (name.equals("managingOrganization")) { this.managingOrganization = new Reference(); @@ -1017,13 +1017,13 @@ else if (name.equals("payloadType")) { return addPayloadType(); } else if (name.equals("payloadMimeType")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.payloadMimeType"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.payloadMimeType"); } else if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.address"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.address"); } else if (name.equals("header")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.header"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.header"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentRequest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentRequest.java index 50b1bae465..cfc4e39ca3 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentRequest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentRequest.java @@ -777,10 +777,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.status"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.created"); } else if (name.equals("insurer")) { this.insurer = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentResponse.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentResponse.java index 15f42a469b..37ca34f7fd 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentResponse.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentResponse.java @@ -820,7 +820,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.status"); } else if (name.equals("request")) { this.request = new Reference(); @@ -831,10 +831,10 @@ else if (name.equals("outcome")) { return this.outcome; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.disposition"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.created"); } else if (name.equals("organization")) { this.organization = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EpisodeOfCare.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EpisodeOfCare.java index 9bd4648432..b2c7a81f41 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EpisodeOfCare.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/EpisodeOfCare.java @@ -405,7 +405,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status"); } else if (name.equals("period")) { this.period = new Period(); @@ -705,7 +705,7 @@ else if (name.equals("role")) { return this.role; } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.rank"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.rank"); } else return super.addChild(name); @@ -1703,7 +1703,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExpansionProfile.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExpansionProfile.java index 814ed98657..b4850b9b7c 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExpansionProfile.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExpansionProfile.java @@ -431,13 +431,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.system"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.version"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.version"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.mode"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.mode"); } else return super.addChild(name); @@ -686,10 +686,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.system"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.version"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.version"); } else return super.addChild(name); @@ -1288,7 +1288,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.language"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.language"); } else if (name.equals("use")) { this.use = new Coding(); @@ -1694,7 +1694,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.language"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.language"); } else if (name.equals("use")) { this.use = new Coding(); @@ -3163,35 +3163,35 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.url"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.version"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.status"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -3207,32 +3207,32 @@ else if (name.equals("excludedSystem")) { return this.excludedSystem; } else if (name.equals("includeDesignations")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.includeDesignations"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.includeDesignations"); } else if (name.equals("designation")) { this.designation = new ExpansionProfileDesignationComponent(); return this.designation; } else if (name.equals("includeDefinition")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.includeDefinition"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.includeDefinition"); } else if (name.equals("activeOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.activeOnly"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.activeOnly"); } else if (name.equals("excludeNested")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.excludeNested"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.excludeNested"); } else if (name.equals("excludeNotForUI")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.excludeNotForUI"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.excludeNotForUI"); } else if (name.equals("excludePostCoordinated")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.excludePostCoordinated"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.excludePostCoordinated"); } else if (name.equals("displayLanguage")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.displayLanguage"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.displayLanguage"); } else if (name.equals("limitedExpansion")) { - throw new FHIRException("Cannot call addChild on a primitive type ExpansionProfile.limitedExpansion"); + throw new FHIRException("Cannot call addChild on a singleton property ExpansionProfile.limitedExpansion"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExplanationOfBenefit.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExplanationOfBenefit.java index 5b86aaf38a..fc6f43b5e6 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExplanationOfBenefit.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExplanationOfBenefit.java @@ -1156,7 +1156,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); @@ -1587,14 +1587,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("provider")) { this.provider = new Reference(); return this.provider; } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.responsible"); } else if (name.equals("role")) { this.role = new CodeableConcept(); @@ -1975,7 +1975,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("diagnosisCodeableConcept")) { this.diagnosis = new CodeableConcept(); @@ -2318,10 +2318,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.date"); } else if (name.equals("procedureCodeableConcept")) { this.procedure = new CodeableConcept(); @@ -2590,7 +2590,7 @@ public Base addChild(String name) throws FHIRException { return this.coverage; } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.preAuthRef"); } else return super.addChild(name); @@ -2884,7 +2884,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -4551,19 +4551,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("careTeamLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.careTeamLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.careTeamLinkId"); } else if (name.equals("diagnosisLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.diagnosisLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.diagnosisLinkId"); } else if (name.equals("procedureLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.procedureLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.procedureLinkId"); } else if (name.equals("informationLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.informationLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.informationLinkId"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); @@ -4612,7 +4612,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("net")) { this.net = new Money(); @@ -4632,7 +4632,7 @@ else if (name.equals("encounter")) { return addEncounter(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); @@ -5060,7 +5060,7 @@ else if (name.equals("amount")) { return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.value"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.value"); } else return super.addChild(name); @@ -6077,7 +6077,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -6110,7 +6110,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("net")) { this.net = new Money(); @@ -6120,7 +6120,7 @@ else if (name.equals("udi")) { return addUdi(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); @@ -7114,7 +7114,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -7147,7 +7147,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("net")) { this.net = new Money(); @@ -7157,7 +7157,7 @@ else if (name.equals("udi")) { return addUdi(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); @@ -7844,7 +7844,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequenceLinkId"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); @@ -7866,7 +7866,7 @@ else if (name.equals("fee")) { return this.fee; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); @@ -8419,7 +8419,7 @@ else if (name.equals("fee")) { return this.fee; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); @@ -8837,7 +8837,7 @@ else if (name.equals("adjustmentReason")) { return this.adjustmentReason; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.date"); } else if (name.equals("amount")) { this.amount = new Money(); @@ -9174,14 +9174,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.number"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.number"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.text"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.text"); } else if (name.equals("language")) { this.language = new CodeableConcept(); @@ -9789,13 +9789,13 @@ else if (name.equals("subCategory")) { return this.subCategory; } else if (name.equals("excluded")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.excluded"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.excluded"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.description"); } else if (name.equals("network")) { this.network = new CodeableConcept(); @@ -12571,7 +12571,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.status"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -12589,7 +12589,7 @@ else if (name.equals("billablePeriod")) { return this.billablePeriod; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.created"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); @@ -12628,7 +12628,7 @@ else if (name.equals("outcome")) { return this.outcome; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.disposition"); } else if (name.equals("related")) { return addRelated(); @@ -12658,7 +12658,7 @@ else if (name.equals("procedure")) { return addProcedure(); } else if (name.equals("precedence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.precedence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.precedence"); } else if (name.equals("insurance")) { this.insurance = new InsuranceComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Extension.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Extension.java index d8637a3133..d6fd26ec46 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Extension.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Extension.java @@ -270,7 +270,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Extension.url"); + throw new FHIRException("Cannot call addChild on a singleton property Extension.url"); } else if (name.equals("valueBoolean")) { this.value = new BooleanType(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/FamilyMemberHistory.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/FamilyMemberHistory.java index bd8fb0a44a..e6d8a2b3ba 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/FamilyMemberHistory.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/FamilyMemberHistory.java @@ -1956,10 +1956,10 @@ else if (name.equals("definition")) { return addDefinition(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.status"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.status"); } else if (name.equals("notDone")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.notDone"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.notDone"); } else if (name.equals("notDoneReason")) { this.notDoneReason = new CodeableConcept(); @@ -1970,17 +1970,17 @@ else if (name.equals("patient")) { return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.date"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.date"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.name"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.name"); } else if (name.equals("relationship")) { this.relationship = new CodeableConcept(); return this.relationship; } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.gender"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.gender"); } else if (name.equals("bornPeriod")) { this.born = new Period(); @@ -2007,7 +2007,7 @@ else if (name.equals("ageString")) { return this.age; } else if (name.equals("estimatedAge")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.estimatedAge"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.estimatedAge"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Flag.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Flag.java index 0401a47b68..faa1a91f9d 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Flag.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Flag.java @@ -683,7 +683,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Flag.status"); + throw new FHIRException("Cannot call addChild on a singleton property Flag.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Goal.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Goal.java index 838c751447..5b03d06945 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Goal.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Goal.java @@ -1715,7 +1715,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.status"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.status"); } else if (name.equals("category")) { return addCategory(); @@ -1745,10 +1745,10 @@ else if (name.equals("target")) { return this.target; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.statusDate"); } else if (name.equals("statusReason")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.statusReason"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.statusReason"); } else if (name.equals("expressedBy")) { this.expressedBy = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/GraphDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/GraphDefinition.java index 48fdc3144e..cd5c7c45f2 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/GraphDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/GraphDefinition.java @@ -793,19 +793,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.path"); } else if (name.equals("sliceName")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.sliceName"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.sliceName"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.max"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.description"); } else if (name.equals("target")) { return addTarget(); @@ -1207,10 +1207,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.profile"); } else if (name.equals("compartment")) { return addCompartment(); @@ -1609,16 +1609,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.code"); } else if (name.equals("rule")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.rule"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.rule"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.expression"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.description"); } else return super.addChild(name); @@ -2657,31 +2657,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -2690,13 +2690,13 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.purpose"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.start"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.start"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.profile"); } else if (name.equals("link")) { return addLink(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Group.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Group.java index 9ac3681c15..30e6952378 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Group.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Group.java @@ -554,7 +554,7 @@ else if (name.equals("valueRange")) { return this.value; } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property Group.exclude"); } else if (name.equals("period")) { this.period = new Period(); @@ -852,7 +852,7 @@ else if (name.equals("period")) { return this.period; } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property Group.inactive"); } else return super.addChild(name); @@ -1543,23 +1543,23 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.active"); + throw new FHIRException("Cannot call addChild on a singleton property Group.active"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.type"); + throw new FHIRException("Cannot call addChild on a singleton property Group.type"); } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.actual"); + throw new FHIRException("Cannot call addChild on a singleton property Group.actual"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.name"); + throw new FHIRException("Cannot call addChild on a singleton property Group.name"); } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property Group.quantity"); } else if (name.equals("characteristic")) { return addCharacteristic(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/GuidanceResponse.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/GuidanceResponse.java index 8dda3d9e67..fac2192a27 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/GuidanceResponse.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/GuidanceResponse.java @@ -1210,7 +1210,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("requestId")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.requestId"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.requestId"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); @@ -1221,7 +1221,7 @@ else if (name.equals("module")) { return this.module; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.status"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -1232,7 +1232,7 @@ else if (name.equals("context")) { return this.context; } else if (name.equals("occurrenceDateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.occurrenceDateTime"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.occurrenceDateTime"); } else if (name.equals("performer")) { this.performer = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/HealthcareService.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/HealthcareService.java index a5515a850b..56f745e13f 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/HealthcareService.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/HealthcareService.java @@ -567,16 +567,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.allDay"); } else if (name.equals("availableStartTime")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableStartTime"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableStartTime"); } else if (name.equals("availableEndTime")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableEndTime"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableEndTime"); } else return super.addChild(name); @@ -806,7 +806,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.description"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.description"); } else if (name.equals("during")) { this.during = new Period(); @@ -2568,7 +2568,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.active"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.active"); } else if (name.equals("providedBy")) { this.providedBy = new Reference(); @@ -2588,13 +2588,13 @@ else if (name.equals("location")) { return addLocation(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.name"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.name"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.comment"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.comment"); } else if (name.equals("extraDetails")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.extraDetails"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.extraDetails"); } else if (name.equals("photo")) { this.photo = new Attachment(); @@ -2614,10 +2614,10 @@ else if (name.equals("eligibility")) { return this.eligibility; } else if (name.equals("eligibilityNote")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.eligibilityNote"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.eligibilityNote"); } else if (name.equals("programName")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.programName"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.programName"); } else if (name.equals("characteristic")) { return addCharacteristic(); @@ -2626,7 +2626,7 @@ else if (name.equals("referralMethod")) { return addReferralMethod(); } else if (name.equals("appointmentRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.appointmentRequired"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.appointmentRequired"); } else if (name.equals("availableTime")) { return addAvailableTime(); @@ -2635,7 +2635,7 @@ else if (name.equals("notAvailable")) { return addNotAvailable(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availabilityExceptions"); } else if (name.equals("endpoint")) { return addEndpoint(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/HumanName.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/HumanName.java index 66eed6226c..af196dfb48 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/HumanName.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/HumanName.java @@ -838,22 +838,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.use"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.use"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.text"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.text"); } else if (name.equals("family")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.family"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.family"); } else if (name.equals("given")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.given"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.given"); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.prefix"); } else if (name.equals("suffix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.suffix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.suffix"); } else if (name.equals("period")) { this.period = new Period(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Identifier.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Identifier.java index 95cbf20cac..6dcb1984a7 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Identifier.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Identifier.java @@ -588,17 +588,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.use"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.use"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.system"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.value"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.value"); } else if (name.equals("period")) { this.period = new Period(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImagingManifest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImagingManifest.java index aaeefbacd4..40be233373 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImagingManifest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImagingManifest.java @@ -420,7 +420,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingManifest.uid"); } else if (name.equals("imagingStudy")) { this.imagingStudy = new Reference(); @@ -789,7 +789,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingManifest.uid"); } else if (name.equals("endpoint")) { return addEndpoint(); @@ -1049,10 +1049,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sopClass")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.sopClass"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingManifest.sopClass"); } else if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingManifest.uid"); } else return super.addChild(name); @@ -1551,14 +1551,14 @@ else if (name.equals("patient")) { return this.patient; } else if (name.equals("authoringTime")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.authoringTime"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingManifest.authoringTime"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingManifest.description"); } else if (name.equals("study")) { return addStudy(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImagingStudy.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImagingStudy.java index eb3b52c237..8a15f5f795 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImagingStudy.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImagingStudy.java @@ -1030,23 +1030,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.number"); } else if (name.equals("modality")) { this.modality = new Coding(); return this.modality; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances"); } else if (name.equals("availability")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.availability"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.availability"); } else if (name.equals("endpoint")) { return addEndpoint(); @@ -1060,7 +1060,7 @@ else if (name.equals("laterality")) { return this.laterality; } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started"); } else if (name.equals("performer")) { return addPerformer(); @@ -1467,16 +1467,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.number"); } else if (name.equals("sopClass")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.sopClass"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.sopClass"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.title"); } else return super.addChild(name); @@ -2919,7 +2919,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("accession")) { this.accession = new Identifier(); @@ -2929,7 +2929,7 @@ else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("availability")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.availability"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.availability"); } else if (name.equals("modalityList")) { return addModalityList(); @@ -2943,7 +2943,7 @@ else if (name.equals("context")) { return this.context; } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -2959,10 +2959,10 @@ else if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("numberOfSeries")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfSeries"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfSeries"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances"); } else if (name.equals("procedureReference")) { return addProcedureReference(); @@ -2975,7 +2975,7 @@ else if (name.equals("reason")) { return this.reason; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description"); } else if (name.equals("series")) { return addSeries(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Immunization.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Immunization.java index 31344d7898..79d3251095 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Immunization.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Immunization.java @@ -901,14 +901,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.date"); } else if (name.equals("detail")) { this.detail = new Reference(); return this.detail; } else if (name.equals("reported")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reported"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reported"); } else return super.addChild(name); @@ -1505,20 +1505,20 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("doseSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.doseSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.doseSequence"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.description"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.description"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.series"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.series"); } else if (name.equals("seriesDoses")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.seriesDoses"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.seriesDoses"); } else if (name.equals("targetDisease")) { return addTargetDisease(); @@ -2918,10 +2918,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.status"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.status"); } else if (name.equals("notGiven")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.notGiven"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.notGiven"); } else if (name.equals("vaccineCode")) { this.vaccineCode = new CodeableConcept(); @@ -2936,10 +2936,10 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.date"); } else if (name.equals("primarySource")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.primarySource"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.primarySource"); } else if (name.equals("reportOrigin")) { this.reportOrigin = new CodeableConcept(); @@ -2954,10 +2954,10 @@ else if (name.equals("manufacturer")) { return this.manufacturer; } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.expirationDate"); } else if (name.equals("site")) { this.site = new CodeableConcept(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImmunizationRecommendation.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImmunizationRecommendation.java index ffc02195a4..73713057e2 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImmunizationRecommendation.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImmunizationRecommendation.java @@ -668,7 +668,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.date"); } else if (name.equals("vaccineCode")) { this.vaccineCode = new CodeableConcept(); @@ -679,7 +679,7 @@ else if (name.equals("targetDisease")) { return this.targetDisease; } else if (name.equals("doseNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.doseNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.doseNumber"); } else if (name.equals("forecastStatus")) { this.forecastStatus = new CodeableConcept(); @@ -948,7 +948,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.value"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.value"); } else return super.addChild(name); @@ -1318,17 +1318,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("doseSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.doseSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.doseSequence"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.description"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.series"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.series"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImplementationGuide.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImplementationGuide.java index 6a049a8192..4b3434ccff 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImplementationGuide.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ImplementationGuide.java @@ -545,10 +545,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.uri"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.uri"); } else return super.addChild(name); @@ -864,10 +864,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("resource")) { return addResource(); @@ -1394,16 +1394,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("example")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.example"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.example"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("acronym")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.acronym"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.acronym"); } else if (name.equals("sourceUri")) { this.source = new UriType(); @@ -1671,7 +1671,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type"); } else if (name.equals("profile")) { this.profile = new Reference(); @@ -2277,22 +2277,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.source"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.source"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.title"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.kind"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.kind"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type"); } else if (name.equals("package")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.package"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.package"); } else if (name.equals("format")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.format"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.format"); } else if (name.equals("page")) { return addPage(); @@ -3543,31 +3543,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.version"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -3576,10 +3576,10 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.copyright"); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.fhirVersion"); } else if (name.equals("dependency")) { return addDependency(); @@ -3591,7 +3591,7 @@ else if (name.equals("global")) { return addGlobal(); } else if (name.equals("binary")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.binary"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.binary"); } else if (name.equals("page")) { this.page = new ImplementationGuidePageComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Library.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Library.java index baba6456ab..ac38623293 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Library.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Library.java @@ -1743,50 +1743,50 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.url"); + throw new FHIRException("Cannot call addChild on a singleton property Library.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.version"); + throw new FHIRException("Cannot call addChild on a singleton property Library.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.name"); + throw new FHIRException("Cannot call addChild on a singleton property Library.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.title"); + throw new FHIRException("Cannot call addChild on a singleton property Library.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.status"); + throw new FHIRException("Cannot call addChild on a singleton property Library.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Library.experimental"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.date"); + throw new FHIRException("Cannot call addChild on a singleton property Library.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Library.publisher"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.description"); + throw new FHIRException("Cannot call addChild on a singleton property Library.description"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Library.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.usage"); + throw new FHIRException("Cannot call addChild on a singleton property Library.usage"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Library.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Library.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -1808,7 +1808,7 @@ else if (name.equals("contact")) { return addContact(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Library.copyright"); } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Linkage.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Linkage.java index 5ba83d9802..69575cbe77 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Linkage.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Linkage.java @@ -342,7 +342,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Linkage.type"); + throw new FHIRException("Cannot call addChild on a singleton property Linkage.type"); } else if (name.equals("resource")) { this.resource = new Reference(); @@ -647,7 +647,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Linkage.active"); + throw new FHIRException("Cannot call addChild on a singleton property Linkage.active"); } else if (name.equals("author")) { this.author = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ListResource.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ListResource.java index f7b96c4cd5..5ece3d2297 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ListResource.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ListResource.java @@ -583,10 +583,10 @@ public Base addChild(String name) throws FHIRException { return this.flag; } else if (name.equals("deleted")) { - throw new FHIRException("Cannot call addChild on a primitive type List.deleted"); + throw new FHIRException("Cannot call addChild on a singleton property List.deleted"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List.date"); + throw new FHIRException("Cannot call addChild on a singleton property List.date"); } else if (name.equals("item")) { this.item = new Reference(); @@ -1500,13 +1500,13 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type List.status"); + throw new FHIRException("Cannot call addChild on a singleton property List.status"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type List.mode"); + throw new FHIRException("Cannot call addChild on a singleton property List.mode"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type List.title"); + throw new FHIRException("Cannot call addChild on a singleton property List.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -1521,7 +1521,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List.date"); + throw new FHIRException("Cannot call addChild on a singleton property List.date"); } else if (name.equals("source")) { this.source = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Location.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Location.java index 22dde2b436..53bd555097 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Location.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Location.java @@ -579,13 +579,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("longitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.longitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.longitude"); } else if (name.equals("latitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.latitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.latitude"); } else if (name.equals("altitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.altitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.altitude"); } else return super.addChild(name); @@ -1625,23 +1625,23 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.status"); + throw new FHIRException("Cannot call addChild on a singleton property Location.status"); } else if (name.equals("operationalStatus")) { this.operationalStatus = new Coding(); return this.operationalStatus; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.name"); + throw new FHIRException("Cannot call addChild on a singleton property Location.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Location.alias"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.description"); + throw new FHIRException("Cannot call addChild on a singleton property Location.description"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Location.mode"); } else if (name.equals("type")) { this.type = new CodeableConcept(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Measure.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Measure.java index c347a66409..d9f4a8ea39 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Measure.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Measure.java @@ -445,10 +445,10 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.name"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("population")) { return addPopulation(); @@ -870,13 +870,13 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.name"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.criteria"); } else return super.addChild(name); @@ -1169,10 +1169,10 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.criteria"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.path"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.path"); } else return super.addChild(name); @@ -1536,10 +1536,10 @@ else if (name.equals("usage")) { return addUsage(); } else if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.criteria"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.path"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.path"); } else return super.addChild(name); @@ -4027,46 +4027,46 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.url"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.version"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.name"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.title"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.status"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.date"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.publisher"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.usage"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.usage"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -4088,7 +4088,7 @@ else if (name.equals("contact")) { return addContact(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.copyright"); } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); @@ -4097,7 +4097,7 @@ else if (name.equals("library")) { return addLibrary(); } else if (name.equals("disclaimer")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.disclaimer"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.disclaimer"); } else if (name.equals("scoring")) { this.scoring = new CodeableConcept(); @@ -4111,28 +4111,28 @@ else if (name.equals("type")) { return addType(); } else if (name.equals("riskAdjustment")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.riskAdjustment"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.riskAdjustment"); } else if (name.equals("rateAggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.rateAggregation"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.rateAggregation"); } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.rationale"); } else if (name.equals("clinicalRecommendationStatement")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.clinicalRecommendationStatement"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.clinicalRecommendationStatement"); } else if (name.equals("improvementNotation")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.improvementNotation"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.improvementNotation"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.definition"); } else if (name.equals("guidance")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.guidance"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.guidance"); } else if (name.equals("set")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.set"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.set"); } else if (name.equals("group")) { return addGroup(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MeasureReport.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MeasureReport.java index 626a97280c..3bd55295d2 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MeasureReport.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MeasureReport.java @@ -622,7 +622,7 @@ else if (name.equals("population")) { return addPopulation(); } else if (name.equals("measureScore")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.measureScore"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.measureScore"); } else if (name.equals("stratifier")) { return addStratifier(); @@ -967,7 +967,7 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.count"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.count"); } else if (name.equals("patients")) { this.patients = new Reference(); @@ -1538,13 +1538,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.value"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.value"); } else if (name.equals("population")) { return addPopulation(); } else if (name.equals("measureScore")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.measureScore"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.measureScore"); } else return super.addChild(name); @@ -1880,7 +1880,7 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.count"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.count"); } else if (name.equals("patients")) { this.patients = new Reference(); @@ -2623,10 +2623,10 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.status"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.type"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.type"); } else if (name.equals("measure")) { this.measure = new Reference(); @@ -2637,7 +2637,7 @@ else if (name.equals("patient")) { return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.date"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.date"); } else if (name.equals("reportingOrganization")) { this.reportingOrganization = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Media.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Media.java index 4cdda2ebed..884dad7182 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Media.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Media.java @@ -1348,7 +1348,7 @@ else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.type"); + throw new FHIRException("Cannot call addChild on a singleton property Media.type"); } else if (name.equals("subtype")) { this.subtype = new CodeableConcept(); @@ -1390,16 +1390,16 @@ else if (name.equals("device")) { return this.device; } else if (name.equals("height")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.height"); + throw new FHIRException("Cannot call addChild on a singleton property Media.height"); } else if (name.equals("width")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.width"); + throw new FHIRException("Cannot call addChild on a singleton property Media.width"); } else if (name.equals("frames")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.frames"); + throw new FHIRException("Cannot call addChild on a singleton property Media.frames"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Media.duration"); } else if (name.equals("content")) { this.content = new Attachment(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Medication.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Medication.java index f227fe18ea..e28ee67e6f 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Medication.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Medication.java @@ -420,7 +420,7 @@ else if (name.equals("itemReference")) { return this.item; } else if (name.equals("isActive")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.isActive"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.isActive"); } else if (name.equals("amount")) { this.amount = new Ratio(); @@ -1218,10 +1218,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.expirationDate"); } else return super.addChild(name); @@ -1860,13 +1860,13 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.status"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.status"); } else if (name.equals("isBrand")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.isBrand"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.isBrand"); } else if (name.equals("isOverTheCounter")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.isOverTheCounter"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.isOverTheCounter"); } else if (name.equals("manufacturer")) { this.manufacturer = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationAdministration.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationAdministration.java index 47c60a988d..acb26b5d33 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationAdministration.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationAdministration.java @@ -842,7 +842,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.text"); } else if (name.equals("site")) { this.site = new CodeableConcept(); @@ -2430,7 +2430,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); @@ -2467,7 +2467,7 @@ else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("notGiven")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.notGiven"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.notGiven"); } else if (name.equals("reasonNotGiven")) { return addReasonNotGiven(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationDispense.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationDispense.java index 3fec82ff0c..9945c961c7 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationDispense.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationDispense.java @@ -807,7 +807,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("wasSubstituted")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.wasSubstituted"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.wasSubstituted"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -2592,7 +2592,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); @@ -2636,10 +2636,10 @@ else if (name.equals("daysSupply")) { return this.daysSupply; } else if (name.equals("whenPrepared")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenPrepared"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenPrepared"); } else if (name.equals("whenHandedOver")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenHandedOver"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenHandedOver"); } else if (name.equals("destination")) { this.destination = new Reference(); @@ -2662,7 +2662,7 @@ else if (name.equals("detectedIssue")) { return addDetectedIssue(); } else if (name.equals("notDone")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.notDone"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.notDone"); } else if (name.equals("notDoneReasonCodeableConcept")) { this.notDoneReason = new CodeableConcept(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationRequest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationRequest.java index 5ee24d486c..04795f8751 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationRequest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationRequest.java @@ -1070,7 +1070,7 @@ public Base addChild(String name) throws FHIRException { return this.validityPeriod; } else if (name.equals("numberOfRepeatsAllowed")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.numberOfRepeatsAllowed"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.numberOfRepeatsAllowed"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); @@ -1310,7 +1310,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("allowed")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.allowed"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.allowed"); } else if (name.equals("reason")) { this.reason = new CodeableConcept(); @@ -3062,17 +3062,17 @@ else if (name.equals("groupIdentifier")) { return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.intent"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.priority"); } else if (name.equals("medicationCodeableConcept")) { this.medication = new CodeableConcept(); @@ -3094,7 +3094,7 @@ else if (name.equals("supportingInformation")) { return addSupportingInformation(); } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new MedicationRequestRequesterComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationStatement.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationStatement.java index 3460593021..50273f7f64 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationStatement.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MedicationStatement.java @@ -1684,7 +1684,7 @@ else if (name.equals("context")) { return this.context; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); @@ -1707,7 +1707,7 @@ else if (name.equals("effectivePeriod")) { return this.effective; } else if (name.equals("dateAsserted")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.dateAsserted"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.dateAsserted"); } else if (name.equals("informationSource")) { this.informationSource = new Reference(); @@ -1721,7 +1721,7 @@ else if (name.equals("derivedFrom")) { return addDerivedFrom(); } else if (name.equals("taken")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.taken"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.taken"); } else if (name.equals("reasonNotTaken")) { return addReasonNotTaken(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MessageDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MessageDefinition.java index 597b7f558b..9d0828cd30 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MessageDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MessageDefinition.java @@ -497,17 +497,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.code"); } else if (name.equals("profile")) { this.profile = new Reference(); return this.profile; } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.max"); } else return super.addChild(name); @@ -766,7 +766,7 @@ public Base addChild(String name) throws FHIRException { return this.message; } else if (name.equals("situation")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.situation"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.situation"); } else return super.addChild(name); @@ -2328,38 +2328,38 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -2368,10 +2368,10 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.copyright"); } else if (name.equals("base")) { this.base = new Reference(); @@ -2388,13 +2388,13 @@ else if (name.equals("event")) { return this.event; } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.category"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.category"); } else if (name.equals("focus")) { return addFocus(); } else if (name.equals("responseRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.responseRequired"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.responseRequired"); } else if (name.equals("allowedResponse")) { return addAllowedResponse(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MessageHeader.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MessageHeader.java index a3e1594c11..2c34b035c2 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MessageHeader.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MessageHeader.java @@ -430,14 +430,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.name"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.endpoint"); } else return super.addChild(name); @@ -858,20 +858,20 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.name"); } else if (name.equals("software")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.software"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.software"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.version"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.version"); } else if (name.equals("contact")) { this.contact = new ContactPoint(); return this.contact; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.endpoint"); } else return super.addChild(name); @@ -1189,10 +1189,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.identifier"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.code"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.code"); } else if (name.equals("details")) { this.details = new Reference(); @@ -2030,7 +2030,7 @@ else if (name.equals("sender")) { return this.sender; } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.timestamp"); } else if (name.equals("enterer")) { this.enterer = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Meta.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Meta.java index 1802f6d8ed..7b3d60445f 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Meta.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Meta.java @@ -514,13 +514,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("versionId")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.versionId"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.versionId"); } else if (name.equals("lastUpdated")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.lastUpdated"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.lastUpdated"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.profile"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.profile"); } else if (name.equals("security")) { return addSecurity(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MetadataResource.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MetadataResource.java index b902e983a2..c34a4e1780 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MetadataResource.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/MetadataResource.java @@ -924,28 +924,28 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.url"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.version"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.name"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.title"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.status"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.date"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.publisher"); } else if (name.equals("contact")) { return addContact(); @@ -957,7 +957,7 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.description"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.description"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/NamingSystem.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/NamingSystem.java index 9a7c82bc2c..56749af6b4 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/NamingSystem.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/NamingSystem.java @@ -665,16 +665,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.type"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.type"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.value"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.value"); } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.preferred"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.comment"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.comment"); } else if (name.equals("period")) { this.period = new Period(); @@ -1652,32 +1652,32 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.kind"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.kind"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.responsible"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -1686,7 +1686,7 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.usage"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.usage"); } else if (name.equals("uniqueId")) { return addUniqueId(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Narrative.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Narrative.java index 3d4c2c908a..bb1aca3e8b 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Narrative.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Narrative.java @@ -350,7 +350,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Narrative.status"); + throw new FHIRException("Cannot call addChild on a singleton property Narrative.status"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/NutritionOrder.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/NutritionOrder.java index c2eec4254b..cb439cb48d 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/NutritionOrder.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/NutritionOrder.java @@ -758,7 +758,7 @@ else if (name.equals("fluidConsistencyType")) { return addFluidConsistencyType(); } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instruction"); } else return super.addChild(name); @@ -1581,7 +1581,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("productName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.productName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.productName"); } else if (name.equals("schedule")) { return addSchedule(); @@ -1591,7 +1591,7 @@ else if (name.equals("quantity")) { return this.quantity; } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instruction"); } else return super.addChild(name); @@ -2191,14 +2191,14 @@ public Base addChild(String name) throws FHIRException { return this.baseFormulaType; } else if (name.equals("baseFormulaProductName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.baseFormulaProductName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.baseFormulaProductName"); } else if (name.equals("additiveType")) { this.additiveType = new CodeableConcept(); return this.additiveType; } else if (name.equals("additiveProductName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.additiveProductName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.additiveProductName"); } else if (name.equals("caloricDensity")) { this.caloricDensity = new SimpleQuantity(); @@ -2216,7 +2216,7 @@ else if (name.equals("maxVolumeToDeliver")) { return this.maxVolumeToDeliver; } else if (name.equals("administrationInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.administrationInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.administrationInstruction"); } else return super.addChild(name); @@ -3424,7 +3424,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.status"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -3435,7 +3435,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.dateTime"); } else if (name.equals("orderer")) { this.orderer = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Observation.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Observation.java index 80061e4991..54b19c2f6d 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Observation.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Observation.java @@ -791,7 +791,7 @@ else if (name.equals("age")) { return this.age; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.text"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.text"); } else return super.addChild(name); @@ -1050,7 +1050,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.type"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.type"); } else if (name.equals("target")) { this.target = new Reference(); @@ -3218,7 +3218,7 @@ else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.status"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.status"); } else if (name.equals("category")) { return addCategory(); @@ -3244,7 +3244,7 @@ else if (name.equals("effectivePeriod")) { return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.issued"); } else if (name.equals("performer")) { return addPerformer(); @@ -3302,7 +3302,7 @@ else if (name.equals("interpretation")) { return this.interpretation; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.comment"); } else if (name.equals("bodySite")) { this.bodySite = new CodeableConcept(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/OperationDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/OperationDefinition.java index d64bf4c1db..cfb70ced83 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/OperationDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/OperationDefinition.java @@ -958,25 +958,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.use"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type"); } else if (name.equals("searchType")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.searchType"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.searchType"); } else if (name.equals("profile")) { this.profile = new Reference(); @@ -1261,7 +1261,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.strength"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.strength"); } else if (name.equals("valueSetUri")) { this.valueSet = new UriType(); @@ -1523,10 +1523,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("parameterName")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameterName"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameterName"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.comment"); } else return super.addChild(name); @@ -3097,34 +3097,34 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.kind"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -3133,32 +3133,32 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.purpose"); } else if (name.equals("idempotent")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.idempotent"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.idempotent"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.code"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.comment"); } else if (name.equals("base")) { this.base = new Reference(); return this.base; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.resource"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.resource"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.system"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.system"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type"); } else if (name.equals("instance")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.instance"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.instance"); } else if (name.equals("parameter")) { return addParameter(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/OperationOutcome.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/OperationOutcome.java index c222b5b7ef..40e8e6dd52 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/OperationOutcome.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/OperationOutcome.java @@ -1175,23 +1175,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.severity"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.severity"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.code"); } else if (name.equals("details")) { this.details = new CodeableConcept(); return this.details; } else if (name.equals("diagnostics")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.diagnostics"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.diagnostics"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.location"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.location"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.expression"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.expression"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Organization.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Organization.java index ca0dd2bd07..590171ebdb 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Organization.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Organization.java @@ -1161,16 +1161,16 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.active"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.active"); } else if (name.equals("type")) { return addType(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.name"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.alias"); } else if (name.equals("telecom")) { return addTelecom(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ParameterDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ParameterDefinition.java index e41b2f9a93..88867bda92 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ParameterDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ParameterDefinition.java @@ -669,22 +669,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.use"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.type"); } else if (name.equals("profile")) { this.profile = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Parameters.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Parameters.java index ba7d00ebcd..b80d74b4a1 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Parameters.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Parameters.java @@ -364,7 +364,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Parameters.name"); + throw new FHIRException("Cannot call addChild on a singleton property Parameters.name"); } else if (name.equals("valueBoolean")) { this.value = new BooleanType(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Patient.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Patient.java index 1af1f773dd..b0a97c07d2 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Patient.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Patient.java @@ -659,7 +659,7 @@ else if (name.equals("address")) { return this.address; } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.gender"); } else if (name.equals("organization")) { this.organization = new Reference(); @@ -1165,7 +1165,7 @@ public Base addChild(String name) throws FHIRException { return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.preferred"); } else return super.addChild(name); @@ -1414,7 +1414,7 @@ public Base addChild(String name) throws FHIRException { return this.other; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.type"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.type"); } else return super.addChild(name); @@ -2660,7 +2660,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.active"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.active"); } else if (name.equals("name")) { return addName(); @@ -2669,10 +2669,10 @@ else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.birthDate"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PaymentNotice.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PaymentNotice.java index 7dfb40524c..e6b95ad74d 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PaymentNotice.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PaymentNotice.java @@ -875,7 +875,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.status"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.status"); } else if (name.equals("request")) { this.request = new Reference(); @@ -886,10 +886,10 @@ else if (name.equals("response")) { return this.response; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.statusDate"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.created"); } else if (name.equals("target")) { this.target = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PaymentReconciliation.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PaymentReconciliation.java index 4d2e2a76d6..567d39a62c 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PaymentReconciliation.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PaymentReconciliation.java @@ -675,7 +675,7 @@ else if (name.equals("payee")) { return this.payee; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.date"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.date"); } else if (name.equals("amount")) { this.amount = new Money(); @@ -909,7 +909,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.text"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.text"); } else return super.addChild(name); @@ -1861,14 +1861,14 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.status"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.created"); } else if (name.equals("organization")) { this.organization = new Reference(); @@ -1883,7 +1883,7 @@ else if (name.equals("outcome")) { return this.outcome; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.disposition"); } else if (name.equals("requestProvider")) { this.requestProvider = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Period.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Period.java index 00b28ee42f..a679c78a57 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Period.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Period.java @@ -269,10 +269,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.start"); + throw new FHIRException("Cannot call addChild on a singleton property Period.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.end"); + throw new FHIRException("Cannot call addChild on a singleton property Period.end"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Person.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Person.java index 6b29b60f30..381ab03ac8 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Person.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Person.java @@ -387,7 +387,7 @@ public Base addChild(String name) throws FHIRException { return this.target; } else if (name.equals("assurance")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.assurance"); + throw new FHIRException("Cannot call addChild on a singleton property Person.assurance"); } else return super.addChild(name); @@ -1158,10 +1158,10 @@ else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Person.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Person.birthDate"); } else if (name.equals("address")) { return addAddress(); @@ -1175,7 +1175,7 @@ else if (name.equals("managingOrganization")) { return this.managingOrganization; } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.active"); + throw new FHIRException("Cannot call addChild on a singleton property Person.active"); } else if (name.equals("link")) { return addLink(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PlanDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PlanDefinition.java index f796d8a980..104aa1646f 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PlanDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PlanDefinition.java @@ -3714,16 +3714,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.label"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.label"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.description"); } else if (name.equals("textEquivalent")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.textEquivalent"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.textEquivalent"); } else if (name.equals("code")) { return addCode(); @@ -3735,7 +3735,7 @@ else if (name.equals("documentation")) { return addDocumentation(); } else if (name.equals("goalId")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.goalId"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.goalId"); } else if (name.equals("triggerDefinition")) { return addTriggerDefinition(); @@ -3780,19 +3780,19 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("groupingBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.groupingBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.groupingBehavior"); } else if (name.equals("selectionBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.selectionBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.selectionBehavior"); } else if (name.equals("requiredBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.requiredBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.requiredBehavior"); } else if (name.equals("precheckBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.precheckBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.precheckBehavior"); } else if (name.equals("cardinalityBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.cardinalityBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.cardinalityBehavior"); } else if (name.equals("definition")) { this.definition = new Reference(); @@ -4275,16 +4275,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.kind"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.description"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.language"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.language"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.expression"); } else return super.addChild(name); @@ -4607,10 +4607,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("actionId")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.actionId"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.actionId"); } else if (name.equals("relationship")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.relationship"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.relationship"); } else if (name.equals("offsetDuration")) { this.offset = new Duration(); @@ -4847,7 +4847,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.type"); } else if (name.equals("role")) { this.role = new CodeableConcept(); @@ -5225,16 +5225,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.description"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.path"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.language"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.language"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.expression"); } else return super.addChild(name); @@ -7000,50 +7000,50 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.title"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.publisher"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.description"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.usage"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -7065,7 +7065,7 @@ else if (name.equals("contact")) { return addContact(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.copyright"); } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Practitioner.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Practitioner.java index 419c371b20..0fc71c4a40 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Practitioner.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Practitioner.java @@ -1165,7 +1165,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.active"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.active"); } else if (name.equals("name")) { return addName(); @@ -1177,10 +1177,10 @@ else if (name.equals("address")) { return addAddress(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.birthDate"); } else if (name.equals("photo")) { return addPhoto(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PractitionerRole.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PractitionerRole.java index 49395a6f91..ba33ca70d1 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PractitionerRole.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/PractitionerRole.java @@ -567,16 +567,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.allDay"); } else if (name.equals("availableStartTime")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availableStartTime"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availableStartTime"); } else if (name.equals("availableEndTime")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availableEndTime"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availableEndTime"); } else return super.addChild(name); @@ -806,7 +806,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.description"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.description"); } else if (name.equals("during")) { this.during = new Period(); @@ -1935,7 +1935,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.active"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.active"); } else if (name.equals("period")) { this.period = new Period(); @@ -1971,7 +1971,7 @@ else if (name.equals("notAvailable")) { return addNotAvailable(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availabilityExceptions"); } else if (name.equals("endpoint")) { return addEndpoint(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Procedure.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Procedure.java index ab0e48adc0..6fbc24a2ae 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Procedure.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Procedure.java @@ -2649,10 +2649,10 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.status"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.status"); } else if (name.equals("notDone")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.notDone"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.notDone"); } else if (name.equals("notDoneReason")) { this.notDoneReason = new CodeableConcept(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcedureRequest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcedureRequest.java index fbf00c4ecc..9b18426202 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcedureRequest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcedureRequest.java @@ -2698,16 +2698,16 @@ else if (name.equals("requisition")) { return this.requisition; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.doNotPerform"); } else if (name.equals("category")) { return addCategory(); @@ -2745,7 +2745,7 @@ else if (name.equals("asNeededCodeableConcept")) { return this.asNeeded; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new ProcedureRequestRequesterComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcessRequest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcessRequest.java index 991004d537..3bd7d6f864 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcessRequest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcessRequest.java @@ -443,7 +443,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequenceLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.sequenceLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.sequenceLinkId"); } else return super.addChild(name); @@ -1542,17 +1542,17 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.status"); } else if (name.equals("action")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.action"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.action"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.created"); } else if (name.equals("provider")) { this.provider = new Reference(); @@ -1571,19 +1571,19 @@ else if (name.equals("response")) { return this.response; } else if (name.equals("nullify")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.nullify"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.nullify"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.reference"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.reference"); } else if (name.equals("item")) { return addItem(); } else if (name.equals("include")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.include"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.include"); } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.exclude"); } else if (name.equals("period")) { this.period = new Period(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcessResponse.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcessResponse.java index bad101ecb8..18484bd4f5 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcessResponse.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ProcessResponse.java @@ -356,7 +356,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.text"); } else return super.addChild(name); @@ -1319,10 +1319,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.status"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.created"); } else if (name.equals("organization")) { this.organization = new Reference(); @@ -1337,7 +1337,7 @@ else if (name.equals("outcome")) { return this.outcome; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.disposition"); } else if (name.equals("requestProvider")) { this.requestProvider = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Provenance.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Provenance.java index 84d9f0ab11..77f93c256e 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Provenance.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Provenance.java @@ -896,7 +896,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("role")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.role"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.role"); } else if (name.equals("whatUri")) { this.what = new UriType(); @@ -1695,10 +1695,10 @@ else if (name.equals("period")) { return this.period; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.recorded"); } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.policy"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.policy"); } else if (name.equals("location")) { this.location = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Quantity.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Quantity.java index 53c5760951..c9480b026c 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Quantity.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Quantity.java @@ -640,19 +640,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.value"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.value"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.comparator"); } else if (name.equals("unit")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.unit"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.unit"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.system"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.system"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.code"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.code"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Questionnaire.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Questionnaire.java index 2dc1254521..54afaec6c0 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Questionnaire.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Questionnaire.java @@ -1667,37 +1667,37 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.linkId"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.definition"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.prefix"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.text"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.text"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.type"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.type"); } else if (name.equals("enableWhen")) { return addEnableWhen(); } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.required"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.required"); } else if (name.equals("repeats")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.repeats"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.repeats"); } else if (name.equals("readOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.readOnly"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.readOnly"); } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.maxLength"); } else if (name.equals("options")) { this.options = new Reference(); @@ -2269,10 +2269,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("question")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.question"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.question"); } else if (name.equals("hasAnswer")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.hasAnswer"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.hasAnswer"); } else if (name.equals("answerBoolean")) { this.answer = new BooleanType(); @@ -4003,43 +4003,43 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.url"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.version"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.name"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.title"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.status"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.date"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.publisher"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.description"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.description"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.purpose"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -4055,13 +4055,13 @@ else if (name.equals("contact")) { return addContact(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.copyright"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("subjectType")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.subjectType"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.subjectType"); } else if (name.equals("item")) { return addItem(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/QuestionnaireResponse.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/QuestionnaireResponse.java index ff106eb0b7..cd1641c0e1 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/QuestionnaireResponse.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/QuestionnaireResponse.java @@ -665,13 +665,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.linkId"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.definition"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.definition"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.text"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -2014,7 +2014,7 @@ else if (name.equals("questionnaire")) { return this.questionnaire; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.status"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -2025,7 +2025,7 @@ else if (name.equals("context")) { return this.context; } else if (name.equals("authored")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.authored"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.authored"); } else if (name.equals("author")) { this.author = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Reference.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Reference.java index 4bfd9e7238..b171324d58 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Reference.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Reference.java @@ -329,14 +329,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.reference"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.display"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.display"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ReferralRequest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ReferralRequest.java index 4a01bc29cd..91e8b3e475 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ReferralRequest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ReferralRequest.java @@ -2482,17 +2482,17 @@ else if (name.equals("groupIdentifier")) { return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.intent"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.priority"); } else if (name.equals("serviceRequested")) { return addServiceRequested(); @@ -2514,7 +2514,7 @@ else if (name.equals("occurrencePeriod")) { return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new ReferralRequestRequesterComponent(); @@ -2534,7 +2534,7 @@ else if (name.equals("reasonReference")) { return addReasonReference(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.description"); + throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.description"); } else if (name.equals("supportingInfo")) { return addSupportingInfo(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RelatedArtifact.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RelatedArtifact.java index 414b932457..98cecf5b0f 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RelatedArtifact.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RelatedArtifact.java @@ -675,16 +675,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.type"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.type"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.display"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.display"); } else if (name.equals("citation")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.citation"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.citation"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.url"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.url"); } else if (name.equals("document")) { this.document = new Attachment(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RelatedPerson.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RelatedPerson.java index 5f28151e75..9ff150a3d2 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RelatedPerson.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RelatedPerson.java @@ -820,7 +820,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.active"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.active"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -837,10 +837,10 @@ else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.gender"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.birthDate"); } else if (name.equals("address")) { return addAddress(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RequestGroup.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RequestGroup.java index 5420037529..d5309df158 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RequestGroup.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RequestGroup.java @@ -2779,16 +2779,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.label"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.label"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.title"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.description"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.description"); } else if (name.equals("textEquivalent")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.textEquivalent"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.textEquivalent"); } else if (name.equals("code")) { return addCode(); @@ -2830,19 +2830,19 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("groupingBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.groupingBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.groupingBehavior"); } else if (name.equals("selectionBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.selectionBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.selectionBehavior"); } else if (name.equals("requiredBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.requiredBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.requiredBehavior"); } else if (name.equals("precheckBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.precheckBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.precheckBehavior"); } else if (name.equals("cardinalityBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.cardinalityBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.cardinalityBehavior"); } else if (name.equals("resource")) { this.resource = new Reference(); @@ -3284,16 +3284,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.kind"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.kind"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.description"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.description"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.language"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.language"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.expression"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.expression"); } else return super.addChild(name); @@ -3616,10 +3616,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("actionId")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.actionId"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.actionId"); } else if (name.equals("relationship")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.relationship"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.relationship"); } else if (name.equals("offsetDuration")) { this.offset = new Duration(); @@ -4790,13 +4790,13 @@ else if (name.equals("groupIdentifier")) { return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.status"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.intent"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.priority"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.priority"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -4807,7 +4807,7 @@ else if (name.equals("context")) { return this.context; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.authoredOn"); } else if (name.equals("author")) { this.author = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ResearchStudy.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ResearchStudy.java index d70e058f13..e4de2f4365 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ResearchStudy.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ResearchStudy.java @@ -452,14 +452,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.name"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.description"); } else return super.addChild(name); @@ -2011,7 +2011,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.title"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.title"); } else if (name.equals("protocol")) { return addProtocol(); @@ -2020,7 +2020,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.status"); } else if (name.equals("category")) { return addCategory(); @@ -2041,7 +2041,7 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.description"); } else if (name.equals("enrollment")) { return addEnrollment(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ResearchSubject.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ResearchSubject.java index 37939dc41b..5350233db4 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ResearchSubject.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ResearchSubject.java @@ -761,7 +761,7 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.status"); } else if (name.equals("period")) { this.period = new Period(); @@ -776,10 +776,10 @@ else if (name.equals("individual")) { return this.individual; } else if (name.equals("assignedArm")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.assignedArm"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.assignedArm"); } else if (name.equals("actualArm")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.actualArm"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.actualArm"); } else if (name.equals("consent")) { this.consent = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Resource.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Resource.java index f8348c93dc..1fa7ebd044 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Resource.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Resource.java @@ -364,17 +364,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.id"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.id"); } else if (name.equals("meta")) { this.meta = new Meta(); return this.meta; } else if (name.equals("implicitRules")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.implicitRules"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.implicitRules"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.language"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.language"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RiskAssessment.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RiskAssessment.java index 549a94a948..c29b74a39d 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RiskAssessment.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/RiskAssessment.java @@ -712,7 +712,7 @@ else if (name.equals("qualitativeRisk")) { return this.qualitativeRisk; } else if (name.equals("relativeRisk")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.relativeRisk"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.relativeRisk"); } else if (name.equals("whenPeriod")) { this.when = new Period(); @@ -723,7 +723,7 @@ else if (name.equals("whenRange")) { return this.when; } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.rationale"); } else return super.addChild(name); @@ -1849,7 +1849,7 @@ else if (name.equals("parent")) { return this.parent; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.status"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.status"); } else if (name.equals("method")) { this.method = new CodeableConcept(); @@ -1898,10 +1898,10 @@ else if (name.equals("prediction")) { return addPrediction(); } else if (name.equals("mitigation")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.mitigation"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.mitigation"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.comment"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.comment"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SampledData.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SampledData.java index ad837cbfcc..a5baffa33a 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SampledData.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SampledData.java @@ -621,22 +621,22 @@ public Base addChild(String name) throws FHIRException { return this.origin; } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.period"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.period"); } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.factor"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.factor"); } else if (name.equals("lowerLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.lowerLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.lowerLimit"); } else if (name.equals("upperLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.upperLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.upperLimit"); } else if (name.equals("dimensions")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.dimensions"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.dimensions"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.data"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.data"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Schedule.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Schedule.java index 89b6cf0ac3..af1c6d8853 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Schedule.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Schedule.java @@ -622,7 +622,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.active"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.active"); } else if (name.equals("serviceCategory")) { this.serviceCategory = new CodeableConcept(); @@ -642,7 +642,7 @@ else if (name.equals("planningHorizon")) { return this.planningHorizon; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.comment"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SearchParameter.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SearchParameter.java index 62211a0ea8..30ae00ac9c 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SearchParameter.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SearchParameter.java @@ -839,7 +839,7 @@ public Base addChild(String name) throws FHIRException { return this.definition; } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.expression"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.expression"); } else return super.addChild(name); @@ -2532,25 +2532,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.url"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.version"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.status"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.date"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.publisher"); } else if (name.equals("contact")) { return addContact(); @@ -2562,43 +2562,43 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.purpose"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.code"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.code"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.base"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.base"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.type"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.type"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.derivedFrom"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.description"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.description"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.expression"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.expression"); } else if (name.equals("xpath")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.xpath"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.xpath"); } else if (name.equals("xpathUsage")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.xpathUsage"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.xpathUsage"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.target"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.target"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.comparator"); } else if (name.equals("modifier")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.modifier"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.modifier"); } else if (name.equals("chain")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.chain"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.chain"); } else if (name.equals("component")) { return addComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Sequence.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Sequence.java index 3e745c436f..50cd5a7135 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Sequence.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Sequence.java @@ -964,7 +964,7 @@ public Base addChild(String name) throws FHIRException { return this.chromosome; } else if (name.equals("genomeBuild")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.genomeBuild"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.genomeBuild"); } else if (name.equals("referenceSeqId")) { this.referenceSeqId = new CodeableConcept(); @@ -975,16 +975,16 @@ else if (name.equals("referenceSeqPointer")) { return this.referenceSeqPointer; } else if (name.equals("referenceSeqString")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.referenceSeqString"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.referenceSeqString"); } else if (name.equals("strand")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.strand"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.strand"); } else if (name.equals("windowStart")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.windowStart"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.windowStart"); } else if (name.equals("windowEnd")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.windowEnd"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.windowEnd"); } else return super.addChild(name); @@ -1494,19 +1494,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.start"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.end"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.end"); } else if (name.equals("observedAllele")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.observedAllele"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.observedAllele"); } else if (name.equals("referenceAllele")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.referenceAllele"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.referenceAllele"); } else if (name.equals("cigar")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.cigar"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.cigar"); } else if (name.equals("variantPointer")) { this.variantPointer = new Reference(); @@ -2622,17 +2622,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.type"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.type"); } else if (name.equals("standardSequence")) { this.standardSequence = new CodeableConcept(); return this.standardSequence; } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.start"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.end"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.end"); } else if (name.equals("score")) { this.score = new Quantity(); @@ -2643,28 +2643,28 @@ else if (name.equals("method")) { return this.method; } else if (name.equals("truthTP")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.truthTP"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.truthTP"); } else if (name.equals("queryTP")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.queryTP"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.queryTP"); } else if (name.equals("truthFN")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.truthFN"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.truthFN"); } else if (name.equals("queryFP")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.queryFP"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.queryFP"); } else if (name.equals("gtFP")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.gtFP"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.gtFP"); } else if (name.equals("precision")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.precision"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.precision"); } else if (name.equals("recall")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.recall"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.recall"); } else if (name.equals("fScore")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.fScore"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.fScore"); } else return super.addChild(name); @@ -3199,22 +3199,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.type"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.type"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.url"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.url"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.name"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.name"); } else if (name.equals("datasetId")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.datasetId"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.datasetId"); } else if (name.equals("variantsetId")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.variantsetId"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.variantsetId"); } else if (name.equals("readsetId")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.readsetId"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.readsetId"); } else return super.addChild(name); @@ -4324,10 +4324,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.type"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.type"); } else if (name.equals("coordinateSystem")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.coordinateSystem"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.coordinateSystem"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -4357,13 +4357,13 @@ else if (name.equals("variant")) { return addVariant(); } else if (name.equals("observedSeq")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.observedSeq"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.observedSeq"); } else if (name.equals("quality")) { return addQuality(); } else if (name.equals("readCoverage")) { - throw new FHIRException("Cannot call addChild on a primitive type Sequence.readCoverage"); + throw new FHIRException("Cannot call addChild on a singleton property Sequence.readCoverage"); } else if (name.equals("repository")) { return addRepository(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ServiceDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ServiceDefinition.java index f0d989ab22..c8f82c81a8 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ServiceDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ServiceDefinition.java @@ -1696,46 +1696,46 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.publisher"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.description"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.usage"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -1757,7 +1757,7 @@ else if (name.equals("contact")) { return addContact(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceDefinition.copyright"); } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Signature.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Signature.java index c83e574c35..3d539c5979 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Signature.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Signature.java @@ -534,7 +534,7 @@ public Base addChild(String name) throws FHIRException { return addType(); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.when"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.when"); } else if (name.equals("whoUri")) { this.who = new UriType(); @@ -553,10 +553,10 @@ else if (name.equals("onBehalfOfReference")) { return this.onBehalfOf; } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.contentType"); } else if (name.equals("blob")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.blob"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.blob"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Slot.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Slot.java index c8e595abd8..05f13abb6c 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Slot.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Slot.java @@ -967,19 +967,19 @@ else if (name.equals("schedule")) { return this.schedule; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.status"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.status"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.start"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.end"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.end"); } else if (name.equals("overbooked")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.overbooked"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.overbooked"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.comment"); } else return super.addChild(name); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Specimen.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Specimen.java index 4ddefcf355..5f935e5a3e 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Specimen.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Specimen.java @@ -921,7 +921,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.description"); } else if (name.equals("procedure")) { this.procedure = new CodeableConcept(); @@ -1390,7 +1390,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.description"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -2338,7 +2338,7 @@ else if (name.equals("accessionIdentifier")) { return this.accessionIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.status"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -2349,7 +2349,7 @@ else if (name.equals("subject")) { return this.subject; } else if (name.equals("receivedTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.receivedTime"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.receivedTime"); } else if (name.equals("parent")) { return addParent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/StructureDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/StructureDefinition.java index d3c4de0017..b480ed937d 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/StructureDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/StructureDefinition.java @@ -725,16 +725,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.identity"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.identity"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.uri"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.uri"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.comment"); } else return super.addChild(name); @@ -2973,37 +2973,37 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -3012,43 +3012,43 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.copyright"); } else if (name.equals("keyword")) { return addKeyword(); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.fhirVersion"); } else if (name.equals("mapping")) { return addMapping(); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.kind"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.abstract"); } else if (name.equals("contextType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.contextType"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.contextType"); } else if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.context"); } else if (name.equals("contextInvariant")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.contextInvariant"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.contextInvariant"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.type"); } else if (name.equals("baseDefinition")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.baseDefinition"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.baseDefinition"); } else if (name.equals("derivation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.derivation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.derivation"); } else if (name.equals("snapshot")) { this.snapshot = new StructureDefinitionSnapshotComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/StructureMap.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/StructureMap.java index 001be54ac9..2b76885c9a 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/StructureMap.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/StructureMap.java @@ -1433,16 +1433,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.url"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.mode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.mode"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.alias"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.alias"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else return super.addChild(name); @@ -1965,16 +1965,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("extends")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.extends"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.extends"); } else if (name.equals("typeMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.typeMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.typeMode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else if (name.equals("input")) { return addInput(); @@ -2382,16 +2382,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.type"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.mode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else return super.addChild(name); @@ -2922,7 +2922,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("source")) { return addSource(); @@ -2937,7 +2937,7 @@ else if (name.equals("dependent")) { return addDependent(); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else return super.addChild(name); @@ -3749,16 +3749,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.context"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.min"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.max"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.max"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.type"); } else if (name.equals("defaultValueBoolean")) { this.defaultValue = new BooleanType(); @@ -3893,19 +3893,19 @@ else if (name.equals("defaultValueMeta")) { return this.defaultValue; } else if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.element"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.element"); } else if (name.equals("listMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.listMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.listMode"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.variable"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.condition"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.condition"); } else if (name.equals("check")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.check"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.check"); } else return super.addChild(name); @@ -4591,25 +4591,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.context"); } else if (name.equals("contextType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.contextType"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.contextType"); } else if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.element"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.element"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.variable"); } else if (name.equals("listMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.listMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.listMode"); } else if (name.equals("listRuleId")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.listRuleId"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.listRuleId"); } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.transform"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.transform"); } else if (name.equals("parameter")) { return addParameter(); @@ -5160,10 +5160,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.variable"); } else return super.addChild(name); @@ -6411,37 +6411,37 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.title"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -6450,16 +6450,16 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.copyright"); } else if (name.equals("structure")) { return addStructure(); } else if (name.equals("import")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.import"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.import"); } else if (name.equals("group")) { return addGroup(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Subscription.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Subscription.java index 4ebd4d55f7..6c34d1298e 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Subscription.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Subscription.java @@ -671,16 +671,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.type"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.type"); } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.endpoint"); } else if (name.equals("payload")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.payload"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.payload"); } else if (name.equals("header")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.header"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.header"); } else return super.addChild(name); @@ -1311,22 +1311,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.status"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.status"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.end"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.end"); } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.reason"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.reason"); } else if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.criteria"); } else if (name.equals("error")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.error"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.error"); } else if (name.equals("channel")) { this.channel = new SubscriptionChannelComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Substance.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Substance.java index e5de371c83..ba376921b7 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Substance.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Substance.java @@ -382,7 +382,7 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.expiry"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.expiry"); } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); @@ -1207,7 +1207,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.status"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.status"); } else if (name.equals("category")) { return addCategory(); @@ -1217,7 +1217,7 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.description"); } else if (name.equals("instance")) { return addInstance(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SupplyDelivery.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SupplyDelivery.java index 51bb31868c..7807d9870c 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SupplyDelivery.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SupplyDelivery.java @@ -1237,7 +1237,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyDelivery.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyDelivery.status"); } else if (name.equals("patient")) { this.patient = new Reference(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SupplyRequest.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SupplyRequest.java index 42fce0a3db..b90fd39ba2 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SupplyRequest.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/SupplyRequest.java @@ -1663,14 +1663,14 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.priority"); } else if (name.equals("orderedItem")) { this.orderedItem = new SupplyRequestOrderedItemComponent(); @@ -1689,7 +1689,7 @@ else if (name.equals("occurrenceTiming")) { return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new SupplyRequestRequesterComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Task.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Task.java index 20f55d6f45..5a46a2055f 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Task.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Task.java @@ -1133,7 +1133,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("repetitions")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.repetitions"); + throw new FHIRException("Cannot call addChild on a singleton property Task.repetitions"); } else if (name.equals("period")) { this.period = new Period(); @@ -3690,7 +3690,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.status"); + throw new FHIRException("Cannot call addChild on a singleton property Task.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); @@ -3701,17 +3701,17 @@ else if (name.equals("businessStatus")) { return this.businessStatus; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.intent"); + throw new FHIRException("Cannot call addChild on a singleton property Task.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Task.priority"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.description"); + throw new FHIRException("Cannot call addChild on a singleton property Task.description"); } else if (name.equals("focus")) { this.focus = new Reference(); @@ -3730,10 +3730,10 @@ else if (name.equals("executionPeriod")) { return this.executionPeriod; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property Task.authoredOn"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Task.lastModified"); } else if (name.equals("requester")) { this.requester = new TaskRequesterComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TestReport.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TestReport.java index c3eb8f3753..10c46b88a4 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TestReport.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TestReport.java @@ -830,13 +830,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.type"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.type"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.uri"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.uri"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.display"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.display"); } else return super.addChild(name); @@ -1534,13 +1534,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.result"); } else if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.message"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.message"); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.detail"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.detail"); } else return super.addChild(name); @@ -1859,13 +1859,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.result"); } else if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.message"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.message"); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.detail"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.detail"); } else return super.addChild(name); @@ -2181,10 +2181,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.description"); } else if (name.equals("action")) { return addAction(); @@ -3596,26 +3596,26 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.status"); } else if (name.equals("testScript")) { this.testScript = new Reference(); return this.testScript; } else if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.result"); } else if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.score"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.score"); } else if (name.equals("tester")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.tester"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.tester"); } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.issued"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.issued"); } else if (name.equals("participant")) { return addParticipant(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TestScript.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TestScript.java index 1d69c8fa6f..86f8854921 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TestScript.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TestScript.java @@ -1113,7 +1113,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("index")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.index"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.index"); } else if (name.equals("profile")) { this.profile = new Coding(); @@ -1340,7 +1340,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("index")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.index"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.index"); } else if (name.equals("profile")) { this.profile = new Coding(); @@ -1851,10 +1851,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else return super.addChild(name); @@ -2446,22 +2446,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.required"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.required"); } else if (name.equals("validated")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.validated"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.validated"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("origin")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.origin"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.origin"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination"); } else if (name.equals("link")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.link"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.link"); } else if (name.equals("capabilities")) { this.capabilities = new Reference(); @@ -2778,10 +2778,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("autocreate")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.autocreate"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.autocreate"); } else if (name.equals("autodelete")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.autodelete"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.autodelete"); } else if (name.equals("resource")) { this.resource = new Reference(); @@ -3431,28 +3431,28 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("defaultValue")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.defaultValue"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.defaultValue"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.expression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.expression"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.headerField"); } else if (name.equals("hint")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.hint"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.hint"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.path"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else return super.addChild(name); @@ -3968,10 +3968,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); @@ -4478,7 +4478,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("ruleId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.ruleId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.ruleId"); } else if (name.equals("param")) { return addParam(); @@ -4731,10 +4731,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); @@ -6259,49 +6259,49 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.resource"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("accept")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.accept"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.accept"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.contentType"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination"); } else if (name.equals("encodeRequestUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.encodeRequestUrl"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.encodeRequestUrl"); } else if (name.equals("origin")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.origin"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.origin"); } else if (name.equals("params")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.params"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.params"); } else if (name.equals("requestHeader")) { return addRequestHeader(); } else if (name.equals("requestId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.requestId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.requestId"); } else if (name.equals("responseId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.responseId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.responseId"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else if (name.equals("targetId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.targetId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.targetId"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else return super.addChild(name); @@ -6574,10 +6574,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("field")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.field"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.field"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); @@ -8229,58 +8229,58 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("direction")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.direction"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.direction"); } else if (name.equals("compareToSourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.compareToSourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.compareToSourceId"); } else if (name.equals("compareToSourceExpression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.compareToSourceExpression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.compareToSourceExpression"); } else if (name.equals("compareToSourcePath")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.compareToSourcePath"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.compareToSourcePath"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.contentType"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.expression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.expression"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.headerField"); } else if (name.equals("minimumId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.minimumId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.minimumId"); } else if (name.equals("navigationLinks")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.navigationLinks"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.navigationLinks"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.operator"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.operator"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.path"); } else if (name.equals("requestMethod")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.requestMethod"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.requestMethod"); } else if (name.equals("requestURL")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.requestURL"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.requestURL"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.resource"); } else if (name.equals("response")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.response"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.response"); } else if (name.equals("responseCode")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.responseCode"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.responseCode"); } else if (name.equals("rule")) { this.rule = new ActionAssertRuleComponent(); @@ -8291,16 +8291,16 @@ else if (name.equals("ruleset")) { return this.ruleset; } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else if (name.equals("validateProfileId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.validateProfileId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.validateProfileId"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else if (name.equals("warningOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.warningOnly"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.warningOnly"); } else return super.addChild(name); @@ -8593,7 +8593,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("ruleId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.ruleId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.ruleId"); } else if (name.equals("param")) { return addParam(); @@ -8843,10 +8843,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); @@ -9096,7 +9096,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("rulesetId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.rulesetId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.rulesetId"); } else if (name.equals("rule")) { return addRule(); @@ -9353,7 +9353,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("ruleId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.ruleId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.ruleId"); } else if (name.equals("param")) { return addParam(); @@ -9603,10 +9603,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); @@ -9918,10 +9918,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("action")) { return addAction(); @@ -12165,38 +12165,38 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.version"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.title"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.date"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -12205,10 +12205,10 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.copyright"); } else if (name.equals("origin")) { return addOrigin(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Timing.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Timing.java index 6ffad97843..00b5f6a23e 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Timing.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/Timing.java @@ -1963,46 +1963,46 @@ else if (name.equals("boundsPeriod")) { return this.bounds; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.count"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.count"); } else if (name.equals("countMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.countMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.countMax"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.duration"); } else if (name.equals("durationMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.durationMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.durationMax"); } else if (name.equals("durationUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.durationUnit"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.durationUnit"); } else if (name.equals("frequency")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.frequency"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.frequency"); } else if (name.equals("frequencyMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.frequencyMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.frequencyMax"); } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.period"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.period"); } else if (name.equals("periodMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.periodMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.periodMax"); } else if (name.equals("periodUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.periodUnit"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.periodUnit"); } else if (name.equals("dayOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.dayOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.dayOfWeek"); } else if (name.equals("timeOfDay")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.timeOfDay"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.timeOfDay"); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.when"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.when"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.offset"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.offset"); } else return super.addChild(name); @@ -2308,7 +2308,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("event")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.event"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.event"); } else if (name.equals("repeat")) { this.repeat = new TimingRepeatComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TriggerDefinition.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TriggerDefinition.java index 7fe09fe333..9a6b664ea3 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TriggerDefinition.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/TriggerDefinition.java @@ -572,10 +572,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.type"); } else if (name.equals("eventName")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.eventName"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.eventName"); } else if (name.equals("eventTimingTiming")) { this.eventTiming = new Timing(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ValueSet.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ValueSet.java index 7a5b148824..07f4b6c05b 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ValueSet.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/ValueSet.java @@ -597,10 +597,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("lockedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.lockedDate"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.lockedDate"); } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.inactive"); } else if (name.equals("include")) { return addInclude(); @@ -1078,10 +1078,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("concept")) { return addConcept(); @@ -1090,7 +1090,7 @@ else if (name.equals("filter")) { return addFilter(); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.valueSet"); } else return super.addChild(name); @@ -1424,10 +1424,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.display"); } else if (name.equals("designation")) { return addDesignation(); @@ -1726,14 +1726,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.language"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.value"); } else return super.addChild(name); @@ -2044,13 +2044,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.property"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.property"); } else if (name.equals("op")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.op"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.op"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.value"); } else return super.addChild(name); @@ -2560,16 +2560,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.identifier"); } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.timestamp"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.total"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.total"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.offset"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.offset"); } else if (name.equals("parameter")) { return addParameter(); @@ -2907,7 +2907,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("valueString")) { this.value = new StringType(); @@ -3569,22 +3569,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.system"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.abstract"); } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.inactive"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.display"); } else if (name.equals("designation")) { return addDesignation(); @@ -4847,37 +4847,37 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.url"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.title"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.status"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.date"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.description"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -4886,16 +4886,16 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("immutable")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.immutable"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.immutable"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.copyright"); } else if (name.equals("extensible")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.extensible"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.extensible"); } else if (name.equals("compose")) { this.compose = new ValueSetComposeComponent(); diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/VisionPrescription.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/VisionPrescription.java index aba04fc4fb..73fc8683f5 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/VisionPrescription.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/model/VisionPrescription.java @@ -1546,44 +1546,44 @@ public Base addChild(String name) throws FHIRException { return this.product; } else if (name.equals("eye")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.eye"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.eye"); } else if (name.equals("sphere")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.sphere"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.sphere"); } else if (name.equals("cylinder")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.cylinder"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.cylinder"); } else if (name.equals("axis")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.axis"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.axis"); } else if (name.equals("prism")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.prism"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.prism"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.base"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.base"); } else if (name.equals("add")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.add"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.add"); } else if (name.equals("power")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.power"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.power"); } else if (name.equals("backCurve")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.backCurve"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.backCurve"); } else if (name.equals("diameter")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.diameter"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.diameter"); } else if (name.equals("duration")) { this.duration = new SimpleQuantity(); return this.duration; } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.color"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.color"); } else if (name.equals("brand")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.brand"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.brand"); } else if (name.equals("note")) { return addNote(); @@ -2270,7 +2270,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.status"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.status"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -2281,7 +2281,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("dateWritten")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.dateWritten"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.dateWritten"); } else if (name.equals("prescriber")) { this.prescriber = new Reference(); diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Account.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Account.java index b907e0a616..333f6c9030 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Account.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Account.java @@ -499,7 +499,7 @@ public Base addChild(String name) throws FHIRException { this.coverage = new Reference(); return this.coverage; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Account.priority"); } else return super.addChild(name); } @@ -832,7 +832,7 @@ public Base addChild(String name) throws FHIRException { this.party = new Reference(); return this.party; } else if (name.equals("onHold")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.onHold"); + throw new FHIRException("Cannot call addChild on a singleton property Account.onHold"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1817,12 +1817,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.status"); + throw new FHIRException("Cannot call addChild on a singleton property Account.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.name"); + throw new FHIRException("Cannot call addChild on a singleton property Account.name"); } else if (name.equals("subject")) { return addSubject(); } else if (name.equals("servicePeriod")) { @@ -1834,7 +1834,7 @@ public Base addChild(String name) throws FHIRException { this.owner = new Reference(); return this.owner; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.description"); + throw new FHIRException("Cannot call addChild on a singleton property Account.description"); } else if (name.equals("guarantor")) { return addGuarantor(); } else if (name.equals("partOf")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ActivityDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ActivityDefinition.java index 30d4466b6b..3f0857728c 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ActivityDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ActivityDefinition.java @@ -1242,7 +1242,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.type"); } else if (name.equals("role")) { this.role = new CodeableConcept(); return this.role; @@ -1537,7 +1537,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.path"); } else if (name.equals("expression")) { this.expression = new Expression(); return this.expression; @@ -5643,21 +5643,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -5665,27 +5665,27 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -5702,20 +5702,20 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.library"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.kind"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.profile"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.intent"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.priority"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.doNotPerform"); } else if (name.equals("timingTiming")) { this.timing = new Timing(); return this.timing; @@ -5759,7 +5759,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("observationResultRequirement")) { return addObservationResultRequirement(); } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.transform"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.transform"); } else if (name.equals("dynamicValue")) { return addDynamicValue(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Address.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Address.java index 7c3b52f66c..a032614ddc 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Address.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Address.java @@ -1240,23 +1240,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.use"); + throw new FHIRException("Cannot call addChild on a singleton property Address.use"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.type"); + throw new FHIRException("Cannot call addChild on a singleton property Address.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.text"); + throw new FHIRException("Cannot call addChild on a singleton property Address.text"); } else if (name.equals("line")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.line"); + throw new FHIRException("Cannot call addChild on a singleton property Address.line"); } else if (name.equals("city")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.city"); + throw new FHIRException("Cannot call addChild on a singleton property Address.city"); } else if (name.equals("district")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.district"); + throw new FHIRException("Cannot call addChild on a singleton property Address.district"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.state"); + throw new FHIRException("Cannot call addChild on a singleton property Address.state"); } else if (name.equals("postalCode")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.postalCode"); + throw new FHIRException("Cannot call addChild on a singleton property Address.postalCode"); } else if (name.equals("country")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.country"); + throw new FHIRException("Cannot call addChild on a singleton property Address.country"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AdverseEvent.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AdverseEvent.java index b0c1b681ef..19bf0afe2d 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AdverseEvent.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AdverseEvent.java @@ -806,7 +806,7 @@ public Base addChild(String name) throws FHIRException { this.assessment = new CodeableConcept(); return this.assessment; } else if (name.equals("productRelatedness")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.productRelatedness"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.productRelatedness"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; @@ -2559,7 +2559,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("actuality")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.actuality"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.actuality"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("event")) { @@ -2572,11 +2572,11 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.date"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.date"); } else if (name.equals("detected")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.detected"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.detected"); } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.recordedDate"); } else if (name.equals("resultingCondition")) { return addResultingCondition(); } else if (name.equals("location")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AllergyIntolerance.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AllergyIntolerance.java index 92876b95f1..4e73a043d1 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AllergyIntolerance.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AllergyIntolerance.java @@ -1254,11 +1254,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("manifestation")) { return addManifestation(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.description"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.description"); } else if (name.equals("onset")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.onset"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.onset"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.severity"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.severity"); } else if (name.equals("exposureRoute")) { this.exposureRoute = new CodeableConcept(); return this.exposureRoute; @@ -2772,11 +2772,11 @@ public Base addChild(String name) throws FHIRException { this.verificationStatus = new CodeableConcept(); return this.verificationStatus; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.type"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.type"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.category"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.category"); } else if (name.equals("criticality")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.criticality"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.criticality"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -2802,7 +2802,7 @@ public Base addChild(String name) throws FHIRException { this.onset = new StringType(); return this.onset; } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.recordedDate"); } else if (name.equals("recorder")) { this.recorder = new Reference(); return this.recorder; @@ -2810,7 +2810,7 @@ public Base addChild(String name) throws FHIRException { this.asserter = new Reference(); return this.asserter; } else if (name.equals("lastOccurrence")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.lastOccurrence"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.lastOccurrence"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("reaction")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Annotation.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Annotation.java index 38caec5507..6a8e44af96 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Annotation.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Annotation.java @@ -370,9 +370,9 @@ public Base addChild(String name) throws FHIRException { this.author = new StringType(); return this.author; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.time"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.time"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.text"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.text"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Appointment.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Appointment.java index 7c74d69d08..b9221dfb45 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Appointment.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Appointment.java @@ -1108,9 +1108,9 @@ public Base addChild(String name) throws FHIRException { this.actor = new Reference(); return this.actor; } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.required"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.required"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -3180,7 +3180,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.status"); } else if (name.equals("cancelationReason")) { this.cancelationReason = new CodeableConcept(); return this.cancelationReason; @@ -3198,25 +3198,25 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("reasonReference")) { return addReasonReference(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.priority"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.description"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.description"); } else if (name.equals("supportingInformation")) { return addSupportingInformation(); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.start"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.end"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.end"); } else if (name.equals("minutesDuration")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.minutesDuration"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.minutesDuration"); } else if (name.equals("slot")) { return addSlot(); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.created"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.created"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.comment"); } else if (name.equals("patientInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.patientInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.patientInstruction"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("participant")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AppointmentResponse.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AppointmentResponse.java index 8169d4b9ba..9a1cadf880 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AppointmentResponse.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AppointmentResponse.java @@ -971,18 +971,18 @@ public Base addChild(String name) throws FHIRException { this.appointment = new Reference(); return this.appointment; } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.start"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.end"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.end"); } else if (name.equals("participantType")) { return addParticipantType(); } else if (name.equals("actor")) { this.actor = new Reference(); return this.actor; } else if (name.equals("participantStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.participantStatus"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.participantStatus"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.comment"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Attachment.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Attachment.java index a6fbc28243..959a6b6f40 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Attachment.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Attachment.java @@ -758,21 +758,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.contentType"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.language"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.language"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.data"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.data"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.url"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.url"); } else if (name.equals("size")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.size"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.size"); } else if (name.equals("hash")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.hash"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.hash"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.title"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.title"); } else if (name.equals("creation")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.creation"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.creation"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AuditEvent.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AuditEvent.java index 2a3f354e7c..201963ec0d 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AuditEvent.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/AuditEvent.java @@ -1490,16 +1490,16 @@ public Base addChild(String name) throws FHIRException { this.who = new Reference(); return this.who; } else if (name.equals("altId")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.altId"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.altId"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.name"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.name"); } else if (name.equals("requestor")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.requestor"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.requestor"); } else if (name.equals("location")) { this.location = new Reference(); return this.location; } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.policy"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.policy"); } else if (name.equals("media")) { this.media = new Coding(); return this.media; @@ -1821,9 +1821,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.address"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.address"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.type"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.type"); } else return super.addChild(name); } @@ -2196,7 +2196,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("site")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.site"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.site"); } else if (name.equals("observer")) { this.observer = new Reference(); return this.observer; @@ -2959,11 +2959,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.name"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.description"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.description"); } else if (name.equals("query")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.query"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.query"); } else if (name.equals("detail")) { return addDetail(); } else @@ -3271,7 +3271,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.type"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.type"); } else if (name.equals("valueString")) { this.value = new StringType(); return this.value; @@ -4186,16 +4186,16 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("subtype")) { return addSubtype(); } else if (name.equals("action")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.action"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.action"); } else if (name.equals("period")) { this.period = new Period(); return this.period; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.recorded"); } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcome"); } else if (name.equals("outcomeDesc")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcomeDesc"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcomeDesc"); } else if (name.equals("purposeOfEvent")) { return addPurposeOfEvent(); } else if (name.equals("agent")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Basic.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Basic.java index dfb60a5e19..58eca61d99 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Basic.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Basic.java @@ -503,7 +503,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Basic.created"); + throw new FHIRException("Cannot call addChild on a singleton property Basic.created"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Binary.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Binary.java index ac06a8dea0..cf33045194 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Binary.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Binary.java @@ -412,12 +412,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.contentType"); } else if (name.equals("securityContext")) { this.securityContext = new Reference(); return this.securityContext; } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.data"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.data"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/BiologicallyDerivedProduct.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/BiologicallyDerivedProduct.java index 3c7da802b6..3be3cce473 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/BiologicallyDerivedProduct.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/BiologicallyDerivedProduct.java @@ -1247,7 +1247,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.description"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.description"); } else if (name.equals("procedure")) { this.procedure = new CodeableConcept(); return this.procedure; @@ -1540,7 +1540,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.description"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.description"); } else if (name.equals("timeDateTime")) { this.time = new DateTimeType(); return this.time; @@ -1958,11 +1958,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.description"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.description"); } else if (name.equals("temperature")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.temperature"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.temperature"); } else if (name.equals("scale")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.scale"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.scale"); } else if (name.equals("duration")) { this.duration = new Period(); return this.duration; @@ -2932,16 +2932,16 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("productCategory")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.productCategory"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.productCategory"); } else if (name.equals("productCode")) { this.productCode = new CodeableConcept(); return this.productCode; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.status"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.status"); } else if (name.equals("request")) { return addRequest(); } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.quantity"); } else if (name.equals("parent")) { return addParent(); } else if (name.equals("collection")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/BodyStructure.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/BodyStructure.java index 943b2e69e3..9b632afa3e 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/BodyStructure.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/BodyStructure.java @@ -707,7 +707,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type BodyStructure.active"); + throw new FHIRException("Cannot call addChild on a singleton property BodyStructure.active"); } else if (name.equals("morphology")) { this.morphology = new CodeableConcept(); return this.morphology; @@ -717,7 +717,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("locationQualifier")) { return addLocationQualifier(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type BodyStructure.description"); + throw new FHIRException("Cannot call addChild on a singleton property BodyStructure.description"); } else if (name.equals("image")) { return addImage(); } else if (name.equals("patient")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Bundle.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Bundle.java index 0bb7d99654..701c922348 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Bundle.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Bundle.java @@ -893,9 +893,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("relation")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.relation"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.relation"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.url"); } else return super.addChild(name); } @@ -1472,7 +1472,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("link")) { return addLink(); } else if (name.equals("fullUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.fullUrl"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.fullUrl"); } else if (name.equals("resource")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.resource"); } else if (name.equals("search")) { @@ -1800,9 +1800,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.mode"); } else if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.score"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.score"); } else return super.addChild(name); } @@ -2448,17 +2448,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("method")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.method"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.method"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.url"); } else if (name.equals("ifNoneMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifNoneMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifNoneMatch"); } else if (name.equals("ifModifiedSince")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifModifiedSince"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifModifiedSince"); } else if (name.equals("ifMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifMatch"); } else if (name.equals("ifNoneExist")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifNoneExist"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifNoneExist"); } else return super.addChild(name); } @@ -2981,13 +2981,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.status"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.status"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.location"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.location"); } else if (name.equals("etag")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.etag"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.etag"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.lastModified"); } else if (name.equals("outcome")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.outcome"); } else @@ -3690,11 +3690,11 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.type"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.type"); } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.timestamp"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.total"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.total"); } else if (name.equals("link")) { return addLink(); } else if (name.equals("entry")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CapabilityStatement.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CapabilityStatement.java index a60605bf37..0cfb1b48e3 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CapabilityStatement.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CapabilityStatement.java @@ -1925,11 +1925,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.name"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.version"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.version"); } else if (name.equals("releaseDate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.releaseDate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.releaseDate"); } else return super.addChild(name); } @@ -2313,9 +2313,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.description"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.description"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.url"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.url"); } else if (name.equals("custodian")) { this.custodian = new Reference(); return this.custodian; @@ -3100,9 +3100,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else if (name.equals("security")) { this.security = new CapabilityStatementRestSecurityComponent(); return this.security; @@ -3115,7 +3115,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("operation")) { return addOperation(); } else if (name.equals("compartment")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.compartment"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.compartment"); } else return super.addChild(name); } @@ -3508,11 +3508,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("cors")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.cors"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.cors"); } else if (name.equals("service")) { return addService(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.description"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.description"); } else return super.addChild(name); } @@ -5162,35 +5162,35 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.type"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.profile"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.profile"); } else if (name.equals("supportedProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.supportedProfile"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.supportedProfile"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else if (name.equals("interaction")) { return addInteraction(); } else if (name.equals("versioning")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.versioning"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.versioning"); } else if (name.equals("readHistory")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.readHistory"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.readHistory"); } else if (name.equals("updateCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.updateCreate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.updateCreate"); } else if (name.equals("conditionalCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.conditionalCreate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.conditionalCreate"); } else if (name.equals("conditionalRead")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.conditionalRead"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.conditionalRead"); } else if (name.equals("conditionalUpdate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.conditionalUpdate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.conditionalUpdate"); } else if (name.equals("conditionalDelete")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.conditionalDelete"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.conditionalDelete"); } else if (name.equals("referencePolicy")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.referencePolicy"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.referencePolicy"); } else if (name.equals("searchInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.searchInclude"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.searchInclude"); } else if (name.equals("searchRevInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.searchRevInclude"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.searchRevInclude"); } else if (name.equals("searchParam")) { return addSearchParam(); } else if (name.equals("operation")) { @@ -5562,9 +5562,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.code"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.code"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else return super.addChild(name); } @@ -6035,13 +6035,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.name"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.definition"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.type"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.type"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else return super.addChild(name); } @@ -6465,11 +6465,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.name"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.definition"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else return super.addChild(name); } @@ -6763,9 +6763,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.code"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.code"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else return super.addChild(name); } @@ -7229,9 +7229,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("reliableCache")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.reliableCache"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.reliableCache"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else if (name.equals("supportedMessage")) { return addSupportedMessage(); } else @@ -7511,7 +7511,7 @@ public Base addChild(String name) throws FHIRException { this.protocol = new Coding(); return this.protocol; } else if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.address"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.address"); } else return super.addChild(name); } @@ -7802,9 +7802,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.mode"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.definition"); } else return super.addChild(name); } @@ -8181,11 +8181,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.documentation"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.profile"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.profile"); } else return super.addChild(name); } @@ -10489,39 +10489,39 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.url"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.version"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.title"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.date"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.description"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.copyright"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.kind"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.kind"); } else if (name.equals("instantiates")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.instantiates"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.instantiates"); } else if (name.equals("imports")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.imports"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.imports"); } else if (name.equals("software")) { this.software = new CapabilityStatementSoftwareComponent(); return this.software; @@ -10529,13 +10529,13 @@ public Base addChild(String name) throws FHIRException { this.implementation = new CapabilityStatementImplementationComponent(); return this.implementation; } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.fhirVersion"); } else if (name.equals("format")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.format"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.format"); } else if (name.equals("patchFormat")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.patchFormat"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.patchFormat"); } else if (name.equals("implementationGuide")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.implementationGuide"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.implementationGuide"); } else if (name.equals("rest")) { return addRest(); } else if (name.equals("messaging")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CarePlan.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CarePlan.java index a2f4298578..af4efb4554 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CarePlan.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CarePlan.java @@ -3056,11 +3056,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.kind"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.kind"); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.instantiatesUri"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -3071,12 +3071,12 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("goal")) { return addGoal(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.doNotPerform"); } else if (name.equals("scheduledTiming")) { this.scheduled = new Timing(); return this.scheduled; @@ -3104,7 +3104,7 @@ public Base addChild(String name) throws FHIRException { this.quantity = new Quantity(); return this.quantity; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description"); } else return super.addChild(name); } @@ -5384,9 +5384,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("replaces")) { @@ -5394,15 +5394,15 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.intent"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.title"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -5413,7 +5413,7 @@ public Base addChild(String name) throws FHIRException { this.period = new Period(); return this.period; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.created"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.created"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CareTeam.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CareTeam.java index c6cf9ddb47..47df55c50b 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CareTeam.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CareTeam.java @@ -1821,11 +1821,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CareTeam.status"); + throw new FHIRException("Cannot call addChild on a singleton property CareTeam.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CareTeam.name"); + throw new FHIRException("Cannot call addChild on a singleton property CareTeam.name"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CatalogEntry.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CatalogEntry.java index e181a88db6..8c38233a8d 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CatalogEntry.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CatalogEntry.java @@ -413,7 +413,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("relationtype")) { - throw new FHIRException("Cannot call addChild on a primitive type CatalogEntry.relationtype"); + throw new FHIRException("Cannot call addChild on a singleton property CatalogEntry.relationtype"); } else if (name.equals("item")) { this.item = new Reference(); return this.item; @@ -1543,7 +1543,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("orderable")) { - throw new FHIRException("Cannot call addChild on a primitive type CatalogEntry.orderable"); + throw new FHIRException("Cannot call addChild on a singleton property CatalogEntry.orderable"); } else if (name.equals("referencedItem")) { this.referencedItem = new Reference(); return this.referencedItem; @@ -1552,14 +1552,14 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("classification")) { return addClassification(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CatalogEntry.status"); + throw new FHIRException("Cannot call addChild on a singleton property CatalogEntry.status"); } else if (name.equals("validityPeriod")) { this.validityPeriod = new Period(); return this.validityPeriod; } else if (name.equals("validTo")) { - throw new FHIRException("Cannot call addChild on a primitive type CatalogEntry.validTo"); + throw new FHIRException("Cannot call addChild on a singleton property CatalogEntry.validTo"); } else if (name.equals("lastUpdated")) { - throw new FHIRException("Cannot call addChild on a primitive type CatalogEntry.lastUpdated"); + throw new FHIRException("Cannot call addChild on a singleton property CatalogEntry.lastUpdated"); } else if (name.equals("additionalCharacteristic")) { return addAdditionalCharacteristic(); } else if (name.equals("additionalClassification")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ChargeItem.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ChargeItem.java index d7f4f1df4c..724a54bd1c 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ChargeItem.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ChargeItem.java @@ -2814,11 +2814,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("definitionUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.definitionUri"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.definitionUri"); } else if (name.equals("definitionCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.definitionCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.definitionCanonical"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.status"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.status"); } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("code")) { @@ -2856,17 +2856,17 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("bodysite")) { return addBodysite(); } else if (name.equals("factorOverride")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.factorOverride"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.factorOverride"); } else if (name.equals("priceOverride")) { this.priceOverride = new Money(); return this.priceOverride; } else if (name.equals("overrideReason")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.overrideReason"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.overrideReason"); } else if (name.equals("enterer")) { this.enterer = new Reference(); return this.enterer; } else if (name.equals("enteredDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.enteredDate"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.enteredDate"); } else if (name.equals("reason")) { return addReason(); } else if (name.equals("service")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ChargeItemDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ChargeItemDefinition.java index e43ecd1cf2..09a76d330f 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ChargeItemDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ChargeItemDefinition.java @@ -614,11 +614,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.description"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.language"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.language"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.expression"); } else return super.addChild(name); } @@ -1335,12 +1335,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.type"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.factor"); } else if (name.equals("amount")) { this.amount = new Money(); return this.amount; @@ -3366,41 +3366,41 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.version"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.title"); } else if (name.equals("derivedFromUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.derivedFromUri"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.derivedFromUri"); } else if (name.equals("partOf")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.partOf"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.partOf"); } else if (name.equals("replaces")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.replaces"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.replaces"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Claim.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Claim.java index b3020375c7..bbcfe88b50 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Claim.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Claim.java @@ -1334,12 +1334,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("provider")) { this.provider = new Reference(); return this.provider; } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.responsible"); } else if (name.equals("role")) { this.role = new CodeableConcept(); return this.role; @@ -1980,7 +1980,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -2506,7 +2506,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("diagnosisCodeableConcept")) { this.diagnosis = new CodeableConcept(); return this.diagnosis; @@ -3094,11 +3094,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("type")) { return addType(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.date"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.date"); } else if (name.equals("procedureCodeableConcept")) { this.procedure = new CodeableConcept(); return this.procedure; @@ -3832,9 +3832,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.focal"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.focal"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; @@ -3842,9 +3842,9 @@ public Base addChild(String name) throws FHIRException { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.businessArrangement"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.preAuthRef"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); return this.claimResponse; @@ -4211,7 +4211,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.date"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -6020,15 +6020,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("careTeamSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.careTeamSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.careTeamSequence"); } else if (name.equals("diagnosisSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.diagnosisSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.diagnosisSequence"); } else if (name.equals("procedureSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.procedureSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.procedureSequence"); } else if (name.equals("informationSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.informationSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.informationSequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -6064,7 +6064,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -7150,7 +7150,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -7171,7 +7171,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -8120,7 +8120,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -8141,7 +8141,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -10266,7 +10266,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.status"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -10274,7 +10274,7 @@ public Base addChild(String name) throws FHIRException { this.subType = new CodeableConcept(); return this.subType; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.use"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.use"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -10282,7 +10282,7 @@ public Base addChild(String name) throws FHIRException { this.billablePeriod = new Period(); return this.billablePeriod; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.created"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); return this.enterer; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ClaimResponse.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ClaimResponse.java index b084f0bc77..1e8d980430 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ClaimResponse.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ClaimResponse.java @@ -931,9 +931,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.itemSequence"); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -1359,7 +1359,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value"); } else return super.addChild(name); } @@ -1814,9 +1814,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.detailSequence"); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("subDetail")) { @@ -2213,9 +2213,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("subDetailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.subDetailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.subDetailSequence"); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else @@ -3815,11 +3815,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.itemSequence"); } else if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.detailSequence"); } else if (name.equals("subdetailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.subdetailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.subdetailSequence"); } else if (name.equals("provider")) { return addProvider(); } else if (name.equals("productOrService")) { @@ -3851,7 +3851,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -3861,7 +3861,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("subSite")) { return addSubSite(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -4746,12 +4746,12 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("subDetail")) { @@ -5510,12 +5510,12 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else @@ -6254,7 +6254,7 @@ public Base addChild(String name) throws FHIRException { this.adjustmentReason = new CodeableConcept(); return this.adjustmentReason; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.date"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.date"); } else if (name.equals("amount")) { this.amount = new Money(); return this.amount; @@ -6666,11 +6666,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.number"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.number"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.type"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.text"); } else if (name.equals("language")) { this.language = new CodeableConcept(); return this.language; @@ -7235,14 +7235,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.focal"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.businessArrangement"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); return this.claimResponse; @@ -7690,11 +7690,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.itemSequence"); } else if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.detailSequence"); } else if (name.equals("subDetailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.subDetailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.subDetailSequence"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -9819,7 +9819,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -9827,12 +9827,12 @@ public Base addChild(String name) throws FHIRException { this.subType = new CodeableConcept(); return this.subType; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.use"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.use"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.created"); } else if (name.equals("insurer")) { this.insurer = new Reference(); return this.insurer; @@ -9843,11 +9843,11 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.disposition"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.preAuthRef"); } else if (name.equals("preAuthPeriod")) { this.preAuthPeriod = new Period(); return this.preAuthPeriod; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ClinicalImpression.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ClinicalImpression.java index ab3796719e..592961461c 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ClinicalImpression.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ClinicalImpression.java @@ -779,7 +779,7 @@ public Base addChild(String name) throws FHIRException { this.itemReference = new Reference(); return this.itemReference; } else if (name.equals("basis")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.basis"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.basis"); } else return super.addChild(name); } @@ -2571,7 +2571,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.status"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; @@ -2579,7 +2579,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.description"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.description"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -2593,7 +2593,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.date"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.date"); } else if (name.equals("assessor")) { this.assessor = new Reference(); return this.assessor; @@ -2605,9 +2605,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("investigation")) { return addInvestigation(); } else if (name.equals("protocol")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.protocol"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.protocol"); } else if (name.equals("summary")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.summary"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.summary"); } else if (name.equals("finding")) { return addFinding(); } else if (name.equals("prognosisCodeableConcept")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CodeSystem.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CodeSystem.java index 8c05a81288..85d1e64b85 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CodeSystem.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CodeSystem.java @@ -1318,13 +1318,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.operator"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.operator"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.value"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.value"); } else return super.addChild(name); } @@ -1800,13 +1800,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.uri"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.uri"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.type"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.type"); } else return super.addChild(name); } @@ -2439,11 +2439,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.display"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.display"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.definition"); } else if (name.equals("designation")) { return addDesignation(); } else if (name.equals("property")) { @@ -2794,12 +2794,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.language"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.value"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.value"); } else return super.addChild(name); } @@ -3187,7 +3187,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.code"); } else if (name.equals("valueCode")) { this.value = new CodeType(); return this.value; @@ -5457,51 +5457,51 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.url"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.version"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.title"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.copyright"); } else if (name.equals("caseSensitive")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.caseSensitive"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.caseSensitive"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.valueSet"); } else if (name.equals("hierarchyMeaning")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.hierarchyMeaning"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.hierarchyMeaning"); } else if (name.equals("compositional")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.compositional"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.compositional"); } else if (name.equals("versionNeeded")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.versionNeeded"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.versionNeeded"); } else if (name.equals("content")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.content"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.content"); } else if (name.equals("supplements")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.supplements"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.supplements"); } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.count"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.count"); } else if (name.equals("filter")) { return addFilter(); } else if (name.equals("property")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CodeableConcept.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CodeableConcept.java index 94ca72d300..7680a157dc 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CodeableConcept.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CodeableConcept.java @@ -285,7 +285,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("coding")) { return addCoding(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeableConcept.text"); + throw new FHIRException("Cannot call addChild on a singleton property CodeableConcept.text"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Coding.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Coding.java index 02081b584d..617dc6b62e 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Coding.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Coding.java @@ -564,15 +564,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.system"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.version"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.code"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.display"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.display"); } else if (name.equals("userSelected")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.userSelected"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.userSelected"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Communication.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Communication.java index 948452c4b2..5e153d19a4 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Communication.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Communication.java @@ -2764,9 +2764,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("partOf")) { @@ -2774,14 +2774,14 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("inResponseTo")) { return addInResponseTo(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.status"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.priority"); } else if (name.equals("medium")) { return addMedium(); } else if (name.equals("subject")) { @@ -2796,9 +2796,9 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("sent")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.sent"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.sent"); } else if (name.equals("received")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.received"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.received"); } else if (name.equals("recipient")) { return addRecipient(); } else if (name.equals("sender")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CommunicationRequest.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CommunicationRequest.java index 83ae77c2d5..d1fba1fd28 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CommunicationRequest.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CommunicationRequest.java @@ -2641,16 +2641,16 @@ public Base addChild(String name) throws FHIRException { this.groupIdentifier = new Identifier(); return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.doNotPerform"); } else if (name.equals("medium")) { return addMedium(); } else if (name.equals("subject")) { @@ -2670,7 +2670,7 @@ public Base addChild(String name) throws FHIRException { this.occurrence = new Period(); return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CompartmentDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CompartmentDefinition.java index 1bf4bbf8c6..de9bb0a4aa 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CompartmentDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CompartmentDefinition.java @@ -562,11 +562,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.code"); } else if (name.equals("param")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.param"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.param"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.documentation"); } else return super.addChild(name); } @@ -1813,31 +1813,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.purpose"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.code"); } else if (name.equals("search")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.search"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.search"); } else if (name.equals("resource")) { return addResource(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Composition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Composition.java index 0af4a3ff39..bac864300d 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Composition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Composition.java @@ -1195,9 +1195,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.mode"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.time"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.time"); } else if (name.equals("party")) { this.party = new Reference(); return this.party; @@ -1500,7 +1500,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.code"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.code"); } else if (name.equals("targetIdentifier")) { this.target = new Identifier(); return this.target; @@ -2814,7 +2814,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -2827,7 +2827,7 @@ public Base addChild(String name) throws FHIRException { this.text = new Narrative(); return this.text; } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.mode"); } else if (name.equals("orderedBy")) { this.orderedBy = new CodeableConcept(); return this.orderedBy; @@ -4197,7 +4197,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.status"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -4210,13 +4210,13 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.date"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.date"); } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.title"); } else if (name.equals("confidentiality")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.confidentiality"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.confidentiality"); } else if (name.equals("attester")) { return addAttester(); } else if (name.equals("custodian")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ConceptMap.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ConceptMap.java index 0d7ebd5264..74cca508d4 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ConceptMap.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ConceptMap.java @@ -737,13 +737,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.source"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.source"); } else if (name.equals("sourceVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.sourceVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.sourceVersion"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.target"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.target"); } else if (name.equals("targetVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.targetVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.targetVersion"); } else if (name.equals("element")) { return addElement(); } else if (name.equals("unmapped")) { @@ -1118,9 +1118,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.display"); } else if (name.equals("target")) { return addTarget(); } else @@ -1764,13 +1764,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.display"); } else if (name.equals("equivalence")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.equivalence"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.equivalence"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.comment"); } else if (name.equals("dependsOn")) { return addDependsOn(); } else if (name.equals("product")) { @@ -2259,13 +2259,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.property"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.property"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.system"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.value"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.value"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.display"); } else return super.addChild(name); } @@ -2755,13 +2755,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.mode"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.mode"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.display"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.url"); } else return super.addChild(name); } @@ -4354,36 +4354,36 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.title"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.copyright"); } else if (name.equals("sourceUri")) { this.source = new UriType(); return this.source; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Condition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Condition.java index bb55a47182..d3ec68b7f4 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Condition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Condition.java @@ -2260,7 +2260,7 @@ public Base addChild(String name) throws FHIRException { this.abatement = new StringType(); return this.abatement; } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.recordedDate"); } else if (name.equals("recorder")) { this.recorder = new Reference(); return this.recorder; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Consent.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Consent.java index 4bca8f36d9..12b3e1c06b 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Consent.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Consent.java @@ -781,9 +781,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("authority")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.authority"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.authority"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.uri"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.uri"); } else return super.addChild(name); } @@ -1135,12 +1135,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("verified")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.verified"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.verified"); } else if (name.equals("verifiedWith")) { this.verifiedWith = new Reference(); return this.verifiedWith; } else if (name.equals("verificationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.verificationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.verificationDate"); } else return super.addChild(name); } @@ -2100,7 +2100,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.type"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.type"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -2738,7 +2738,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("meaning")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.meaning"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.meaning"); } else if (name.equals("reference")) { this.reference = new Reference(); return this.reference; @@ -3921,7 +3921,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.status"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.status"); } else if (name.equals("scope")) { this.scope = new CodeableConcept(); return this.scope; @@ -3931,7 +3931,7 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.dateTime"); } else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("organization")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ContactDetail.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ContactDetail.java index 4e56dd758e..6b56bc5fb4 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ContactDetail.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ContactDetail.java @@ -271,7 +271,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactDetail.name"); + throw new FHIRException("Cannot call addChild on a singleton property ContactDetail.name"); } else if (name.equals("telecom")) { return addTelecom(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ContactPoint.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ContactPoint.java index 8439fda41a..53c9eadfcf 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ContactPoint.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ContactPoint.java @@ -912,13 +912,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.system"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.value"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.value"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.use"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.use"); } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.rank"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.rank"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Contract.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Contract.java index 4690058336..0a37cefb9e 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Contract.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Contract.java @@ -1473,11 +1473,11 @@ public Base addChild(String name) throws FHIRException { this.publisher = new Reference(); return this.publisher; } else if (name.equals("publicationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.publicationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.publicationDate"); } else if (name.equals("publicationStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.publicationStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.publicationStatus"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.copyright"); } else return super.addChild(name); } @@ -2433,7 +2433,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.issued"); } else if (name.equals("applies")) { this.applies = new Period(); return this.applies; @@ -2450,7 +2450,7 @@ public Base addChild(String name) throws FHIRException { this.subType = new CodeableConcept(); return this.subType; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.text"); } else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("offer")) { @@ -2939,7 +2939,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.number"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.number"); } else if (name.equals("classification")) { this.classification = new Coding(); return this.classification; @@ -3867,11 +3867,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("answer")) { return addAnswer(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.text"); } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.linkId"); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.securityLabelNumber"); } else return super.addChild(name); } @@ -6028,7 +6028,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("context")) { return addContext(); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.condition"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.condition"); } else if (name.equals("periodType")) { return addPeriodType(); } else if (name.equals("period")) { @@ -6036,13 +6036,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("usePeriod")) { return addUsePeriod(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.text"); } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.linkId"); } else if (name.equals("answer")) { return addAnswer(); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.securityLabelNumber"); } else if (name.equals("valuedItem")) { return addValuedItem(); } else @@ -6490,7 +6490,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("code")) { return addCode(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.text"); } else return super.addChild(name); } @@ -7744,7 +7744,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("effectiveTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.effectiveTime"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.effectiveTime"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); return this.quantity; @@ -7752,16 +7752,16 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.points"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("payment")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.payment"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.payment"); } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.paymentDate"); } else if (name.equals("responsible")) { this.responsible = new Reference(); return this.responsible; @@ -7769,9 +7769,9 @@ public Base addChild(String name) throws FHIRException { this.recipient = new Reference(); return this.recipient; } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.linkId"); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.securityLabelNumber"); } else return super.addChild(name); } @@ -9669,7 +9669,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.doNotPerform"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -9679,7 +9679,7 @@ public Base addChild(String name) throws FHIRException { this.intent = new CodeableConcept(); return this.intent; } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.linkId"); } else if (name.equals("status")) { this.status = new CodeableConcept(); return this.status; @@ -9687,7 +9687,7 @@ public Base addChild(String name) throws FHIRException { this.context = new Reference(); return this.context; } else if (name.equals("contextLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.contextLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.contextLinkId"); } else if (name.equals("occurrenceDateTime")) { this.occurrence = new DateTimeType(); return this.occurrence; @@ -9700,7 +9700,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("requester")) { return addRequester(); } else if (name.equals("requesterLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.requesterLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.requesterLinkId"); } else if (name.equals("performerType")) { return addPerformerType(); } else if (name.equals("performerRole")) { @@ -9710,19 +9710,19 @@ public Base addChild(String name) throws FHIRException { this.performer = new Reference(); return this.performer; } else if (name.equals("performerLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.performerLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.performerLinkId"); } else if (name.equals("reasonCode")) { return addReasonCode(); } else if (name.equals("reasonReference")) { return addReasonReference(); } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.reason"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.reason"); } else if (name.equals("reasonLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.reasonLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.reasonLinkId"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.securityLabelNumber"); } else return super.addChild(name); } @@ -14041,11 +14041,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.url"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.version"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.version"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.status"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.status"); } else if (name.equals("legalState")) { this.legalState = new CodeableConcept(); return this.legalState; @@ -14053,12 +14053,12 @@ public Base addChild(String name) throws FHIRException { this.instantiatesCanonical = new Reference(); return this.instantiatesCanonical; } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.instantiatesUri"); } else if (name.equals("contentDerivative")) { this.contentDerivative = new CodeableConcept(); return this.contentDerivative; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.issued"); } else if (name.equals("applies")) { this.applies = new Period(); return this.applies; @@ -14074,13 +14074,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("site")) { return addSite(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.name"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.title"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.subtitle"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.alias"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Contributor.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Contributor.java index ac300f2122..ccbad5b64e 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Contributor.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Contributor.java @@ -515,9 +515,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Contributor.type"); + throw new FHIRException("Cannot call addChild on a singleton property Contributor.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Contributor.name"); + throw new FHIRException("Cannot call addChild on a singleton property Contributor.name"); } else if (name.equals("contact")) { return addContact(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Coverage.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Coverage.java index 0f9613eedf..680593e951 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Coverage.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Coverage.java @@ -501,9 +501,9 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.value"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.value"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.name"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.name"); } else return super.addChild(name); } @@ -2583,7 +2583,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.status"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2594,12 +2594,12 @@ public Base addChild(String name) throws FHIRException { this.subscriber = new Reference(); return this.subscriber; } else if (name.equals("subscriberId")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subscriberId"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subscriberId"); } else if (name.equals("beneficiary")) { this.beneficiary = new Reference(); return this.beneficiary; } else if (name.equals("dependent")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.dependent"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.dependent"); } else if (name.equals("relationship")) { this.relationship = new CodeableConcept(); return this.relationship; @@ -2611,13 +2611,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("class")) { return addClass_(); } else if (name.equals("order")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.order"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.order"); } else if (name.equals("network")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.network"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.network"); } else if (name.equals("costToBeneficiary")) { return addCostToBeneficiary(); } else if (name.equals("subrogation")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subrogation"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subrogation"); } else if (name.equals("contract")) { return addContract(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CoverageEligibilityRequest.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CoverageEligibilityRequest.java index 64975c479c..1a15a23785 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CoverageEligibilityRequest.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CoverageEligibilityRequest.java @@ -699,12 +699,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.sequence"); } else if (name.equals("information")) { this.information = new Reference(); return this.information; } else if (name.equals("appliesToAll")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.appliesToAll"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.appliesToAll"); } else return super.addChild(name); } @@ -1094,13 +1094,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.focal"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityRequest.businessArrangement"); + "Cannot call addChild on a singleton property CoverageEligibilityRequest.businessArrangement"); } else return super.addChild(name); } @@ -1936,7 +1936,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("supportingInfoSequence")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityRequest.supportingInfoSequence"); + "Cannot call addChild on a singleton property CoverageEligibilityRequest.supportingInfoSequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -3480,12 +3480,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.status"); } else if (name.equals("priority")) { this.priority = new CodeableConcept(); return this.priority; } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.purpose"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -3496,7 +3496,7 @@ public Base addChild(String name) throws FHIRException { this.serviced = new Period(); return this.serviced; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); return this.enterer; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CoverageEligibilityResponse.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CoverageEligibilityResponse.java index 483157ff77..d3037c2e92 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CoverageEligibilityResponse.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/CoverageEligibilityResponse.java @@ -769,7 +769,7 @@ public Base addChild(String name) throws FHIRException { this.coverage = new Reference(); return this.coverage; } else if (name.equals("inforce")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.inforce"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.inforce"); } else if (name.equals("benefitPeriod")) { this.benefitPeriod = new Period(); return this.benefitPeriod; @@ -1904,11 +1904,11 @@ public Base addChild(String name) throws FHIRException { this.provider = new Reference(); return this.provider; } else if (name.equals("excluded")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.excluded"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.excluded"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.name"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.description"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.description"); } else if (name.equals("network")) { this.network = new CodeableConcept(); return this.network; @@ -1922,12 +1922,12 @@ public Base addChild(String name) throws FHIRException { return addBenefit(); } else if (name.equals("authorizationRequired")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityResponse.authorizationRequired"); + "Cannot call addChild on a singleton property CoverageEligibilityResponse.authorizationRequired"); } else if (name.equals("authorizationSupporting")) { return addAuthorizationSupporting(); } else if (name.equals("authorizationUrl")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityResponse.authorizationUrl"); + "Cannot call addChild on a singleton property CoverageEligibilityResponse.authorizationUrl"); } else return super.addChild(name); } @@ -3910,9 +3910,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.status"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.purpose"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -3923,7 +3923,7 @@ public Base addChild(String name) throws FHIRException { this.serviced = new Period(); return this.serviced; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.created"); } else if (name.equals("requestor")) { this.requestor = new Reference(); return this.requestor; @@ -3931,16 +3931,16 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.disposition"); } else if (name.equals("insurer")) { this.insurer = new Reference(); return this.insurer; } else if (name.equals("insurance")) { return addInsurance(); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.preAuthRef"); } else if (name.equals("form")) { this.form = new CodeableConcept(); return this.form; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DataRequirement.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DataRequirement.java index b418ddda77..67ff3285e7 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DataRequirement.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DataRequirement.java @@ -636,11 +636,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.path"); } else if (name.equals("searchParam")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.searchParam"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.searchParam"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.valueSet"); } else if (name.equals("code")) { return addCode(); } else @@ -1126,9 +1126,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.path"); } else if (name.equals("searchParam")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.searchParam"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.searchParam"); } else if (name.equals("valueDateTime")) { this.value = new DateTimeType(); return this.value; @@ -1437,9 +1437,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.path"); } else if (name.equals("direction")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.direction"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.direction"); } else return super.addChild(name); } @@ -2303,9 +2303,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.type"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.profile"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.profile"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -2313,13 +2313,13 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.mustSupport"); } else if (name.equals("codeFilter")) { return addCodeFilter(); } else if (name.equals("dateFilter")) { return addDateFilter(); } else if (name.equals("limit")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.limit"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.limit"); } else if (name.equals("sort")) { return addSort(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DetectedIssue.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DetectedIssue.java index ec7416c97f..3b41e4f779 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DetectedIssue.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DetectedIssue.java @@ -1059,7 +1059,7 @@ public Base addChild(String name) throws FHIRException { this.action = new CodeableConcept(); return this.action; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.date"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.date"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; @@ -2165,12 +2165,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.status"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.status"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.severity"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.severity"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -2188,9 +2188,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("evidence")) { return addEvidence(); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.detail"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.detail"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.reference"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.reference"); } else if (name.equals("mitigation")) { return addMitigation(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Device.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Device.java index 8ddabeb63c..98306469f0 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Device.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Device.java @@ -1254,17 +1254,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("deviceIdentifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.deviceIdentifier"); + throw new FHIRException("Cannot call addChild on a singleton property Device.deviceIdentifier"); } else if (name.equals("issuer")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.issuer"); + throw new FHIRException("Cannot call addChild on a singleton property Device.issuer"); } else if (name.equals("jurisdiction")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.jurisdiction"); + throw new FHIRException("Cannot call addChild on a singleton property Device.jurisdiction"); } else if (name.equals("carrierAIDC")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.carrierAIDC"); + throw new FHIRException("Cannot call addChild on a singleton property Device.carrierAIDC"); } else if (name.equals("carrierHRF")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.carrierHRF"); + throw new FHIRException("Cannot call addChild on a singleton property Device.carrierHRF"); } else if (name.equals("entryType")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.entryType"); + throw new FHIRException("Cannot call addChild on a singleton property Device.entryType"); } else return super.addChild(name); } @@ -1553,9 +1553,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.name"); + throw new FHIRException("Cannot call addChild on a singleton property Device.name"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.type"); + throw new FHIRException("Cannot call addChild on a singleton property Device.type"); } else return super.addChild(name); } @@ -1814,7 +1814,7 @@ public Base addChild(String name) throws FHIRException { this.systemType = new CodeableConcept(); return this.systemType; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.version"); + throw new FHIRException("Cannot call addChild on a singleton property Device.version"); } else return super.addChild(name); } @@ -2110,7 +2110,7 @@ public Base addChild(String name) throws FHIRException { this.component = new Identifier(); return this.component; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.value"); + throw new FHIRException("Cannot call addChild on a singleton property Device.value"); } else return super.addChild(name); } @@ -4652,27 +4652,27 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("udiCarrier")) { return addUdiCarrier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.status"); + throw new FHIRException("Cannot call addChild on a singleton property Device.status"); } else if (name.equals("statusReason")) { return addStatusReason(); } else if (name.equals("distinctIdentifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.distinctIdentifier"); + throw new FHIRException("Cannot call addChild on a singleton property Device.distinctIdentifier"); } else if (name.equals("manufacturer")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufacturer"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufacturer"); } else if (name.equals("manufactureDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufactureDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufactureDate"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.expirationDate"); } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.lotNumber"); } else if (name.equals("serialNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.serialNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.serialNumber"); } else if (name.equals("deviceName")) { return addDeviceName(); } else if (name.equals("modelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.modelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.modelNumber"); } else if (name.equals("partNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.partNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.partNumber"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -4694,7 +4694,7 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.url"); + throw new FHIRException("Cannot call addChild on a singleton property Device.url"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("safety")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceDefinition.java index 8293761a4b..82bfdf162b 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceDefinition.java @@ -569,11 +569,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("deviceIdentifier")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.deviceIdentifier"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.deviceIdentifier"); } else if (name.equals("issuer")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.issuer"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.issuer"); } else if (name.equals("jurisdiction")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.jurisdiction"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.jurisdiction"); } else return super.addChild(name); } @@ -856,9 +856,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.name"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.type"); } else return super.addChild(name); } @@ -1139,9 +1139,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("systemType")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.systemType"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.systemType"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.version"); } else return super.addChild(name); } @@ -2079,9 +2079,9 @@ public Base addChild(String name) throws FHIRException { this.substance = new CodeableConcept(); return this.substance; } else if (name.equals("alternate")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.alternate"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.alternate"); } else if (name.equals("allergenicIndicator")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.allergenicIndicator"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.allergenicIndicator"); } else return super.addChild(name); } @@ -3914,14 +3914,14 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("deviceName")) { return addDeviceName(); } else if (name.equals("modelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.modelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.modelNumber"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("specialization")) { return addSpecialization(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.version"); } else if (name.equals("safety")) { return addSafety(); } else if (name.equals("shelfLifeStorage")) { @@ -3941,9 +3941,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("contact")) { return addContact(); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.url"); } else if (name.equals("onlineInformation")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.onlineInformation"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.onlineInformation"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("quantity")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceMetric.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceMetric.java index 421176800b..1875785a75 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceMetric.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceMetric.java @@ -1233,11 +1233,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.type"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.type"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.state"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.state"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.time"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.time"); } else return super.addChild(name); } @@ -2210,11 +2210,11 @@ public Base addChild(String name) throws FHIRException { this.parent = new Reference(); return this.parent; } else if (name.equals("operationalStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.operationalStatus"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.operationalStatus"); } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.color"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.color"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.category"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.category"); } else if (name.equals("measurementPeriod")) { this.measurementPeriod = new Timing(); return this.measurementPeriod; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceRequest.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceRequest.java index 8dcc1e7e2e..a545ce9be1 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceRequest.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceRequest.java @@ -3183,9 +3183,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("priorRequest")) { @@ -3194,11 +3194,11 @@ public Base addChild(String name) throws FHIRException { this.groupIdentifier = new Identifier(); return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.priority"); } else if (name.equals("codeReference")) { this.code = new Reference(); return this.code; @@ -3223,7 +3223,7 @@ public Base addChild(String name) throws FHIRException { this.occurrence = new Timing(); return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceUseStatement.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceUseStatement.java index 6131aeee1a..e6a43d66a4 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceUseStatement.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DeviceUseStatement.java @@ -1446,7 +1446,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.status"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -1462,7 +1462,7 @@ public Base addChild(String name) throws FHIRException { this.timing = new DateTimeType(); return this.timing; } else if (name.equals("recordedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.recordedOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.recordedOn"); } else if (name.equals("source")) { this.source = new Reference(); return this.source; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DiagnosticReport.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DiagnosticReport.java index 181d13c275..5e0f131cd4 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DiagnosticReport.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DiagnosticReport.java @@ -590,7 +590,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.comment"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.comment"); } else if (name.equals("link")) { this.link = new Reference(); return this.link; @@ -2354,7 +2354,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("code")) { @@ -2373,7 +2373,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.issued"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.issued"); } else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("resultsInterpreter")) { @@ -2387,7 +2387,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("media")) { return addMedia(); } else if (name.equals("conclusion")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.conclusion"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.conclusion"); } else if (name.equals("conclusionCode")) { return addConclusionCode(); } else if (name.equals("presentedForm")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DocumentManifest.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DocumentManifest.java index 0f45683414..82e8ccd35b 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DocumentManifest.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DocumentManifest.java @@ -1398,7 +1398,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -1406,15 +1406,15 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.created"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.created"); } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("recipient")) { return addRecipient(); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.source"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.source"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.description"); } else if (name.equals("content")) { return addContent(); } else if (name.equals("related")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DocumentReference.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DocumentReference.java index 84431a1b35..ae05480a27 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DocumentReference.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/DocumentReference.java @@ -620,7 +620,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.code"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.code"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; @@ -2931,9 +2931,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.status"); } else if (name.equals("docStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.docStatus"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.docStatus"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2943,7 +2943,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.date"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.date"); } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("authenticator")) { @@ -2955,7 +2955,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatesTo")) { return addRelatesTo(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.description"); } else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("content")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Dosage.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Dosage.java index 2679d9822a..4e0c88d8d6 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Dosage.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Dosage.java @@ -1342,13 +1342,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.sequence"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.text"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.text"); } else if (name.equals("additionalInstruction")) { return addAdditionalInstruction(); } else if (name.equals("patientInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.patientInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.patientInstruction"); } else if (name.equals("timing")) { this.timing = new Timing(); return this.timing; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EffectEvidenceSynthesis.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EffectEvidenceSynthesis.java index faac023488..3e4a42aefa 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EffectEvidenceSynthesis.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EffectEvidenceSynthesis.java @@ -483,12 +483,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.description"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.description"); } else if (name.equals("numberOfStudies")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.numberOfStudies"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.numberOfStudies"); } else if (name.equals("numberOfParticipants")) { throw new FHIRException( - "Cannot call addChild on a primitive type EffectEvidenceSynthesis.numberOfParticipants"); + "Cannot call addChild on a singleton property EffectEvidenceSynthesis.numberOfParticipants"); } else return super.addChild(name); } @@ -919,9 +919,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.description"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.description"); } else if (name.equals("exposureState")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.exposureState"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.exposureState"); } else if (name.equals("variantState")) { this.variantState = new CodeableConcept(); return this.variantState; @@ -1455,7 +1455,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.description"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.description"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -1463,7 +1463,7 @@ public Base addChild(String name) throws FHIRException { this.variantState = new CodeableConcept(); return this.variantState; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.value"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.value"); } else if (name.equals("unitOfMeasure")) { this.unitOfMeasure = new CodeableConcept(); return this.unitOfMeasure; @@ -1933,11 +1933,11 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("level")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.level"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.level"); } else if (name.equals("from")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.from"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.from"); } else if (name.equals("to")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.to"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.to"); } else return super.addChild(name); } @@ -5399,25 +5399,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.url"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.version"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.name"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.title"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.status"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.date"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.description"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("useContext")) { @@ -5425,11 +5425,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EffectEvidenceSynthesis.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property EffectEvidenceSynthesis.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Element.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Element.java index 4b023dfac3..96a7e48419 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Element.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Element.java @@ -324,7 +324,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Element.id"); + throw new FHIRException("Cannot call addChild on a singleton property Element.id"); } else if (name.equals("extension")) { return addExtension(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ElementDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ElementDefinition.java index bb0e5565b3..7d0a1d4368 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ElementDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ElementDefinition.java @@ -1395,11 +1395,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("discriminator")) { return addDiscriminator(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.description"); } else if (name.equals("ordered")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.ordered"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.ordered"); } else if (name.equals("rules")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.rules"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.rules"); } else return super.addChild(name); } @@ -1698,9 +1698,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else return super.addChild(name); } @@ -2067,11 +2067,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max"); } else return super.addChild(name); } @@ -2739,15 +2739,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.code"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.profile"); } else if (name.equals("targetProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.targetProfile"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.targetProfile"); } else if (name.equals("aggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.aggregation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.aggregation"); } else if (name.equals("versioning")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.versioning"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.versioning"); } else return super.addChild(name); } @@ -3179,7 +3179,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.label"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.label"); } else if (name.equals("valueBase64Binary")) { this.value = new Base64BinaryType(); return this.value; @@ -4028,19 +4028,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("key")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.key"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.key"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.severity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.severity"); } else if (name.equals("human")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.human"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.human"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.expression"); } else if (name.equals("xpath")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.xpath"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.xpath"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.source"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.source"); } else return super.addChild(name); } @@ -4426,11 +4426,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.strength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.strength"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.description"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.valueSet"); } else return super.addChild(name); } @@ -4867,13 +4867,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.identity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.identity"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.language"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.language"); } else if (name.equals("map")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.map"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.map"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.comment"); } else return super.addChild(name); } @@ -8716,39 +8716,39 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else if (name.equals("representation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.representation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.representation"); } else if (name.equals("sliceName")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.sliceName"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.sliceName"); } else if (name.equals("sliceIsConstraining")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.sliceIsConstraining"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.sliceIsConstraining"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.label"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.label"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("slicing")) { this.slicing = new ElementDefinitionSlicingComponent(); return this.slicing; } else if (name.equals("short")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.short"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.short"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.definition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.definition"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.comment"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.alias"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.alias"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max"); } else if (name.equals("base")) { this.base = new ElementDefinitionBaseComponent(); return this.base; } else if (name.equals("contentReference")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.contentReference"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.contentReference"); } else if (name.equals("type")) { return addType(); } else if (name.equals("defaultValueBase64Binary")) { @@ -8902,9 +8902,9 @@ public Base addChild(String name) throws FHIRException { this.defaultValue = new Meta(); return this.defaultValue; } else if (name.equals("meaningWhenMissing")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.meaningWhenMissing"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.meaningWhenMissing"); } else if (name.equals("orderMeaning")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.orderMeaning"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.orderMeaning"); } else if (name.equals("fixedBase64Binary")) { this.fixed = new Base64BinaryType(); return this.fixed; @@ -9262,19 +9262,19 @@ public Base addChild(String name) throws FHIRException { this.maxValue = new Quantity(); return this.maxValue; } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.maxLength"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.condition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.condition"); } else if (name.equals("constraint")) { return addConstraint(); } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mustSupport"); } else if (name.equals("isModifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isModifier"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isModifier"); } else if (name.equals("isModifierReason")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isModifierReason"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isModifierReason"); } else if (name.equals("isSummary")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isSummary"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isSummary"); } else if (name.equals("binding")) { this.binding = new ElementDefinitionBindingComponent(); return this.binding; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Encounter.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Encounter.java index 7721fdaa27..d7ef66aebc 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Encounter.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Encounter.java @@ -689,7 +689,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1616,7 +1616,7 @@ public Base addChild(String name) throws FHIRException { this.use = new CodeableConcept(); return this.use; } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.rank"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.rank"); } else return super.addChild(name); } @@ -2797,7 +2797,7 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("physicalType")) { this.physicalType = new CodeableConcept(); return this.physicalType; @@ -4802,7 +4802,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); } else if (name.equals("class")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Endpoint.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Endpoint.java index abdd17dde4..8680c6f05d 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Endpoint.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Endpoint.java @@ -1201,12 +1201,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.status"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.status"); } else if (name.equals("connectionType")) { this.connectionType = new Coding(); return this.connectionType; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.name"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.name"); } else if (name.equals("managingOrganization")) { this.managingOrganization = new Reference(); return this.managingOrganization; @@ -1218,11 +1218,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("payloadType")) { return addPayloadType(); } else if (name.equals("payloadMimeType")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.payloadMimeType"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.payloadMimeType"); } else if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.address"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.address"); } else if (name.equals("header")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.header"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.header"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EnrollmentRequest.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EnrollmentRequest.java index d90657d985..adab20f2e7 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EnrollmentRequest.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EnrollmentRequest.java @@ -823,9 +823,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.status"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.created"); } else if (name.equals("insurer")) { this.insurer = new Reference(); return this.insurer; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EnrollmentResponse.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EnrollmentResponse.java index 6910d8a071..2191618d3f 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EnrollmentResponse.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EnrollmentResponse.java @@ -915,16 +915,16 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.status"); } else if (name.equals("request")) { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.disposition"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.created"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EpisodeOfCare.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EpisodeOfCare.java index 1e4547a7ee..b54cca4463 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EpisodeOfCare.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EpisodeOfCare.java @@ -485,7 +485,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -834,7 +834,7 @@ public Base addChild(String name) throws FHIRException { this.role = new CodeableConcept(); return this.role; } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.rank"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.rank"); } else return super.addChild(name); } @@ -1993,7 +1993,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); } else if (name.equals("type")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EventDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EventDefinition.java index 5bcaa60592..6ad7d18efd 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EventDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EventDefinition.java @@ -2409,21 +2409,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -2431,27 +2431,27 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Evidence.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Evidence.java index 128bfc134a..00d98941dd 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Evidence.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Evidence.java @@ -2476,29 +2476,29 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.url"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.version"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.name"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.title"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.title"); } else if (name.equals("shortTitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.shortTitle"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.shortTitle"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.status"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.date"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("useContext")) { @@ -2506,11 +2506,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EvidenceVariable.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EvidenceVariable.java index 6f35187d63..04e4e72b74 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EvidenceVariable.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/EvidenceVariable.java @@ -1215,7 +1215,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.description"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.description"); } else if (name.equals("definitionReference")) { this.definition = new Reference(); return this.definition; @@ -1237,7 +1237,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("usageContext")) { return addUsageContext(); } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.exclude"); } else if (name.equals("participantEffectiveDateTime")) { this.participantEffective = new DateTimeType(); return this.participantEffective; @@ -1254,7 +1254,7 @@ public Base addChild(String name) throws FHIRException { this.timeFromStart = new Duration(); return this.timeFromStart; } else if (name.equals("groupMeasure")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.groupMeasure"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.groupMeasure"); } else return super.addChild(name); } @@ -3607,29 +3607,29 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.url"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.version"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.name"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.title"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.title"); } else if (name.equals("shortTitle")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.shortTitle"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.shortTitle"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.status"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.date"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.description"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("useContext")) { @@ -3637,11 +3637,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -3658,7 +3658,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.type"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.type"); } else if (name.equals("characteristic")) { return addCharacteristic(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ExampleScenario.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ExampleScenario.java index 2d86053c85..ea9f2fb68f 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ExampleScenario.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ExampleScenario.java @@ -3863,13 +3863,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("actorId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actorId"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.actorId"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.type"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.description"); } else return super.addChild(name); } @@ -4459,13 +4459,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("resourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.resourceId"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.resourceId"); } else if (name.equals("resourceType")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.resourceType"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.resourceType"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.description"); } else if (name.equals("version")) { return addVersion(); } else if (name.equals("containedInstance")) { @@ -4762,9 +4762,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("versionId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.versionId"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.versionId"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.description"); } else return super.addChild(name); } @@ -5042,9 +5042,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("resourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.resourceId"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.resourceId"); } else if (name.equals("versionId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.versionId"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.versionId"); } else return super.addChild(name); } @@ -5553,13 +5553,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.title"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.description"); } else if (name.equals("preConditions")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.preConditions"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.preConditions"); } else if (name.equals("postConditions")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.postConditions"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.postConditions"); } else if (name.equals("step")) { return addStep(); } else @@ -5971,7 +5971,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("process")) { return addProcess(); } else if (name.equals("pause")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.pause"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.pause"); } else if (name.equals("operation")) { this.operation = new ExampleScenarioProcessStepOperationComponent(); return this.operation; @@ -6814,21 +6814,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.number"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.number"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.type"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.name"); } else if (name.equals("initiator")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.initiator"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.initiator"); } else if (name.equals("receiver")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.receiver"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.receiver"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.description"); } else if (name.equals("initiatorActive")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.initiatorActive"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.initiatorActive"); } else if (name.equals("receiverActive")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.receiverActive"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.receiverActive"); } else if (name.equals("request")) { this.request = new ExampleScenarioInstanceContainedInstanceComponent(); return this.request; @@ -7221,9 +7221,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.title"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.description"); } else if (name.equals("step")) { return addStep(); } else @@ -8747,21 +8747,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.url"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.version"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.status"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("useContext")) { @@ -8769,9 +8769,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.copyright"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.purpose"); } else if (name.equals("actor")) { return addActor(); } else if (name.equals("instance")) { @@ -8779,7 +8779,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("process")) { return addProcess(); } else if (name.equals("workflow")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.workflow"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.workflow"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ExplanationOfBenefit.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ExplanationOfBenefit.java index 79c14533e8..55a62742ae 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ExplanationOfBenefit.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ExplanationOfBenefit.java @@ -1490,12 +1490,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("provider")) { this.provider = new Reference(); return this.provider; } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.responsible"); } else if (name.equals("role")) { this.role = new CodeableConcept(); return this.role; @@ -2135,7 +2135,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -2661,7 +2661,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("diagnosisCodeableConcept")) { this.diagnosis = new CodeableConcept(); return this.diagnosis; @@ -3249,11 +3249,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("type")) { return addType(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.date"); } else if (name.equals("procedureCodeableConcept")) { this.procedure = new CodeableConcept(); return this.procedure; @@ -3678,12 +3678,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.focal"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.preAuthRef"); } else return super.addChild(name); } @@ -4034,7 +4034,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -6014,15 +6014,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("careTeamSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.careTeamSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.careTeamSequence"); } else if (name.equals("diagnosisSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.diagnosisSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.diagnosisSequence"); } else if (name.equals("procedureSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.procedureSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.procedureSequence"); } else if (name.equals("informationSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.informationSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.informationSequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -6058,7 +6058,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -6072,7 +6072,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("encounter")) { return addEncounter(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -6579,7 +6579,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.value"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.value"); } else return super.addChild(name); } @@ -7746,7 +7746,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -7767,14 +7767,14 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("udi")) { return addUdi(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("subDetail")) { @@ -8914,7 +8914,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.sequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -8935,14 +8935,14 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("udi")) { return addUdi(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else @@ -10572,11 +10572,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.itemSequence"); } else if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.detailSequence"); } else if (name.equals("subDetailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.subDetailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.subDetailSequence"); } else if (name.equals("provider")) { return addProvider(); } else if (name.equals("productOrService")) { @@ -10608,7 +10608,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -10618,7 +10618,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("subSite")) { return addSubSite(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -11503,12 +11503,12 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("subDetail")) { @@ -12267,12 +12267,12 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else @@ -13002,7 +13002,7 @@ public Base addChild(String name) throws FHIRException { this.adjustmentReason = new CodeableConcept(); return this.adjustmentReason; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.date"); } else if (name.equals("amount")) { this.amount = new Money(); return this.amount; @@ -13410,11 +13410,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.number"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.number"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.type"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.text"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.text"); } else if (name.equals("language")) { this.language = new CodeableConcept(); return this.language; @@ -14077,11 +14077,11 @@ public Base addChild(String name) throws FHIRException { this.category = new CodeableConcept(); return this.category; } else if (name.equals("excluded")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.excluded"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.excluded"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.description"); } else if (name.equals("network")) { this.network = new CodeableConcept(); return this.network; @@ -17809,7 +17809,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.status"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -17817,7 +17817,7 @@ public Base addChild(String name) throws FHIRException { this.subType = new CodeableConcept(); return this.subType; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.use"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.use"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -17825,7 +17825,7 @@ public Base addChild(String name) throws FHIRException { this.billablePeriod = new Period(); return this.billablePeriod; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.created"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); return this.enterer; @@ -17868,11 +17868,11 @@ public Base addChild(String name) throws FHIRException { this.claimResponse = new Reference(); return this.claimResponse; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.disposition"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.preAuthRef"); } else if (name.equals("preAuthRefPeriod")) { return addPreAuthRefPeriod(); } else if (name.equals("careTeam")) { @@ -17884,7 +17884,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("procedure")) { return addProcedure(); } else if (name.equals("precedence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.precedence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.precedence"); } else if (name.equals("insurance")) { return addInsurance(); } else if (name.equals("accident")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Expression.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Expression.java index 6047952f3d..7391bede62 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Expression.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Expression.java @@ -664,15 +664,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.description"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.description"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.name"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.name"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.language"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.language"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.expression"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.expression"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.reference"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Extension.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Extension.java index 1cd3c7ac43..c12198b724 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Extension.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Extension.java @@ -413,7 +413,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Extension.url"); + throw new FHIRException("Cannot call addChild on a singleton property Extension.url"); } else if (name.equals("valueBase64Binary")) { this.value = new Base64BinaryType(); return this.value; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/FamilyMemberHistory.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/FamilyMemberHistory.java index de14fce0ef..1e020cb89e 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/FamilyMemberHistory.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/FamilyMemberHistory.java @@ -727,7 +727,7 @@ public Base addChild(String name) throws FHIRException { this.outcome = new CodeableConcept(); return this.outcome; } else if (name.equals("contributedToDeath")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.contributedToDeath"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.contributedToDeath"); } else if (name.equals("onsetAge")) { this.onset = new Age(); return this.onset; @@ -2466,11 +2466,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.instantiatesUri"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.status"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.status"); } else if (name.equals("dataAbsentReason")) { this.dataAbsentReason = new CodeableConcept(); return this.dataAbsentReason; @@ -2478,9 +2478,9 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.date"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.date"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.name"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.name"); } else if (name.equals("relationship")) { this.relationship = new CodeableConcept(); return this.relationship; @@ -2506,7 +2506,7 @@ public Base addChild(String name) throws FHIRException { this.age = new StringType(); return this.age; } else if (name.equals("estimatedAge")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.estimatedAge"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.estimatedAge"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); return this.deceased; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Flag.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Flag.java index 374f70d53f..a44d77d400 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Flag.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Flag.java @@ -860,7 +860,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Flag.status"); + throw new FHIRException("Cannot call addChild on a singleton property Flag.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("code")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Goal.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Goal.java index a68740c2d9..21c590136d 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Goal.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Goal.java @@ -2219,7 +2219,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("lifecycleStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.lifecycleStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.lifecycleStatus"); } else if (name.equals("achievementStatus")) { this.achievementStatus = new CodeableConcept(); return this.achievementStatus; @@ -2243,9 +2243,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("target")) { return addTarget(); } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.statusDate"); } else if (name.equals("statusReason")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.statusReason"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.statusReason"); } else if (name.equals("expressedBy")) { this.expressedBy = new Reference(); return this.expressedBy; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/GraphDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/GraphDefinition.java index c8bab2a6a7..8052492a5d 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/GraphDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/GraphDefinition.java @@ -1046,15 +1046,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.path"); } else if (name.equals("sliceName")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.sliceName"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.sliceName"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.max"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.description"); } else if (name.equals("target")) { return addTarget(); } else @@ -1574,11 +1574,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.type"); } else if (name.equals("params")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.params"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.params"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.profile"); } else if (name.equals("compartment")) { return addCompartment(); } else if (name.equals("link")) { @@ -2114,15 +2114,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.use"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.code"); } else if (name.equals("rule")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.rule"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.rule"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.expression"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.description"); } else return super.addChild(name); } @@ -3442,33 +3442,33 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.purpose"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.start"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.start"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.profile"); } else if (name.equals("link")) { return addLink(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Group.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Group.java index ca3c55a21d..29fed66f16 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Group.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Group.java @@ -694,7 +694,7 @@ public Base addChild(String name) throws FHIRException { this.value = new Reference(); return this.value; } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property Group.exclude"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1052,7 +1052,7 @@ public Base addChild(String name) throws FHIRException { this.period = new Period(); return this.period; } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property Group.inactive"); } else return super.addChild(name); } @@ -1951,18 +1951,18 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.active"); + throw new FHIRException("Cannot call addChild on a singleton property Group.active"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.type"); + throw new FHIRException("Cannot call addChild on a singleton property Group.type"); } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.actual"); + throw new FHIRException("Cannot call addChild on a singleton property Group.actual"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.name"); + throw new FHIRException("Cannot call addChild on a singleton property Group.name"); } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property Group.quantity"); } else if (name.equals("managingEntity")) { this.managingEntity = new Reference(); return this.managingEntity; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/GuidanceResponse.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/GuidanceResponse.java index 2744ec6557..97d1d623bd 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/GuidanceResponse.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/GuidanceResponse.java @@ -1705,7 +1705,7 @@ public Base addChild(String name) throws FHIRException { this.module = new CodeableConcept(); return this.module; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.status"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -1713,7 +1713,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("occurrenceDateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.occurrenceDateTime"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.occurrenceDateTime"); } else if (name.equals("performer")) { this.performer = new Reference(); return this.performer; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/HealthcareService.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/HealthcareService.java index 33548d4c40..57f66394ce 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/HealthcareService.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/HealthcareService.java @@ -467,7 +467,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.comment"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.comment"); } else return super.addChild(name); } @@ -928,13 +928,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.allDay"); } else if (name.equals("availableStartTime")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableStartTime"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableStartTime"); } else if (name.equals("availableEndTime")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableEndTime"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableEndTime"); } else return super.addChild(name); } @@ -1199,7 +1199,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.description"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.description"); } else if (name.equals("during")) { this.during = new Period(); return this.during; @@ -3369,7 +3369,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.active"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.active"); } else if (name.equals("providedBy")) { this.providedBy = new Reference(); return this.providedBy; @@ -3382,11 +3382,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("location")) { return addLocation(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.name"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.name"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.comment"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.comment"); } else if (name.equals("extraDetails")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.extraDetails"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.extraDetails"); } else if (name.equals("photo")) { this.photo = new Attachment(); return this.photo; @@ -3407,13 +3407,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("referralMethod")) { return addReferralMethod(); } else if (name.equals("appointmentRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.appointmentRequired"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.appointmentRequired"); } else if (name.equals("availableTime")) { return addAvailableTime(); } else if (name.equals("notAvailable")) { return addNotAvailable(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availabilityExceptions"); } else if (name.equals("endpoint")) { return addEndpoint(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/HumanName.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/HumanName.java index 79357079af..8494edcb43 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/HumanName.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/HumanName.java @@ -1006,17 +1006,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.use"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.use"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.text"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.text"); } else if (name.equals("family")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.family"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.family"); } else if (name.equals("given")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.given"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.given"); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.prefix"); } else if (name.equals("suffix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.suffix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.suffix"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Identifier.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Identifier.java index dffc7ad310..f3b51b6d8d 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Identifier.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Identifier.java @@ -728,14 +728,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.use"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.use"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.system"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.value"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.value"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImagingStudy.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImagingStudy.java index 28b94de3c3..eb79349069 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImagingStudy.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImagingStudy.java @@ -1270,16 +1270,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.number"); } else if (name.equals("modality")) { this.modality = new Coding(); return this.modality; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances"); } else if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("bodySite")) { @@ -1291,7 +1291,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("specimen")) { return addSpecimen(); } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started"); } else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("instance")) { @@ -1984,14 +1984,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid"); } else if (name.equals("sopClass")) { this.sopClass = new Coding(); return this.sopClass; } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.number"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.title"); } else return super.addChild(name); } @@ -3851,7 +3851,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.status"); } else if (name.equals("modality")) { return addModality(); } else if (name.equals("subject")) { @@ -3861,7 +3861,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("referrer")) { @@ -3872,9 +3872,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("numberOfSeries")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfSeries"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfSeries"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances"); } else if (name.equals("procedureReference")) { this.procedureReference = new Reference(); return this.procedureReference; @@ -3890,7 +3890,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("note")) { return addNote(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description"); } else if (name.equals("series")) { return addSeries(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Immunization.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Immunization.java index 20b19e34a6..681a9c9646 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Immunization.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Immunization.java @@ -842,13 +842,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("documentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.documentType"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.documentType"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reference"); } else if (name.equals("publicationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.publicationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.publicationDate"); } else if (name.equals("presentationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.presentationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.presentationDate"); } else return super.addChild(name); } @@ -1196,12 +1196,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.date"); } else if (name.equals("detail")) { this.detail = new Reference(); return this.detail; } else if (name.equals("reported")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reported"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reported"); } else return super.addChild(name); } @@ -1760,7 +1760,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.series"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.series"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; @@ -4022,7 +4022,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.status"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; @@ -4042,9 +4042,9 @@ public Base addChild(String name) throws FHIRException { this.occurrence = new StringType(); return this.occurrence; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.recorded"); } else if (name.equals("primarySource")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.primarySource"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.primarySource"); } else if (name.equals("reportOrigin")) { this.reportOrigin = new CodeableConcept(); return this.reportOrigin; @@ -4055,9 +4055,9 @@ public Base addChild(String name) throws FHIRException { this.manufacturer = new Reference(); return this.manufacturer; } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.expirationDate"); } else if (name.equals("site")) { this.site = new CodeableConcept(); return this.site; @@ -4076,7 +4076,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("reasonReference")) { return addReasonReference(); } else if (name.equals("isSubpotent")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.isSubpotent"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.isSubpotent"); } else if (name.equals("subpotentReason")) { return addSubpotentReason(); } else if (name.equals("education")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImmunizationEvaluation.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImmunizationEvaluation.java index bcf540e1da..7f2766ce11 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImmunizationEvaluation.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImmunizationEvaluation.java @@ -1272,12 +1272,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.date"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; @@ -1293,9 +1293,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("doseStatusReason")) { return addDoseStatusReason(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.description"); } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.series"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.series"); } else if (name.equals("doseNumberPositiveInt")) { this.doseNumber = new PositiveIntType(); return this.doseNumber; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImmunizationRecommendation.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImmunizationRecommendation.java index 601496ce7e..262983e711 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImmunizationRecommendation.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImmunizationRecommendation.java @@ -1143,9 +1143,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("dateCriterion")) { return addDateCriterion(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.description"); } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.series"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.series"); } else if (name.equals("doseNumberPositiveInt")) { this.doseNumber = new PositiveIntType(); return this.doseNumber; @@ -1471,7 +1471,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.value"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.value"); } else return super.addChild(name); } @@ -1996,7 +1996,7 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.date"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImplementationGuide.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImplementationGuide.java index 118791f156..858dc24db9 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImplementationGuide.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ImplementationGuide.java @@ -12168,11 +12168,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.uri"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.uri"); } else if (name.equals("packageId")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.packageId"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.packageId"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.version"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.version"); } else return super.addChild(name); } @@ -12450,9 +12450,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.profile"); } else return super.addChild(name); } @@ -13267,9 +13267,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else return super.addChild(name); } @@ -13932,11 +13932,11 @@ public Base addChild(String name) throws FHIRException { this.reference = new Reference(); return this.reference; } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.fhirVersion"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("exampleBoolean")) { this.example = new BooleanType(); return this.example; @@ -13944,7 +13944,7 @@ public Base addChild(String name) throws FHIRException { this.example = new CanonicalType(); return this.example; } else if (name.equals("groupingId")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.groupingId"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.groupingId"); } else return super.addChild(name); } @@ -14417,9 +14417,9 @@ public Base addChild(String name) throws FHIRException { this.name = new Reference(); return this.name; } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.title"); } else if (name.equals("generation")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.generation"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.generation"); } else if (name.equals("page")) { return addPage(); } else @@ -14712,9 +14712,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.code"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.code"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.value"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.value"); } else return super.addChild(name); } @@ -15056,11 +15056,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.code"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.code"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.source"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.source"); } else if (name.equals("scope")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.scope"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.scope"); } else return super.addChild(name); } @@ -15615,15 +15615,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("rendering")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.rendering"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.rendering"); } else if (name.equals("resource")) { return addResource(); } else if (name.equals("page")) { return addPage(); } else if (name.equals("image")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.image"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.image"); } else if (name.equals("other")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.other"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.other"); } else return super.addChild(name); } @@ -16040,7 +16040,7 @@ public Base addChild(String name) throws FHIRException { this.example = new CanonicalType(); return this.example; } else if (name.equals("relativePath")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.relativePath"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.relativePath"); } else return super.addChild(name); } @@ -16398,11 +16398,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.title"); } else if (name.equals("anchor")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.anchor"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.anchor"); } else return super.addChild(name); } @@ -18134,37 +18134,37 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.version"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.copyright"); } else if (name.equals("packageId")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.packageId"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.packageId"); } else if (name.equals("license")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.license"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.license"); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.fhirVersion"); } else if (name.equals("dependsOn")) { return addDependsOn(); } else if (name.equals("global")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/InsurancePlan.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/InsurancePlan.java index 78191f79c4..7889fdc784 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/InsurancePlan.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/InsurancePlan.java @@ -1079,7 +1079,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("requirement")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.requirement"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.requirement"); } else if (name.equals("limit")) { return addLimit(); } else @@ -2344,12 +2344,12 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("groupSize")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.groupSize"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.groupSize"); } else if (name.equals("cost")) { this.cost = new Money(); return this.cost; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.comment"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.comment"); } else return super.addChild(name); } @@ -4598,13 +4598,13 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.status"); } else if (name.equals("type")) { return addType(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.name"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.alias"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.alias"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Invoice.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Invoice.java index 760ee39737..13c23d57a6 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Invoice.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Invoice.java @@ -1055,7 +1055,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.sequence"); } else if (name.equals("chargeItemReference")) { this.chargeItem = new Reference(); return this.chargeItem; @@ -1471,12 +1471,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.type"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.type"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.factor"); } else if (name.equals("amount")) { this.amount = new Money(); return this.amount; @@ -2803,9 +2803,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.status"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.status"); } else if (name.equals("cancelledReason")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.cancelledReason"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.cancelledReason"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2816,7 +2816,7 @@ public Base addChild(String name) throws FHIRException { this.recipient = new Reference(); return this.recipient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.date"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.date"); } else if (name.equals("participant")) { return addParticipant(); } else if (name.equals("issuer")) { @@ -2836,7 +2836,7 @@ public Base addChild(String name) throws FHIRException { this.totalGross = new Money(); return this.totalGross; } else if (name.equals("paymentTerms")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.paymentTerms"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.paymentTerms"); } else if (name.equals("note")) { return addNote(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Library.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Library.java index 291c88d989..d59c78d650 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Library.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Library.java @@ -2645,21 +2645,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.url"); + throw new FHIRException("Cannot call addChild on a singleton property Library.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.version"); + throw new FHIRException("Cannot call addChild on a singleton property Library.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.name"); + throw new FHIRException("Cannot call addChild on a singleton property Library.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.title"); + throw new FHIRException("Cannot call addChild on a singleton property Library.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property Library.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.status"); + throw new FHIRException("Cannot call addChild on a singleton property Library.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Library.experimental"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2670,27 +2670,27 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.date"); + throw new FHIRException("Cannot call addChild on a singleton property Library.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Library.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.description"); + throw new FHIRException("Cannot call addChild on a singleton property Library.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Library.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.usage"); + throw new FHIRException("Cannot call addChild on a singleton property Library.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Library.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Library.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Library.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Linkage.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Linkage.java index 90ff716ea4..aa06f563cf 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Linkage.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Linkage.java @@ -431,7 +431,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Linkage.type"); + throw new FHIRException("Cannot call addChild on a singleton property Linkage.type"); } else if (name.equals("resource")) { this.resource = new Reference(); return this.resource; @@ -801,7 +801,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Linkage.active"); + throw new FHIRException("Cannot call addChild on a singleton property Linkage.active"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ListResource.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ListResource.java index c4a60849e7..e842fd2721 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ListResource.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ListResource.java @@ -692,9 +692,9 @@ public Base addChild(String name) throws FHIRException { this.flag = new CodeableConcept(); return this.flag; } else if (name.equals("deleted")) { - throw new FHIRException("Cannot call addChild on a primitive type List.deleted"); + throw new FHIRException("Cannot call addChild on a singleton property List.deleted"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List.date"); + throw new FHIRException("Cannot call addChild on a singleton property List.date"); } else if (name.equals("item")) { this.item = new Reference(); return this.item; @@ -1777,11 +1777,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type List.status"); + throw new FHIRException("Cannot call addChild on a singleton property List.status"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type List.mode"); + throw new FHIRException("Cannot call addChild on a singleton property List.mode"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type List.title"); + throw new FHIRException("Cannot call addChild on a singleton property List.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -1792,7 +1792,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List.date"); + throw new FHIRException("Cannot call addChild on a singleton property List.date"); } else if (name.equals("source")) { this.source = new Reference(); return this.source; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Location.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Location.java index d5203cadd6..6dfece4d02 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Location.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Location.java @@ -934,11 +934,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("longitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.longitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.longitude"); } else if (name.equals("latitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.latitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.latitude"); } else if (name.equals("altitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.altitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.altitude"); } else return super.addChild(name); } @@ -1378,13 +1378,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property Location.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property Location.allDay"); } else if (name.equals("openingTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.openingTime"); + throw new FHIRException("Cannot call addChild on a singleton property Location.openingTime"); } else if (name.equals("closingTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.closingTime"); + throw new FHIRException("Cannot call addChild on a singleton property Location.closingTime"); } else return super.addChild(name); } @@ -2845,18 +2845,18 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.status"); + throw new FHIRException("Cannot call addChild on a singleton property Location.status"); } else if (name.equals("operationalStatus")) { this.operationalStatus = new Coding(); return this.operationalStatus; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.name"); + throw new FHIRException("Cannot call addChild on a singleton property Location.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Location.alias"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.description"); + throw new FHIRException("Cannot call addChild on a singleton property Location.description"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Location.mode"); } else if (name.equals("type")) { return addType(); } else if (name.equals("telecom")) { @@ -2879,7 +2879,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("hoursOfOperation")) { return addHoursOfOperation(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property Location.availabilityExceptions"); } else if (name.equals("endpoint")) { return addEndpoint(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MarketingStatus.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MarketingStatus.java index 54d653fd63..47800058d0 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MarketingStatus.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MarketingStatus.java @@ -483,7 +483,7 @@ public Base addChild(String name) throws FHIRException { this.dateRange = new Period(); return this.dateRange; } else if (name.equals("restoreDate")) { - throw new FHIRException("Cannot call addChild on a primitive type MarketingStatus.restoreDate"); + throw new FHIRException("Cannot call addChild on a singleton property MarketingStatus.restoreDate"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Measure.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Measure.java index f5fa9bebe1..1008d054b0 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Measure.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Measure.java @@ -431,7 +431,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("population")) { return addPopulation(); } else if (name.equals("stratifier")) { @@ -757,7 +757,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); return this.criteria; @@ -1163,7 +1163,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); return this.criteria; @@ -1503,7 +1503,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); return this.criteria; @@ -1928,7 +1928,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("usage")) { return addUsage(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); return this.criteria; @@ -5404,21 +5404,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.url"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.version"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.name"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.title"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.status"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -5426,27 +5426,27 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.date"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.usage"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -5463,9 +5463,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.library"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.library"); } else if (name.equals("disclaimer")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.disclaimer"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.disclaimer"); } else if (name.equals("scoring")) { this.scoring = new CodeableConcept(); return this.scoring; @@ -5475,20 +5475,20 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("type")) { return addType(); } else if (name.equals("riskAdjustment")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.riskAdjustment"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.riskAdjustment"); } else if (name.equals("rateAggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.rateAggregation"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.rateAggregation"); } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.rationale"); } else if (name.equals("clinicalRecommendationStatement")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.clinicalRecommendationStatement"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.clinicalRecommendationStatement"); } else if (name.equals("improvementNotation")) { this.improvementNotation = new CodeableConcept(); return this.improvementNotation; } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.definition"); } else if (name.equals("guidance")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.guidance"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.guidance"); } else if (name.equals("group")) { return addGroup(); } else if (name.equals("supplementalData")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MeasureReport.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MeasureReport.java index 15cbe1eeea..f9954853e8 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MeasureReport.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MeasureReport.java @@ -1045,7 +1045,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.count"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.count"); } else if (name.equals("subjectResults")) { this.subjectResults = new Reference(); return this.subjectResults; @@ -2312,7 +2312,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.count"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.count"); } else if (name.equals("subjectResults")) { this.subjectResults = new Reference(); return this.subjectResults; @@ -3313,16 +3313,16 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.status"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.type"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.type"); } else if (name.equals("measure")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.measure"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.measure"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.date"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.date"); } else if (name.equals("reporter")) { this.reporter = new Reference(); return this.reporter; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Media.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Media.java index 7c95d528bd..dc505e60f0 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Media.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Media.java @@ -2076,7 +2076,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.status"); + throw new FHIRException("Cannot call addChild on a singleton property Media.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2099,7 +2099,7 @@ public Base addChild(String name) throws FHIRException { this.created = new Period(); return this.created; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Media.issued"); } else if (name.equals("operator")) { this.operator = new Reference(); return this.operator; @@ -2109,18 +2109,18 @@ public Base addChild(String name) throws FHIRException { this.bodySite = new CodeableConcept(); return this.bodySite; } else if (name.equals("deviceName")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.deviceName"); + throw new FHIRException("Cannot call addChild on a singleton property Media.deviceName"); } else if (name.equals("device")) { this.device = new Reference(); return this.device; } else if (name.equals("height")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.height"); + throw new FHIRException("Cannot call addChild on a singleton property Media.height"); } else if (name.equals("width")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.width"); + throw new FHIRException("Cannot call addChild on a singleton property Media.width"); } else if (name.equals("frames")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.frames"); + throw new FHIRException("Cannot call addChild on a singleton property Media.frames"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Media.duration"); } else if (name.equals("content")) { this.content = new Attachment(); return this.content; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Medication.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Medication.java index c7576ec74c..398c5b6911 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Medication.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Medication.java @@ -509,7 +509,7 @@ public Base addChild(String name) throws FHIRException { this.item = new Reference(); return this.item; } else if (name.equals("isActive")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.isActive"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.isActive"); } else if (name.equals("strength")) { this.strength = new Ratio(); return this.strength; @@ -790,9 +790,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.expirationDate"); } else return super.addChild(name); } @@ -1467,7 +1467,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.status"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.status"); } else if (name.equals("manufacturer")) { this.manufacturer = new Reference(); return this.manufacturer; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationAdministration.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationAdministration.java index ba3da8c031..2fcd4b90e5 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationAdministration.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationAdministration.java @@ -1059,7 +1059,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.text"); } else if (name.equals("site")) { this.site = new CodeableConcept(); return this.site; @@ -2898,11 +2898,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiates")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.instantiates"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.instantiates"); } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.status"); } else if (name.equals("statusReason")) { return addStatusReason(); } else if (name.equals("category")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationDispense.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationDispense.java index a4e44f1f95..0826efa3f5 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationDispense.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationDispense.java @@ -983,7 +983,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("wasSubstituted")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.wasSubstituted"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.wasSubstituted"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -3146,7 +3146,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.status"); } else if (name.equals("statusReasonCodeableConcept")) { this.statusReason = new CodeableConcept(); return this.statusReason; @@ -3187,9 +3187,9 @@ public Base addChild(String name) throws FHIRException { this.daysSupply = new Quantity(); return this.daysSupply; } else if (name.equals("whenPrepared")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenPrepared"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenPrepared"); } else if (name.equals("whenHandedOver")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenHandedOver"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenHandedOver"); } else if (name.equals("destination")) { this.destination = new Reference(); return this.destination; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationKnowledge.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationKnowledge.java index be4b84e073..679b7a76d2 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationKnowledge.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationKnowledge.java @@ -1046,7 +1046,7 @@ public Base addChild(String name) throws FHIRException { this.item = new Reference(); return this.item; } else if (name.equals("isActive")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.isActive"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.isActive"); } else if (name.equals("strength")) { this.strength = new Ratio(); return this.strength; @@ -1358,7 +1358,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.source"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.source"); } else if (name.equals("cost")) { this.cost = new Money(); return this.cost; @@ -1608,7 +1608,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.name"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.name"); } else return super.addChild(name); } @@ -2599,7 +2599,7 @@ public Base addChild(String name) throws FHIRException { this.characteristic = new Quantity(); return this.characteristic; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.value"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.value"); } else return super.addChild(name); } @@ -4120,7 +4120,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("allowed")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.allowed"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.allowed"); } else return super.addChild(name); } @@ -6779,7 +6779,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.status"); } else if (name.equals("manufacturer")) { this.manufacturer = new Reference(); return this.manufacturer; @@ -6790,7 +6790,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Quantity(); return this.amount; } else if (name.equals("synonym")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.synonym"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.synonym"); } else if (name.equals("relatedMedicationKnowledge")) { return addRelatedMedicationKnowledge(); } else if (name.equals("associatedMedication")) { @@ -6802,7 +6802,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("ingredient")) { return addIngredient(); } else if (name.equals("preparationInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.preparationInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.preparationInstruction"); } else if (name.equals("intendedRoute")) { return addIntendedRoute(); } else if (name.equals("cost")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationRequest.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationRequest.java index 10fba58f62..10c7dd5566 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationRequest.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationRequest.java @@ -1249,7 +1249,7 @@ public Base addChild(String name) throws FHIRException { this.validityPeriod = new Period(); return this.validityPeriod; } else if (name.equals("numberOfRepeatsAllowed")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.numberOfRepeatsAllowed"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.numberOfRepeatsAllowed"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); return this.quantity; @@ -4628,18 +4628,18 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.doNotPerform"); } else if (name.equals("reportedBoolean")) { this.reported = new BooleanType(); return this.reported; @@ -4661,7 +4661,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("supportingInformation")) { return addSupportingInformation(); } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; @@ -4679,9 +4679,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("reasonReference")) { return addReasonReference(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("groupIdentifier")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationStatement.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationStatement.java index c579bd72b3..67cc40c9ef 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationStatement.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicationStatement.java @@ -1895,7 +1895,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.status"); } else if (name.equals("statusReason")) { return addStatusReason(); } else if (name.equals("category")) { @@ -1920,7 +1920,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("dateAsserted")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.dateAsserted"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.dateAsserted"); } else if (name.equals("informationSource")) { this.informationSource = new Reference(); return this.informationSource; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProduct.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProduct.java index d0a0753c75..06be650f3b 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProduct.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProduct.java @@ -356,7 +356,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("productName")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProduct.productName"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProduct.productName"); } else if (name.equals("namePart")) { return addNamePart(); } else if (name.equals("countryLanguage")) { @@ -618,7 +618,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("part")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProduct.part"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProduct.part"); } else if (name.equals("type")) { this.type = new Coding(); return this.type; @@ -1447,7 +1447,7 @@ public Base addChild(String name) throws FHIRException { this.authorisationReferenceNumber = new Identifier(); return this.authorisationReferenceNumber; } else if (name.equals("effectiveDate")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProduct.effectiveDate"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProduct.effectiveDate"); } else if (name.equals("confidentialityIndicator")) { this.confidentialityIndicator = new CodeableConcept(); return this.confidentialityIndicator; @@ -2049,7 +2049,7 @@ public Base addChild(String name) throws FHIRException { this.status = new CodeableConcept(); return this.status; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProduct.date"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProduct.date"); } else if (name.equals("species")) { this.species = new CodeableConcept(); return this.species; @@ -3817,7 +3817,7 @@ public Base addChild(String name) throws FHIRException { this.additionalMonitoringIndicator = new CodeableConcept(); return this.additionalMonitoringIndicator; } else if (name.equals("specialMeasures")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProduct.specialMeasures"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProduct.specialMeasures"); } else if (name.equals("paediatricUseIndicator")) { this.paediatricUseIndicator = new CodeableConcept(); return this.paediatricUseIndicator; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductAuthorization.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductAuthorization.java index 37d937f734..52e605c538 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductAuthorization.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductAuthorization.java @@ -2149,9 +2149,9 @@ public Base addChild(String name) throws FHIRException { this.status = new CodeableConcept(); return this.status; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductAuthorization.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductAuthorization.statusDate"); } else if (name.equals("restoreDate")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductAuthorization.restoreDate"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductAuthorization.restoreDate"); } else if (name.equals("validityPeriod")) { this.validityPeriod = new Period(); return this.validityPeriod; @@ -2160,10 +2160,10 @@ public Base addChild(String name) throws FHIRException { return this.dataExclusivityPeriod; } else if (name.equals("dateOfFirstAuthorization")) { throw new FHIRException( - "Cannot call addChild on a primitive type MedicinalProductAuthorization.dateOfFirstAuthorization"); + "Cannot call addChild on a singleton property MedicinalProductAuthorization.dateOfFirstAuthorization"); } else if (name.equals("internationalBirthDate")) { throw new FHIRException( - "Cannot call addChild on a primitive type MedicinalProductAuthorization.internationalBirthDate"); + "Cannot call addChild on a singleton property MedicinalProductAuthorization.internationalBirthDate"); } else if (name.equals("legalBasis")) { this.legalBasis = new CodeableConcept(); return this.legalBasis; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductIngredient.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductIngredient.java index 1c55f99edd..08e2166779 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductIngredient.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductIngredient.java @@ -979,7 +979,7 @@ public Base addChild(String name) throws FHIRException { this.concentrationLowLimit = new Ratio(); return this.concentrationLowLimit; } else if (name.equals("measurementPoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductIngredient.measurementPoint"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductIngredient.measurementPoint"); } else if (name.equals("country")) { return addCountry(); } else if (name.equals("referenceStrength")) { @@ -1456,7 +1456,7 @@ public Base addChild(String name) throws FHIRException { this.strengthLowLimit = new Ratio(); return this.strengthLowLimit; } else if (name.equals("measurementPoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductIngredient.measurementPoint"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductIngredient.measurementPoint"); } else if (name.equals("country")) { return addCountry(); } else @@ -2279,7 +2279,7 @@ public Base addChild(String name) throws FHIRException { return this.role; } else if (name.equals("allergenicIndicator")) { throw new FHIRException( - "Cannot call addChild on a primitive type MedicinalProductIngredient.allergenicIndicator"); + "Cannot call addChild on a singleton property MedicinalProductIngredient.allergenicIndicator"); } else if (name.equals("manufacturer")) { return addManufacturer(); } else if (name.equals("specifiedSubstance")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductInteraction.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductInteraction.java index 764c1c9d15..71b8bfcbfa 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductInteraction.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductInteraction.java @@ -801,7 +801,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("subject")) { return addSubject(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductInteraction.description"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductInteraction.description"); } else if (name.equals("interactant")) { return addInteractant(); } else if (name.equals("type")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductPackaged.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductPackaged.java index 734d63fcaa..bff87c3826 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductPackaged.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductPackaged.java @@ -2265,7 +2265,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("subject")) { return addSubject(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductPackaged.description"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductPackaged.description"); } else if (name.equals("legalStatusOfSupply")) { this.legalStatusOfSupply = new CodeableConcept(); return this.legalStatusOfSupply; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductPharmaceutical.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductPharmaceutical.java index 1c63e9d5b4..5ef6c89932 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductPharmaceutical.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MedicinalProductPharmaceutical.java @@ -1391,7 +1391,7 @@ public Base addChild(String name) throws FHIRException { return this.value; } else if (name.equals("supportingInformation")) { throw new FHIRException( - "Cannot call addChild on a primitive type MedicinalProductPharmaceutical.supportingInformation"); + "Cannot call addChild on a singleton property MedicinalProductPharmaceutical.supportingInformation"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MessageDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MessageDefinition.java index e098715f21..5646e9701e 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MessageDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MessageDefinition.java @@ -770,13 +770,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.code"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.profile"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.max"); } else return super.addChild(name); } @@ -1071,9 +1071,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.message"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.message"); } else if (name.equals("situation")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.situation"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.situation"); } else return super.addChild(name); } @@ -3180,41 +3180,41 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.title"); } else if (name.equals("replaces")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.replaces"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.replaces"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.copyright"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.base"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.base"); } else if (name.equals("parent")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.parent"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.parent"); } else if (name.equals("eventCoding")) { this.event = new Coding(); return this.event; @@ -3222,15 +3222,15 @@ public Base addChild(String name) throws FHIRException { this.event = new UriType(); return this.event; } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.category"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.category"); } else if (name.equals("focus")) { return addFocus(); } else if (name.equals("responseRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.responseRequired"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.responseRequired"); } else if (name.equals("allowedResponse")) { return addAllowedResponse(); } else if (name.equals("graph")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.graph"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.graph"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MessageHeader.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MessageHeader.java index 5216c1dd7b..75688937df 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MessageHeader.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MessageHeader.java @@ -595,12 +595,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.name"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.endpoint"); } else if (name.equals("receiver")) { this.receiver = new Reference(); return this.receiver; @@ -1096,16 +1096,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.name"); } else if (name.equals("software")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.software"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.software"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.version"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.version"); } else if (name.equals("contact")) { this.contact = new ContactPoint(); return this.contact; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.endpoint"); } else return super.addChild(name); } @@ -1479,9 +1479,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.identifier"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.code"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.code"); } else if (name.equals("details")) { this.details = new Reference(); return this.details; @@ -2522,7 +2522,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("focus")) { return addFocus(); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.definition"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.definition"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Meta.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Meta.java index cf1245990b..407487e139 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Meta.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Meta.java @@ -704,13 +704,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("versionId")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.versionId"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.versionId"); } else if (name.equals("lastUpdated")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.lastUpdated"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.lastUpdated"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.source"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.source"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.profile"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.profile"); } else if (name.equals("security")) { return addSecurity(); } else if (name.equals("tag")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MetadataResource.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MetadataResource.java index a7d5d574f6..1c8942390d 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MetadataResource.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MetadataResource.java @@ -1107,25 +1107,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.url"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.version"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.name"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.title"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.status"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.date"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type MetadataResource.description"); + throw new FHIRException("Cannot call addChild on a singleton property MetadataResource.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MolecularSequence.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MolecularSequence.java index 7b278dd213..24cdab4d59 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MolecularSequence.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/MolecularSequence.java @@ -1565,9 +1565,9 @@ public Base addChild(String name) throws FHIRException { this.chromosome = new CodeableConcept(); return this.chromosome; } else if (name.equals("genomeBuild")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.genomeBuild"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.genomeBuild"); } else if (name.equals("orientation")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.orientation"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.orientation"); } else if (name.equals("referenceSeqId")) { this.referenceSeqId = new CodeableConcept(); return this.referenceSeqId; @@ -1575,13 +1575,13 @@ public Base addChild(String name) throws FHIRException { this.referenceSeqPointer = new Reference(); return this.referenceSeqPointer; } else if (name.equals("referenceSeqString")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.referenceSeqString"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.referenceSeqString"); } else if (name.equals("strand")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.strand"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.strand"); } else if (name.equals("windowStart")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.windowStart"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.windowStart"); } else if (name.equals("windowEnd")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.windowEnd"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.windowEnd"); } else return super.addChild(name); } @@ -2278,15 +2278,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.start"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.end"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.end"); } else if (name.equals("observedAllele")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.observedAllele"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.observedAllele"); } else if (name.equals("referenceAllele")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.referenceAllele"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.referenceAllele"); } else if (name.equals("cigar")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.cigar"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.cigar"); } else if (name.equals("variantPointer")) { this.variantPointer = new Reference(); return this.variantPointer; @@ -3763,14 +3763,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.type"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.type"); } else if (name.equals("standardSequence")) { this.standardSequence = new CodeableConcept(); return this.standardSequence; } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.start"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.end"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.end"); } else if (name.equals("score")) { this.score = new Quantity(); return this.score; @@ -3778,21 +3778,21 @@ public Base addChild(String name) throws FHIRException { this.method = new CodeableConcept(); return this.method; } else if (name.equals("truthTP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.truthTP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.truthTP"); } else if (name.equals("queryTP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.queryTP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.queryTP"); } else if (name.equals("truthFN")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.truthFN"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.truthFN"); } else if (name.equals("queryFP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.queryFP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.queryFP"); } else if (name.equals("gtFP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.gtFP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.gtFP"); } else if (name.equals("precision")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.precision"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.precision"); } else if (name.equals("recall")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.recall"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.recall"); } else if (name.equals("fScore")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.fScore"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.fScore"); } else if (name.equals("roc")) { this.roc = new MolecularSequenceQualityRocComponent(); return this.roc; @@ -4582,19 +4582,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.score"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.score"); } else if (name.equals("numTP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.numTP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.numTP"); } else if (name.equals("numFP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.numFP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.numFP"); } else if (name.equals("numFN")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.numFN"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.numFN"); } else if (name.equals("precision")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.precision"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.precision"); } else if (name.equals("sensitivity")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.sensitivity"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.sensitivity"); } else if (name.equals("fMeasure")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.fMeasure"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.fMeasure"); } else return super.addChild(name); } @@ -5264,17 +5264,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.type"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.type"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.url"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.url"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.name"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.name"); } else if (name.equals("datasetId")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.datasetId"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.datasetId"); } else if (name.equals("variantsetId")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.variantsetId"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.variantsetId"); } else if (name.equals("readsetId")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.readsetId"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.readsetId"); } else return super.addChild(name); } @@ -5692,9 +5692,9 @@ public Base addChild(String name) throws FHIRException { this.variantType = new CodeableConcept(); return this.variantType; } else if (name.equals("exact")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.exact"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.exact"); } else if (name.equals("length")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.length"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.length"); } else if (name.equals("outer")) { this.outer = new MolecularSequenceStructureVariantOuterComponent(); return this.outer; @@ -5992,9 +5992,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.start"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.end"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.end"); } else return super.addChild(name); } @@ -6281,9 +6281,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.start"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.end"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.end"); } else return super.addChild(name); } @@ -7698,9 +7698,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.type"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.type"); } else if (name.equals("coordinateSystem")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.coordinateSystem"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.coordinateSystem"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -7722,11 +7722,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("variant")) { return addVariant(); } else if (name.equals("observedSeq")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.observedSeq"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.observedSeq"); } else if (name.equals("quality")) { return addQuality(); } else if (name.equals("readCoverage")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.readCoverage"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.readCoverage"); } else if (name.equals("repository")) { return addRepository(); } else if (name.equals("pointer")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Money.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Money.java index 00691fa4b7..dc621d723f 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Money.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Money.java @@ -283,9 +283,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Money.value"); + throw new FHIRException("Cannot call addChild on a singleton property Money.value"); } else if (name.equals("currency")) { - throw new FHIRException("Cannot call addChild on a primitive type Money.currency"); + throw new FHIRException("Cannot call addChild on a singleton property Money.currency"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/NamingSystem.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/NamingSystem.java index f09bcc9b01..05c44b7aee 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/NamingSystem.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/NamingSystem.java @@ -812,13 +812,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.type"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.type"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.value"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.value"); } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.preferred"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.comment"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.comment"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1947,30 +1947,30 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.kind"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.kind"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.responsible"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.usage"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.usage"); } else if (name.equals("uniqueId")) { return addUniqueId(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Narrative.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Narrative.java index 63b1812b3b..fa2d2ce3b5 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Narrative.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Narrative.java @@ -426,7 +426,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Narrative.status"); + throw new FHIRException("Cannot call addChild on a singleton property Narrative.status"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/NutritionOrder.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/NutritionOrder.java index c979aa3dd9..8b6c1c864a 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/NutritionOrder.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/NutritionOrder.java @@ -1135,7 +1135,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("fluidConsistencyType")) { return addFluidConsistencyType(); } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instruction"); } else return super.addChild(name); } @@ -2099,14 +2099,14 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("productName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.productName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.productName"); } else if (name.equals("schedule")) { return addSchedule(); } else if (name.equals("quantity")) { this.quantity = new Quantity(); return this.quantity; } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instruction"); } else return super.addChild(name); } @@ -2875,12 +2875,12 @@ public Base addChild(String name) throws FHIRException { this.baseFormulaType = new CodeableConcept(); return this.baseFormulaType; } else if (name.equals("baseFormulaProductName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.baseFormulaProductName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.baseFormulaProductName"); } else if (name.equals("additiveType")) { this.additiveType = new CodeableConcept(); return this.additiveType; } else if (name.equals("additiveProductName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.additiveProductName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.additiveProductName"); } else if (name.equals("caloricDensity")) { this.caloricDensity = new Quantity(); return this.caloricDensity; @@ -2893,7 +2893,7 @@ public Base addChild(String name) throws FHIRException { this.maxVolumeToDeliver = new Quantity(); return this.maxVolumeToDeliver; } else if (name.equals("administrationInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.administrationInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.administrationInstruction"); } else return super.addChild(name); } @@ -4824,15 +4824,15 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instantiatesUri"); } else if (name.equals("instantiates")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instantiates"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instantiates"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.intent"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.intent"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -4840,7 +4840,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.dateTime"); } else if (name.equals("orderer")) { this.orderer = new Reference(); return this.orderer; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Observation.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Observation.java index 59b4589947..7129bec305 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Observation.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Observation.java @@ -805,7 +805,7 @@ public Base addChild(String name) throws FHIRException { this.age = new Range(); return this.age; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.text"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.text"); } else return super.addChild(name); } @@ -4036,7 +4036,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.status"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("code")) { @@ -4063,7 +4063,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new InstantType(); return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.issued"); } else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("valueQuantity")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ObservationDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ObservationDefinition.java index 5e71365346..a102a4e312 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ObservationDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ObservationDefinition.java @@ -868,9 +868,9 @@ public Base addChild(String name) throws FHIRException { this.unit = new CodeableConcept(); return this.unit; } else if (name.equals("conversionFactor")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.conversionFactor"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.conversionFactor"); } else if (name.equals("decimalPrecision")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.decimalPrecision"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.decimalPrecision"); } else return super.addChild(name); } @@ -1533,7 +1533,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.category"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.category"); } else if (name.equals("range")) { this.range = new Range(); return this.range; @@ -1543,7 +1543,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("appliesTo")) { return addAppliesTo(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.gender"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.gender"); } else if (name.equals("age")) { this.age = new Range(); return this.age; @@ -1551,7 +1551,7 @@ public Base addChild(String name) throws FHIRException { this.gestationalAge = new Range(); return this.gestationalAge; } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.condition"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.condition"); } else return super.addChild(name); } @@ -2720,14 +2720,14 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("permittedDataType")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.permittedDataType"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.permittedDataType"); } else if (name.equals("multipleResultsAllowed")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.multipleResultsAllowed"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.multipleResultsAllowed"); } else if (name.equals("method")) { this.method = new CodeableConcept(); return this.method; } else if (name.equals("preferredReportName")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.preferredReportName"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.preferredReportName"); } else if (name.equals("quantitativeDetails")) { this.quantitativeDetails = new ObservationDefinitionQuantitativeDetailsComponent(); return this.quantitativeDetails; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OperationDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OperationDefinition.java index edb860c8f2..f9004e7eec 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OperationDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OperationDefinition.java @@ -1264,21 +1264,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.use"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type"); } else if (name.equals("targetProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.targetProfile"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.targetProfile"); } else if (name.equals("searchType")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.searchType"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.searchType"); } else if (name.equals("binding")) { this.binding = new OperationDefinitionParameterBindingComponent(); return this.binding; @@ -1613,9 +1613,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.strength"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.strength"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.valueSet"); } else return super.addChild(name); } @@ -1910,9 +1910,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.source"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.source"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.sourceId"); } else return super.addChild(name); } @@ -2193,9 +2193,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("parameterName")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameterName"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameterName"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.comment"); } else return super.addChild(name); } @@ -4435,53 +4435,53 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.kind"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.purpose"); } else if (name.equals("affectsState")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.affectsState"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.affectsState"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.code"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.comment"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.base"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.base"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.resource"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.resource"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.system"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.system"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type"); } else if (name.equals("instance")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.instance"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.instance"); } else if (name.equals("inputProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.inputProfile"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.inputProfile"); } else if (name.equals("outputProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.outputProfile"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.outputProfile"); } else if (name.equals("parameter")) { return addParameter(); } else if (name.equals("overload")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OperationOutcome.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OperationOutcome.java index a5f2527271..1a9050b5ca 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OperationOutcome.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OperationOutcome.java @@ -1546,18 +1546,18 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.severity"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.severity"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.code"); } else if (name.equals("details")) { this.details = new CodeableConcept(); return this.details; } else if (name.equals("diagnostics")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.diagnostics"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.diagnostics"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.location"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.location"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.expression"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.expression"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Organization.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Organization.java index 403f2e0416..556614a324 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Organization.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Organization.java @@ -1306,13 +1306,13 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.active"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.active"); } else if (name.equals("type")) { return addType(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.name"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.alias"); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("address")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OrganizationAffiliation.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OrganizationAffiliation.java index eeb3d37902..1873d0dd5f 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OrganizationAffiliation.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/OrganizationAffiliation.java @@ -1181,7 +1181,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type OrganizationAffiliation.active"); + throw new FHIRException("Cannot call addChild on a singleton property OrganizationAffiliation.active"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ParameterDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ParameterDefinition.java index bffa2941f0..0e69f2f907 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ParameterDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ParameterDefinition.java @@ -799,19 +799,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.use"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.profile"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Parameters.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Parameters.java index 5d5bd5f42e..a7655d367c 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Parameters.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Parameters.java @@ -438,7 +438,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Parameters.name"); + throw new FHIRException("Cannot call addChild on a singleton property Parameters.name"); } else if (name.equals("valueBase64Binary")) { this.value = new Base64BinaryType(); return this.value; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Patient.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Patient.java index c449638a91..571651af79 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Patient.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Patient.java @@ -785,7 +785,7 @@ public Base addChild(String name) throws FHIRException { this.address = new Address(); return this.address; } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.gender"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; @@ -1081,7 +1081,7 @@ public Base addChild(String name) throws FHIRException { this.language = new CodeableConcept(); return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.preferred"); } else return super.addChild(name); } @@ -1366,7 +1366,7 @@ public Base addChild(String name) throws FHIRException { this.other = new Reference(); return this.other; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.type"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.type"); } else return super.addChild(name); } @@ -2812,15 +2812,15 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.active"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.active"); } else if (name.equals("name")) { return addName(); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.birthDate"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); return this.deceased; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PaymentNotice.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PaymentNotice.java index f00e56b8d2..3da9d32f03 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PaymentNotice.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PaymentNotice.java @@ -1161,7 +1161,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.status"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.status"); } else if (name.equals("request")) { this.request = new Reference(); return this.request; @@ -1169,7 +1169,7 @@ public Base addChild(String name) throws FHIRException { this.response = new Reference(); return this.response; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.created"); } else if (name.equals("provider")) { this.provider = new Reference(); return this.provider; @@ -1177,7 +1177,7 @@ public Base addChild(String name) throws FHIRException { this.payment = new Reference(); return this.payment; } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.paymentDate"); } else if (name.equals("payee")) { this.payee = new Reference(); return this.payee; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PaymentReconciliation.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PaymentReconciliation.java index ce17a09728..15159c2a95 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PaymentReconciliation.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PaymentReconciliation.java @@ -980,7 +980,7 @@ public Base addChild(String name) throws FHIRException { this.response = new Reference(); return this.response; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.date"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.date"); } else if (name.equals("responsible")) { this.responsible = new Reference(); return this.responsible; @@ -1274,9 +1274,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.type"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.text"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.text"); } else return super.addChild(name); } @@ -2463,12 +2463,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.status"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.created"); } else if (name.equals("paymentIssuer")) { this.paymentIssuer = new Reference(); return this.paymentIssuer; @@ -2479,11 +2479,11 @@ public Base addChild(String name) throws FHIRException { this.requestor = new Reference(); return this.requestor; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.disposition"); } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.paymentDate"); } else if (name.equals("paymentAmount")) { this.paymentAmount = new Money(); return this.paymentAmount; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Period.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Period.java index 7615a4a79e..4ca31bc28f 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Period.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Period.java @@ -310,9 +310,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.start"); + throw new FHIRException("Cannot call addChild on a singleton property Period.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.end"); + throw new FHIRException("Cannot call addChild on a singleton property Period.end"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Person.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Person.java index a93b886277..c363cb1480 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Person.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Person.java @@ -454,7 +454,7 @@ public Base addChild(String name) throws FHIRException { this.target = new Reference(); return this.target; } else if (name.equals("assurance")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.assurance"); + throw new FHIRException("Cannot call addChild on a singleton property Person.assurance"); } else return super.addChild(name); } @@ -1330,9 +1330,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Person.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Person.birthDate"); } else if (name.equals("address")) { return addAddress(); } else if (name.equals("photo")) { @@ -1342,7 +1342,7 @@ public Base addChild(String name) throws FHIRException { this.managingOrganization = new Reference(); return this.managingOrganization; } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.active"); + throw new FHIRException("Cannot call addChild on a singleton property Person.active"); } else if (name.equals("link")) { return addLink(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PlanDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PlanDefinition.java index be926b1ddf..707990f051 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PlanDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PlanDefinition.java @@ -4950,15 +4950,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.prefix"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.description"); } else if (name.equals("textEquivalent")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.textEquivalent"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.textEquivalent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.priority"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.priority"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("reason")) { @@ -4966,7 +4966,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("documentation")) { return addDocumentation(); } else if (name.equals("goalId")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.goalId"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.goalId"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -5007,21 +5007,21 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("groupingBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.groupingBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.groupingBehavior"); } else if (name.equals("selectionBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.selectionBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.selectionBehavior"); } else if (name.equals("requiredBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.requiredBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.requiredBehavior"); } else if (name.equals("precheckBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.precheckBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.precheckBehavior"); } else if (name.equals("cardinalityBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.cardinalityBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.cardinalityBehavior"); } else if (name.equals("definitionCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.definition[x]"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.definition[x]"); } else if (name.equals("definitionUri")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.definition[x]"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.definition[x]"); } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.transform"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.transform"); } else if (name.equals("dynamicValue")) { return addDynamicValue(); } else if (name.equals("action")) { @@ -5387,7 +5387,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.kind"); } else if (name.equals("expression")) { this.expression = new Expression(); return this.expression; @@ -5766,9 +5766,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("actionId")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.actionId"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.actionId"); } else if (name.equals("relationship")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.relationship"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.relationship"); } else if (name.equals("offsetDuration")) { this.offset = new Duration(); return this.offset; @@ -6026,7 +6026,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.type"); } else if (name.equals("role")) { this.role = new CodeableConcept(); return this.role; @@ -6317,7 +6317,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.path"); } else if (name.equals("expression")) { this.expression = new Expression(); return this.expression; @@ -8968,24 +8968,24 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.subtitle"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -8993,27 +8993,27 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -9030,7 +9030,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.library"); } else if (name.equals("goal")) { return addGoal(); } else if (name.equals("action")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Practitioner.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Practitioner.java index b8e71cc329..d34a033e38 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Practitioner.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Practitioner.java @@ -1330,7 +1330,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.active"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.active"); } else if (name.equals("name")) { return addName(); } else if (name.equals("telecom")) { @@ -1338,9 +1338,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("address")) { return addAddress(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.birthDate"); } else if (name.equals("photo")) { return addPhoto(); } else if (name.equals("qualification")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PractitionerRole.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PractitionerRole.java index dd395f556b..42b8f1b2af 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PractitionerRole.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/PractitionerRole.java @@ -683,13 +683,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.allDay"); } else if (name.equals("availableStartTime")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availableStartTime"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availableStartTime"); } else if (name.equals("availableEndTime")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availableEndTime"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availableEndTime"); } else return super.addChild(name); } @@ -954,7 +954,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.description"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.description"); } else if (name.equals("during")) { this.during = new Period(); return this.during; @@ -2276,7 +2276,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.active"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.active"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -2301,7 +2301,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("notAvailable")) { return addNotAvailable(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availabilityExceptions"); } else if (name.equals("endpoint")) { return addEndpoint(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Procedure.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Procedure.java index 293c89d19c..ff936307c9 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Procedure.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Procedure.java @@ -3416,15 +3416,15 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.status"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ProdCharacteristic.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ProdCharacteristic.java index e5205d236d..3392542a54 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ProdCharacteristic.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ProdCharacteristic.java @@ -902,11 +902,11 @@ public Base addChild(String name) throws FHIRException { this.externalDiameter = new Quantity(); return this.externalDiameter; } else if (name.equals("shape")) { - throw new FHIRException("Cannot call addChild on a primitive type ProdCharacteristic.shape"); + throw new FHIRException("Cannot call addChild on a singleton property ProdCharacteristic.shape"); } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type ProdCharacteristic.color"); + throw new FHIRException("Cannot call addChild on a singleton property ProdCharacteristic.color"); } else if (name.equals("imprint")) { - throw new FHIRException("Cannot call addChild on a primitive type ProdCharacteristic.imprint"); + throw new FHIRException("Cannot call addChild on a singleton property ProdCharacteristic.imprint"); } else if (name.equals("image")) { return addImage(); } else if (name.equals("scoring")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Provenance.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Provenance.java index ffe3aec5f1..3dd2f0b693 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Provenance.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Provenance.java @@ -1000,7 +1000,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("role")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.role"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.role"); } else if (name.equals("what")) { this.what = new Reference(); return this.what; @@ -1965,9 +1965,9 @@ public Base addChild(String name) throws FHIRException { this.occurred = new DateTimeType(); return this.occurred; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.recorded"); } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.policy"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.policy"); } else if (name.equals("location")) { this.location = new Reference(); return this.location; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Quantity.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Quantity.java index 7bbe541a96..75b5486746 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Quantity.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Quantity.java @@ -769,15 +769,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.value"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.value"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.comparator"); } else if (name.equals("unit")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.unit"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.unit"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.system"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.system"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.code"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.code"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Questionnaire.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Questionnaire.java index 2ffe634903..50abdc18c6 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Questionnaire.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Questionnaire.java @@ -2315,31 +2315,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.linkId"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.definition"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.prefix"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.text"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.text"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.type"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.type"); } else if (name.equals("enableWhen")) { return addEnableWhen(); } else if (name.equals("enableBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.enableBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.enableBehavior"); } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.required"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.required"); } else if (name.equals("repeats")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.repeats"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.repeats"); } else if (name.equals("readOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.readOnly"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.readOnly"); } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.maxLength"); } else if (name.equals("answerValueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.answerValueSet"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.answerValueSet"); } else if (name.equals("answerOption")) { return addAnswerOption(); } else if (name.equals("initial")) { @@ -2969,9 +2969,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("question")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.question"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.question"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.operator"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.operator"); } else if (name.equals("answerBoolean")) { this.answer = new BooleanType(); return this.answer; @@ -3401,7 +3401,7 @@ public Base addChild(String name) throws FHIRException { this.value = new Reference(); return this.value; } else if (name.equals("initialSelected")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.initialSelected"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.initialSelected"); } else return super.addChild(name); } @@ -5769,43 +5769,43 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.url"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.version"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.name"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.title"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.title"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.derivedFrom"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.status"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.experimental"); } else if (name.equals("subjectType")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.subjectType"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.subjectType"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.date"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.description"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/QuestionnaireResponse.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/QuestionnaireResponse.java index 4c87a00492..f96b0d600f 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/QuestionnaireResponse.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/QuestionnaireResponse.java @@ -716,11 +716,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.linkId"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.definition"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.definition"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.text"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.text"); } else if (name.equals("answer")) { return addAnswer(); } else if (name.equals("item")) { @@ -2346,9 +2346,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("questionnaire")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.questionnaire"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.questionnaire"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.status"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -2356,7 +2356,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("authored")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.authored"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.authored"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Reference.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Reference.java index 44da2c8810..383df6530b 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Reference.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Reference.java @@ -557,14 +557,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.reference"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.type"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.type"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.display"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.display"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RelatedArtifact.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RelatedArtifact.java index 184df3227c..8a4a3306d8 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RelatedArtifact.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RelatedArtifact.java @@ -918,20 +918,20 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.type"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.type"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.label"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.label"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.display"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.display"); } else if (name.equals("citation")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.citation"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.citation"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.url"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.url"); } else if (name.equals("document")) { this.document = new Attachment(); return this.document; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.resource"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.resource"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RelatedPerson.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RelatedPerson.java index 8bc89d8ee9..72e4d9040e 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RelatedPerson.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RelatedPerson.java @@ -276,7 +276,7 @@ public Base addChild(String name) throws FHIRException { this.language = new CodeableConcept(); return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.preferred"); } else return super.addChild(name); } @@ -1330,7 +1330,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.active"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.active"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -1341,9 +1341,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.gender"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.birthDate"); } else if (name.equals("address")) { return addAddress(); } else if (name.equals("photo")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RequestGroup.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RequestGroup.java index edd507d9d6..bc129b33b2 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RequestGroup.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RequestGroup.java @@ -3565,15 +3565,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.prefix"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.title"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.description"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.description"); } else if (name.equals("textEquivalent")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.textEquivalent"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.textEquivalent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.priority"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.priority"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("documentation")) { @@ -3606,15 +3606,15 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("groupingBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.groupingBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.groupingBehavior"); } else if (name.equals("selectionBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.selectionBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.selectionBehavior"); } else if (name.equals("requiredBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.requiredBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.requiredBehavior"); } else if (name.equals("precheckBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.precheckBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.precheckBehavior"); } else if (name.equals("cardinalityBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.cardinalityBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.cardinalityBehavior"); } else if (name.equals("resource")) { this.resource = new Reference(); return this.resource; @@ -3937,7 +3937,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.kind"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.kind"); } else if (name.equals("expression")) { this.expression = new Expression(); return this.expression; @@ -4315,9 +4315,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("actionId")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.actionId"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.actionId"); } else if (name.equals("relationship")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.relationship"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.relationship"); } else if (name.equals("offsetDuration")) { this.offset = new Duration(); return this.offset; @@ -5933,9 +5933,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("replaces")) { @@ -5944,11 +5944,11 @@ public Base addChild(String name) throws FHIRException { this.groupIdentifier = new Identifier(); return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.status"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.intent"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.priority"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.priority"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -5959,7 +5959,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.authoredOn"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchDefinition.java index d32d947592..6b79ef8890 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchDefinition.java @@ -2994,23 +2994,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.title"); } else if (name.equals("shortTitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.shortTitle"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.shortTitle"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -3018,29 +3018,29 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.description"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.comment"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -3057,7 +3057,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.library"); } else if (name.equals("population")) { this.population = new Reference(); return this.population; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchElementDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchElementDefinition.java index 2a454fb0d1..3e46b21882 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchElementDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchElementDefinition.java @@ -1733,13 +1733,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("usageContext")) { return addUsageContext(); } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.exclude"); } else if (name.equals("unitOfMeasure")) { this.unitOfMeasure = new CodeableConcept(); return this.unitOfMeasure; } else if (name.equals("studyEffectiveDescription")) { throw new FHIRException( - "Cannot call addChild on a primitive type ResearchElementDefinition.studyEffectiveDescription"); + "Cannot call addChild on a singleton property ResearchElementDefinition.studyEffectiveDescription"); } else if (name.equals("studyEffectiveDateTime")) { this.studyEffective = new DateTimeType(); return this.studyEffective; @@ -1757,10 +1757,10 @@ public Base addChild(String name) throws FHIRException { return this.studyEffectiveTimeFromStart; } else if (name.equals("studyEffectiveGroupMeasure")) { throw new FHIRException( - "Cannot call addChild on a primitive type ResearchElementDefinition.studyEffectiveGroupMeasure"); + "Cannot call addChild on a singleton property ResearchElementDefinition.studyEffectiveGroupMeasure"); } else if (name.equals("participantEffectiveDescription")) { throw new FHIRException( - "Cannot call addChild on a primitive type ResearchElementDefinition.participantEffectiveDescription"); + "Cannot call addChild on a singleton property ResearchElementDefinition.participantEffectiveDescription"); } else if (name.equals("participantEffectiveDateTime")) { this.participantEffective = new DateTimeType(); return this.participantEffective; @@ -1778,7 +1778,7 @@ public Base addChild(String name) throws FHIRException { return this.participantEffectiveTimeFromStart; } else if (name.equals("participantEffectiveGroupMeasure")) { throw new FHIRException( - "Cannot call addChild on a primitive type ResearchElementDefinition.participantEffectiveGroupMeasure"); + "Cannot call addChild on a singleton property ResearchElementDefinition.participantEffectiveGroupMeasure"); } else return super.addChild(name); } @@ -4706,23 +4706,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.title"); } else if (name.equals("shortTitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.shortTitle"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.shortTitle"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -4730,29 +4730,29 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.description"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.comment"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -4769,11 +4769,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.library"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.type"); } else if (name.equals("variableType")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.variableType"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.variableType"); } else if (name.equals("characteristic")) { return addCharacteristic(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchStudy.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchStudy.java index fe17268967..490e7257c6 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchStudy.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchStudy.java @@ -649,12 +649,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.description"); } else return super.addChild(name); } @@ -898,7 +898,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -3002,13 +3002,13 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.title"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.title"); } else if (name.equals("protocol")) { return addProtocol(); } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.status"); } else if (name.equals("primaryPurposeType")) { this.primaryPurposeType = new CodeableConcept(); return this.primaryPurposeType; @@ -3030,7 +3030,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("location")) { return addLocation(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.description"); } else if (name.equals("enrollment")) { return addEnrollment(); } else if (name.equals("period")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchSubject.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchSubject.java index bfef9989e0..d7e0527c30 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchSubject.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ResearchSubject.java @@ -1090,7 +1090,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1101,9 +1101,9 @@ public Base addChild(String name) throws FHIRException { this.individual = new Reference(); return this.individual; } else if (name.equals("assignedArm")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.assignedArm"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.assignedArm"); } else if (name.equals("actualArm")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.actualArm"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.actualArm"); } else if (name.equals("consent")) { this.consent = new Reference(); return this.consent; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Resource.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Resource.java index 8a12d36245..cc5976287e 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Resource.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Resource.java @@ -440,14 +440,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.id"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.id"); } else if (name.equals("meta")) { this.meta = new Meta(); return this.meta; } else if (name.equals("implicitRules")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.implicitRules"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.implicitRules"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.language"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.language"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RiskAssessment.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RiskAssessment.java index cdae58d3a6..24668d8a57 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RiskAssessment.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RiskAssessment.java @@ -887,7 +887,7 @@ public Base addChild(String name) throws FHIRException { this.qualitativeRisk = new CodeableConcept(); return this.qualitativeRisk; } else if (name.equals("relativeRisk")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.relativeRisk"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.relativeRisk"); } else if (name.equals("whenPeriod")) { this.when = new Period(); return this.when; @@ -895,7 +895,7 @@ public Base addChild(String name) throws FHIRException { this.when = new Range(); return this.when; } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.rationale"); } else return super.addChild(name); } @@ -2372,7 +2372,7 @@ public Base addChild(String name) throws FHIRException { this.parent = new Reference(); return this.parent; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.status"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.status"); } else if (name.equals("method")) { this.method = new CodeableConcept(); return this.method; @@ -2406,7 +2406,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("prediction")) { return addPrediction(); } else if (name.equals("mitigation")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.mitigation"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.mitigation"); } else if (name.equals("note")) { return addNote(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RiskEvidenceSynthesis.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RiskEvidenceSynthesis.java index d2407dd9c7..ba5acd7a78 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RiskEvidenceSynthesis.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/RiskEvidenceSynthesis.java @@ -359,11 +359,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.description"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.description"); } else if (name.equals("numberOfStudies")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.numberOfStudies"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.numberOfStudies"); } else if (name.equals("numberOfParticipants")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.numberOfParticipants"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.numberOfParticipants"); } else return super.addChild(name); } @@ -988,19 +988,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.description"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.description"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.value"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.value"); } else if (name.equals("unitOfMeasure")) { this.unitOfMeasure = new CodeableConcept(); return this.unitOfMeasure; } else if (name.equals("denominatorCount")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.denominatorCount"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.denominatorCount"); } else if (name.equals("numeratorCount")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.numeratorCount"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.numeratorCount"); } else if (name.equals("precisionEstimate")) { return addPrecisionEstimate(); } else @@ -1468,11 +1468,11 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("level")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.level"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.level"); } else if (name.equals("from")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.from"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.from"); } else if (name.equals("to")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.to"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.to"); } else return super.addChild(name); } @@ -4718,25 +4718,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.url"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.version"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.name"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.title"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.status"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.date"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.description"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("useContext")) { @@ -4744,11 +4744,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskEvidenceSynthesis.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property RiskEvidenceSynthesis.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SampledData.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SampledData.java index 4e9118dd82..4bad0f4b27 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SampledData.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SampledData.java @@ -780,17 +780,17 @@ public Base addChild(String name) throws FHIRException { this.origin = new Quantity(); return this.origin; } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.period"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.period"); } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.factor"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.factor"); } else if (name.equals("lowerLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.lowerLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.lowerLimit"); } else if (name.equals("upperLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.upperLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.upperLimit"); } else if (name.equals("dimensions")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.dimensions"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.dimensions"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.data"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.data"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Schedule.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Schedule.java index 6987eb2fde..a711a57780 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Schedule.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Schedule.java @@ -776,7 +776,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.active"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.active"); } else if (name.equals("serviceCategory")) { return addServiceCategory(); } else if (name.equals("serviceType")) { @@ -789,7 +789,7 @@ public Base addChild(String name) throws FHIRException { this.planningHorizon = new Period(); return this.planningHorizon; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SearchParameter.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SearchParameter.java index 156c47d1b1..6a9d6e345f 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SearchParameter.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SearchParameter.java @@ -1079,9 +1079,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.definition"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.definition"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.expression"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.expression"); } else return super.addChild(name); } @@ -3390,55 +3390,55 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.url"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.version"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.name"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.derivedFrom"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.status"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.date"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.description"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.purpose"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.code"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.code"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.base"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.base"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.type"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.type"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.expression"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.expression"); } else if (name.equals("xpath")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.xpath"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.xpath"); } else if (name.equals("xpathUsage")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.xpathUsage"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.xpathUsage"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.target"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.target"); } else if (name.equals("multipleOr")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.multipleOr"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.multipleOr"); } else if (name.equals("multipleAnd")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.multipleAnd"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.multipleAnd"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.comparator"); } else if (name.equals("modifier")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.modifier"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.modifier"); } else if (name.equals("chain")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.chain"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.chain"); } else if (name.equals("component")) { return addComponent(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ServiceRequest.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ServiceRequest.java index 91c01b7775..014fce55f1 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ServiceRequest.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ServiceRequest.java @@ -3780,9 +3780,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("replaces")) { @@ -3791,15 +3791,15 @@ public Base addChild(String name) throws FHIRException { this.requisition = new Identifier(); return this.requisition; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.doNotPerform"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -3836,7 +3836,7 @@ public Base addChild(String name) throws FHIRException { this.asNeeded = new CodeableConcept(); return this.asNeeded; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; @@ -3864,7 +3864,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("note")) { return addNote(); } else if (name.equals("patientInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.patientInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.patientInstruction"); } else if (name.equals("relevantHistory")) { return addRelevantHistory(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Signature.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Signature.java index bd26bc18c0..0c8d128f97 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Signature.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Signature.java @@ -722,7 +722,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("type")) { return addType(); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.when"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.when"); } else if (name.equals("who")) { this.who = new Reference(); return this.who; @@ -730,11 +730,11 @@ public Base addChild(String name) throws FHIRException { this.onBehalfOf = new Reference(); return this.onBehalfOf; } else if (name.equals("targetFormat")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.targetFormat"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.targetFormat"); } else if (name.equals("sigFormat")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.sigFormat"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.sigFormat"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.data"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.data"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Slot.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Slot.java index 10417ef952..0c3b968dc3 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Slot.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Slot.java @@ -1176,15 +1176,15 @@ public Base addChild(String name) throws FHIRException { this.schedule = new Reference(); return this.schedule; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.status"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.status"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.start"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.end"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.end"); } else if (name.equals("overbooked")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.overbooked"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.overbooked"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Specimen.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Specimen.java index 6a2c7a7da6..8021664988 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Specimen.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Specimen.java @@ -1252,7 +1252,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.description"); } else if (name.equals("procedure")) { this.procedure = new CodeableConcept(); return this.procedure; @@ -1808,7 +1808,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.description"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2980,7 +2980,7 @@ public Base addChild(String name) throws FHIRException { this.accessionIdentifier = new Identifier(); return this.accessionIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.status"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2988,7 +2988,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("receivedTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.receivedTime"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.receivedTime"); } else if (name.equals("parent")) { return addParent(); } else if (name.equals("request")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SpecimenDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SpecimenDefinition.java index 25b4053406..81c8cabab6 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SpecimenDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SpecimenDefinition.java @@ -797,17 +797,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("isDerived")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.isDerived"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.isDerived"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("preference")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.preference"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.preference"); } else if (name.equals("container")) { this.container = new SpecimenDefinitionTypeTestedContainerComponent(); return this.container; } else if (name.equals("requirement")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.requirement"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.requirement"); } else if (name.equals("retentionTime")) { this.retentionTime = new Duration(); return this.retentionTime; @@ -1498,7 +1498,7 @@ public Base addChild(String name) throws FHIRException { this.cap = new CodeableConcept(); return this.cap; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.description"); } else if (name.equals("capacity")) { this.capacity = new Quantity(); return this.capacity; @@ -1511,7 +1511,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("additive")) { return addAdditive(); } else if (name.equals("preparation")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.preparation"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.preparation"); } else return super.addChild(name); } @@ -2137,7 +2137,7 @@ public Base addChild(String name) throws FHIRException { this.maxDuration = new Duration(); return this.maxDuration; } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.instruction"); } else return super.addChild(name); } @@ -2687,7 +2687,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("patientPreparation")) { return addPatientPreparation(); } else if (name.equals("timeAspect")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.timeAspect"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.timeAspect"); } else if (name.equals("collection")) { return addCollection(); } else if (name.equals("typeTested")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/StructureDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/StructureDefinition.java index ceb39ae0e8..c567dd8e67 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/StructureDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/StructureDefinition.java @@ -897,13 +897,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.identity"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.identity"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.uri"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.uri"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.comment"); } else return super.addChild(name); } @@ -1191,9 +1191,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.type"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.expression"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.expression"); } else return super.addChild(name); } @@ -3928,55 +3928,55 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.copyright"); } else if (name.equals("keyword")) { return addKeyword(); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.fhirVersion"); } else if (name.equals("mapping")) { return addMapping(); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.kind"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.abstract"); } else if (name.equals("context")) { return addContext(); } else if (name.equals("contextInvariant")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.contextInvariant"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.contextInvariant"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.type"); } else if (name.equals("baseDefinition")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.baseDefinition"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.baseDefinition"); } else if (name.equals("derivation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.derivation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.derivation"); } else if (name.equals("snapshot")) { this.snapshot = new StructureDefinitionSnapshotComponent(); return this.snapshot; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/StructureMap.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/StructureMap.java index db4e85dd8e..81313652ed 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/StructureMap.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/StructureMap.java @@ -1760,13 +1760,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.url"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.mode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.mode"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.alias"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.alias"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else return super.addChild(name); } @@ -2372,13 +2372,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("extends")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.extends"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.extends"); } else if (name.equals("typeMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.typeMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.typeMode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else if (name.equals("input")) { return addInput(); } else if (name.equals("rule")) { @@ -2829,13 +2829,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.type"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.mode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else return super.addChild(name); } @@ -3423,7 +3423,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("source")) { return addSource(); } else if (name.equals("target")) { @@ -3433,7 +3433,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("dependent")) { return addDependent(); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.documentation"); } else return super.addChild(name); } @@ -4550,13 +4550,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.context"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.min"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.max"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.max"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.type"); } else if (name.equals("defaultValueBase64Binary")) { this.defaultValue = new Base64BinaryType(); return this.defaultValue; @@ -4708,17 +4708,17 @@ public Base addChild(String name) throws FHIRException { this.defaultValue = new Meta(); return this.defaultValue; } else if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.element"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.element"); } else if (name.equals("listMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.listMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.listMode"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.variable"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.condition"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.condition"); } else if (name.equals("check")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.check"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.check"); } else if (name.equals("logMessage")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.logMessage"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.logMessage"); } else return super.addChild(name); } @@ -5490,19 +5490,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.context"); } else if (name.equals("contextType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.contextType"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.contextType"); } else if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.element"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.element"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.variable"); } else if (name.equals("listMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.listMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.listMode"); } else if (name.equals("listRuleId")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.listRuleId"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.listRuleId"); } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.transform"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.transform"); } else if (name.equals("parameter")) { return addParameter(); } else @@ -6109,9 +6109,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.variable"); } else return super.addChild(name); } @@ -7688,39 +7688,39 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.title"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.copyright"); } else if (name.equals("structure")) { return addStructure(); } else if (name.equals("import")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.import"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.import"); } else if (name.equals("group")) { return addGroup(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Subscription.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Subscription.java index 29932caa88..e72e9263a8 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Subscription.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Subscription.java @@ -819,13 +819,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.type"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.type"); } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.endpoint"); } else if (name.equals("payload")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.payload"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.payload"); } else if (name.equals("header")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.header"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.header"); } else return super.addChild(name); } @@ -1484,17 +1484,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.status"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.status"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.end"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.end"); } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.reason"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.reason"); } else if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.criteria"); } else if (name.equals("error")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.error"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.error"); } else if (name.equals("channel")) { this.channel = new SubscriptionChannelComponent(); return this.channel; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Substance.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Substance.java index e4d3b06464..dc57681a3c 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Substance.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Substance.java @@ -445,7 +445,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.expiry"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.expiry"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); return this.quantity; @@ -1387,14 +1387,14 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.status"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.description"); } else if (name.equals("instance")) { return addInstance(); } else if (name.equals("ingredient")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceAmount.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceAmount.java index 8e2400b9fd..5097b724b6 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceAmount.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceAmount.java @@ -674,7 +674,7 @@ public Base addChild(String name) throws FHIRException { this.amountType = new CodeableConcept(); return this.amountType; } else if (name.equals("amountText")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceAmount.amountText"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceAmount.amountText"); } else if (name.equals("referenceRange")) { this.referenceRange = new SubstanceAmountReferenceRangeComponent(); return this.referenceRange; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceNucleicAcid.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceNucleicAcid.java index 10797de0f7..83394dea7c 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceNucleicAcid.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceNucleicAcid.java @@ -699,11 +699,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("subunit")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.subunit"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.subunit"); } else if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.sequence"); } else if (name.equals("length")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.length"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.length"); } else if (name.equals("sequenceAttachment")) { this.sequenceAttachment = new Attachment(); return this.sequenceAttachment; @@ -1172,14 +1172,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("connectivity")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.connectivity"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.connectivity"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.name"); } else if (name.equals("residueSite")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.residueSite"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.residueSite"); } else return super.addChild(name); } @@ -1526,9 +1526,9 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.name"); } else if (name.equals("residueSite")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.residueSite"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.residueSite"); } else return super.addChild(name); } @@ -2027,9 +2027,9 @@ public Base addChild(String name) throws FHIRException { this.sequenceType = new CodeableConcept(); return this.sequenceType; } else if (name.equals("numberOfSubunits")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.numberOfSubunits"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.numberOfSubunits"); } else if (name.equals("areaOfHybridisation")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.areaOfHybridisation"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.areaOfHybridisation"); } else if (name.equals("oligoNucleotideType")) { this.oligoNucleotideType = new CodeableConcept(); return this.oligoNucleotideType; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstancePolymer.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstancePolymer.java index 9289fbdbd2..eadc751f0e 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstancePolymer.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstancePolymer.java @@ -585,7 +585,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("isDefining")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.isDefining"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.isDefining"); } else if (name.equals("amount")) { this.amount = new SubstanceAmount(); return this.amount; @@ -982,9 +982,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("numberOfUnits")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.numberOfUnits"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.numberOfUnits"); } else if (name.equals("averageMolecularFormula")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.averageMolecularFormula"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.averageMolecularFormula"); } else if (name.equals("repeatUnitAmountType")) { this.repeatUnitAmountType = new CodeableConcept(); return this.repeatUnitAmountType; @@ -1458,7 +1458,7 @@ public Base addChild(String name) throws FHIRException { this.orientationOfPolymerisation = new CodeableConcept(); return this.orientationOfPolymerisation; } else if (name.equals("repeatUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.repeatUnit"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.repeatUnit"); } else if (name.equals("amount")) { this.amount = new SubstanceAmount(); return this.amount; @@ -1992,7 +1992,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("representation")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.representation"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.representation"); } else if (name.equals("attachment")) { this.attachment = new Attachment(); return this.attachment; @@ -2529,7 +2529,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("copolymerConnectivity")) { return addCopolymerConnectivity(); } else if (name.equals("modification")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.modification"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.modification"); } else if (name.equals("monomerSet")) { return addMonomerSet(); } else if (name.equals("repeat")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceProtein.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceProtein.java index bf4ab6900c..2608f8a3f6 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceProtein.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceProtein.java @@ -757,11 +757,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("subunit")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.subunit"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.subunit"); } else if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.sequence"); } else if (name.equals("length")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.length"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.length"); } else if (name.equals("sequenceAttachment")) { this.sequenceAttachment = new Attachment(); return this.sequenceAttachment; @@ -769,12 +769,12 @@ public Base addChild(String name) throws FHIRException { this.nTerminalModificationId = new Identifier(); return this.nTerminalModificationId; } else if (name.equals("nTerminalModification")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.nTerminalModification"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.nTerminalModification"); } else if (name.equals("cTerminalModificationId")) { this.cTerminalModificationId = new Identifier(); return this.cTerminalModificationId; } else if (name.equals("cTerminalModification")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.cTerminalModification"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.cTerminalModification"); } else return super.addChild(name); } @@ -1268,9 +1268,9 @@ public Base addChild(String name) throws FHIRException { this.sequenceType = new CodeableConcept(); return this.sequenceType; } else if (name.equals("numberOfSubunits")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.numberOfSubunits"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.numberOfSubunits"); } else if (name.equals("disulfideLinkage")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.disulfideLinkage"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.disulfideLinkage"); } else if (name.equals("subunit")) { return addSubunit(); } else diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceReferenceInformation.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceReferenceInformation.java index 32d83bfe8b..354c2e7257 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceReferenceInformation.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceReferenceInformation.java @@ -2206,7 +2206,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceReferenceInformation.comment"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceReferenceInformation.comment"); } else if (name.equals("gene")) { return addGene(); } else if (name.equals("geneElement")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceSourceMaterial.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceSourceMaterial.java index 2a53020618..e415e4d196 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceSourceMaterial.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceSourceMaterial.java @@ -274,7 +274,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("fraction")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.fraction"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.fraction"); } else if (name.equals("materialType")) { this.materialType = new CodeableConcept(); return this.materialType; @@ -890,7 +890,7 @@ public Base addChild(String name) throws FHIRException { return this.intraspecificType; } else if (name.equals("intraspecificDescription")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubstanceSourceMaterial.intraspecificDescription"); + "Cannot call addChild on a singleton property SubstanceSourceMaterial.intraspecificDescription"); } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("hybrid")) { @@ -1195,7 +1195,7 @@ public Base addChild(String name) throws FHIRException { this.authorType = new CodeableConcept(); return this.authorType; } else if (name.equals("authorDescription")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.authorDescription"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.authorDescription"); } else return super.addChild(name); } @@ -1728,15 +1728,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("maternalOrganismId")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.maternalOrganismId"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.maternalOrganismId"); } else if (name.equals("maternalOrganismName")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubstanceSourceMaterial.maternalOrganismName"); + "Cannot call addChild on a singleton property SubstanceSourceMaterial.maternalOrganismName"); } else if (name.equals("paternalOrganismId")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.paternalOrganismId"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.paternalOrganismId"); } else if (name.equals("paternalOrganismName")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubstanceSourceMaterial.paternalOrganismName"); + "Cannot call addChild on a singleton property SubstanceSourceMaterial.paternalOrganismName"); } else if (name.equals("hybridType")) { this.hybridType = new CodeableConcept(); return this.hybridType; @@ -3386,15 +3386,15 @@ public Base addChild(String name) throws FHIRException { this.organismId = new Identifier(); return this.organismId; } else if (name.equals("organismName")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.organismName"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.organismName"); } else if (name.equals("parentSubstanceId")) { return addParentSubstanceId(); } else if (name.equals("parentSubstanceName")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.parentSubstanceName"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.parentSubstanceName"); } else if (name.equals("countryOfOrigin")) { return addCountryOfOrigin(); } else if (name.equals("geographicalLocation")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.geographicalLocation"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.geographicalLocation"); } else if (name.equals("developmentStage")) { this.developmentStage = new CodeableConcept(); return this.developmentStage; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceSpecification.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceSpecification.java index d302752242..ee10fe546a 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceSpecification.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SubstanceSpecification.java @@ -555,7 +555,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.name"); } else if (name.equals("stereochemistry")) { this.stereochemistry = new CodeableConcept(); return this.stereochemistry; @@ -563,7 +563,7 @@ public Base addChild(String name) throws FHIRException { this.opticalActivity = new CodeableConcept(); return this.opticalActivity; } else if (name.equals("molecularFormula")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.molecularFormula"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.molecularFormula"); } else if (name.equals("amountQuantity")) { this.amount = new Quantity(); return this.amount; @@ -1077,7 +1077,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("parameters")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.parameters"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.parameters"); } else if (name.equals("definingSubstanceReference")) { this.definingSubstance = new Reference(); return this.definingSubstance; @@ -1797,10 +1797,10 @@ public Base addChild(String name) throws FHIRException { this.opticalActivity = new CodeableConcept(); return this.opticalActivity; } else if (name.equals("molecularFormula")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.molecularFormula"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.molecularFormula"); } else if (name.equals("molecularFormulaByMoiety")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubstanceSpecification.molecularFormulaByMoiety"); + "Cannot call addChild on a singleton property SubstanceSpecification.molecularFormulaByMoiety"); } else if (name.equals("isotope")) { return addIsotope(); } else if (name.equals("molecularWeight")) { @@ -2819,7 +2819,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("representation")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.representation"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.representation"); } else if (name.equals("attachment")) { this.attachment = new Attachment(); return this.attachment; @@ -3305,9 +3305,9 @@ public Base addChild(String name) throws FHIRException { this.status = new CodeableConcept(); return this.status; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.statusDate"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.comment"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.comment"); } else if (name.equals("source")) { return addSource(); } else @@ -4265,7 +4265,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -4273,7 +4273,7 @@ public Base addChild(String name) throws FHIRException { this.status = new CodeableConcept(); return this.status; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.preferred"); } else if (name.equals("language")) { return addLanguage(); } else if (name.equals("domain")) { @@ -4629,7 +4629,7 @@ public Base addChild(String name) throws FHIRException { this.status = new CodeableConcept(); return this.status; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.date"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.date"); } else return super.addChild(name); } @@ -5342,7 +5342,7 @@ public Base addChild(String name) throws FHIRException { this.relationship = new CodeableConcept(); return this.relationship; } else if (name.equals("isDefining")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.isDefining"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.isDefining"); } else if (name.equals("amountQuantity")) { this.amount = new Quantity(); return this.amount; @@ -6886,11 +6886,11 @@ public Base addChild(String name) throws FHIRException { this.domain = new CodeableConcept(); return this.domain; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.description"); } else if (name.equals("source")) { return addSource(); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSpecification.comment"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSpecification.comment"); } else if (name.equals("moiety")) { return addMoiety(); } else if (name.equals("property")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SupplyDelivery.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SupplyDelivery.java index fa0d8b42c5..6fbd9dc717 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SupplyDelivery.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SupplyDelivery.java @@ -1486,7 +1486,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyDelivery.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyDelivery.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SupplyRequest.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SupplyRequest.java index 2384f6589e..227218d003 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SupplyRequest.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/SupplyRequest.java @@ -2048,12 +2048,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.priority"); } else if (name.equals("itemCodeableConcept")) { this.item = new CodeableConcept(); return this.item; @@ -2075,7 +2075,7 @@ public Base addChild(String name) throws FHIRException { this.occurrence = new Timing(); return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Task.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Task.java index 69e2fa5593..246c09ac17 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Task.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Task.java @@ -1093,7 +1093,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("repetitions")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.repetitions"); + throw new FHIRException("Cannot call addChild on a singleton property Task.repetitions"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -4608,9 +4608,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property Task.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Task.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("groupIdentifier")) { @@ -4619,7 +4619,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.status"); + throw new FHIRException("Cannot call addChild on a singleton property Task.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; @@ -4627,14 +4627,14 @@ public Base addChild(String name) throws FHIRException { this.businessStatus = new CodeableConcept(); return this.businessStatus; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.intent"); + throw new FHIRException("Cannot call addChild on a singleton property Task.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Task.priority"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.description"); + throw new FHIRException("Cannot call addChild on a singleton property Task.description"); } else if (name.equals("focus")) { this.focus = new Reference(); return this.focus; @@ -4648,9 +4648,9 @@ public Base addChild(String name) throws FHIRException { this.executionPeriod = new Period(); return this.executionPeriod; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property Task.authoredOn"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Task.lastModified"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TerminologyCapabilities.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TerminologyCapabilities.java index 9f95948d56..0e42b52793 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TerminologyCapabilities.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TerminologyCapabilities.java @@ -553,9 +553,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.name"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.name"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.version"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.version"); } else return super.addChild(name); } @@ -837,9 +837,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.description"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.description"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.url"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.url"); } else return super.addChild(name); } @@ -1189,11 +1189,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.uri"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.uri"); } else if (name.equals("version")) { return addVersion(); } else if (name.equals("subsumption")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.subsumption"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.subsumption"); } else return super.addChild(name); } @@ -1801,17 +1801,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.code"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.code"); } else if (name.equals("isDefault")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.isDefault"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.isDefault"); } else if (name.equals("compositional")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.compositional"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.compositional"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.language"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.language"); } else if (name.equals("filter")) { return addFilter(); } else if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.property"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.property"); } else return super.addChild(name); } @@ -2117,9 +2117,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.code"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.code"); } else if (name.equals("op")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.op"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.op"); } else return super.addChild(name); } @@ -2619,15 +2619,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("hierarchical")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.hierarchical"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.hierarchical"); } else if (name.equals("paging")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.paging"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.paging"); } else if (name.equals("incomplete")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.incomplete"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.incomplete"); } else if (name.equals("parameter")) { return addParameter(); } else if (name.equals("textFilter")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.textFilter"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.textFilter"); } else return super.addChild(name); } @@ -2913,9 +2913,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.name"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.name"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.documentation"); } else return super.addChild(name); } @@ -3114,7 +3114,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("translations")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.translations"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.translations"); } else return super.addChild(name); } @@ -3312,7 +3312,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("needsMap")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.needsMap"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.needsMap"); } else return super.addChild(name); } @@ -3501,7 +3501,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("translation")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.translation"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.translation"); } else return super.addChild(name); } @@ -5422,35 +5422,35 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.url"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.version"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.name"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.title"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.status"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.date"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.description"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.copyright"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.kind"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.kind"); } else if (name.equals("software")) { this.software = new TerminologyCapabilitiesSoftwareComponent(); return this.software; @@ -5458,14 +5458,14 @@ public Base addChild(String name) throws FHIRException { this.implementation = new TerminologyCapabilitiesImplementationComponent(); return this.implementation; } else if (name.equals("lockedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.lockedDate"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.lockedDate"); } else if (name.equals("codeSystem")) { return addCodeSystem(); } else if (name.equals("expansion")) { this.expansion = new TerminologyCapabilitiesExpansionComponent(); return this.expansion; } else if (name.equals("codeSearch")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSearch"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSearch"); } else if (name.equals("validateCode")) { this.validateCode = new TerminologyCapabilitiesValidateCodeComponent(); return this.validateCode; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TestReport.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TestReport.java index b9ccb5cb0d..a42bbde4e4 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TestReport.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TestReport.java @@ -991,11 +991,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.type"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.type"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.uri"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.uri"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.display"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.display"); } else return super.addChild(name); } @@ -1765,11 +1765,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.result"); } else if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.message"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.message"); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.detail"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.detail"); } else return super.addChild(name); } @@ -2124,11 +2124,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.result"); } else if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.message"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.message"); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.detail"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.detail"); } else return super.addChild(name); } @@ -2491,9 +2491,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.description"); } else if (name.equals("action")) { return addAction(); } else @@ -4121,20 +4121,20 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.status"); } else if (name.equals("testScript")) { this.testScript = new Reference(); return this.testScript; } else if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.result"); } else if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.score"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.score"); } else if (name.equals("tester")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.tester"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.tester"); } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.issued"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.issued"); } else if (name.equals("participant")) { return addParticipant(); } else if (name.equals("setup")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TestScript.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TestScript.java index 1513711ca7..a2a1cc32d2 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TestScript.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TestScript.java @@ -1225,7 +1225,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("index")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.index"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.index"); } else if (name.equals("profile")) { this.profile = new Coding(); return this.profile; @@ -1485,7 +1485,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("index")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.index"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.index"); } else if (name.equals("profile")) { this.profile = new Coding(); return this.profile; @@ -2056,9 +2056,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else return super.addChild(name); } @@ -2778,19 +2778,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.required"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.required"); } else if (name.equals("validated")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.validated"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.validated"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("origin")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.origin"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.origin"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination"); } else if (name.equals("link")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.link"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.link"); } else if (name.equals("capabilities")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.capabilities"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.capabilities"); } else return super.addChild(name); } @@ -3203,9 +3203,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("autocreate")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.autocreate"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.autocreate"); } else if (name.equals("autodelete")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.autodelete"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.autodelete"); } else if (name.equals("resource")) { this.resource = new Reference(); return this.resource; @@ -3992,21 +3992,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("defaultValue")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.defaultValue"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.defaultValue"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.expression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.expression"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.headerField"); } else if (name.equals("hint")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.hint"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.hint"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.path"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else return super.addChild(name); } @@ -5910,37 +5910,37 @@ public Base addChild(String name) throws FHIRException { this.type = new Coding(); return this.type; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.resource"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("accept")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.accept"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.accept"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.contentType"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination"); } else if (name.equals("encodeRequestUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.encodeRequestUrl"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.encodeRequestUrl"); } else if (name.equals("method")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.method"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.method"); } else if (name.equals("origin")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.origin"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.origin"); } else if (name.equals("params")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.params"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.params"); } else if (name.equals("requestHeader")) { return addRequestHeader(); } else if (name.equals("requestId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.requestId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.requestId"); } else if (name.equals("responseId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.responseId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.responseId"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else if (name.equals("targetId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.targetId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.targetId"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else return super.addChild(name); } @@ -6249,9 +6249,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("field")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.field"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.field"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else return super.addChild(name); } @@ -8211,49 +8211,49 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("direction")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.direction"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.direction"); } else if (name.equals("compareToSourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.compareToSourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.compareToSourceId"); } else if (name.equals("compareToSourceExpression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.compareToSourceExpression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.compareToSourceExpression"); } else if (name.equals("compareToSourcePath")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.compareToSourcePath"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.compareToSourcePath"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.contentType"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.expression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.expression"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.headerField"); } else if (name.equals("minimumId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.minimumId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.minimumId"); } else if (name.equals("navigationLinks")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.navigationLinks"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.navigationLinks"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.operator"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.operator"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.path"); } else if (name.equals("requestMethod")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.requestMethod"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.requestMethod"); } else if (name.equals("requestURL")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.requestURL"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.requestURL"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.resource"); } else if (name.equals("response")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.response"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.response"); } else if (name.equals("responseCode")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.responseCode"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.responseCode"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.sourceId"); } else if (name.equals("validateProfileId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.validateProfileId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.validateProfileId"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.value"); } else if (name.equals("warningOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.warningOnly"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.warningOnly"); } else return super.addChild(name); } @@ -8658,9 +8658,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("action")) { return addAction(); } else @@ -11212,36 +11212,36 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.version"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.title"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.date"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.copyright"); } else if (name.equals("origin")) { return addOrigin(); } else if (name.equals("destination")) { diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Timing.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Timing.java index 766edc20d3..7803203d80 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Timing.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Timing.java @@ -2634,33 +2634,33 @@ public Base addChild(String name) throws FHIRException { this.bounds = new Period(); return this.bounds; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.count"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.count"); } else if (name.equals("countMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.countMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.countMax"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.duration"); } else if (name.equals("durationMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.durationMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.durationMax"); } else if (name.equals("durationUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.durationUnit"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.durationUnit"); } else if (name.equals("frequency")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.frequency"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.frequency"); } else if (name.equals("frequencyMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.frequencyMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.frequencyMax"); } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.period"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.period"); } else if (name.equals("periodMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.periodMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.periodMax"); } else if (name.equals("periodUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.periodUnit"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.periodUnit"); } else if (name.equals("dayOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.dayOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.dayOfWeek"); } else if (name.equals("timeOfDay")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.timeOfDay"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.timeOfDay"); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.when"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.when"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.offset"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.offset"); } else return super.addChild(name); } @@ -3023,7 +3023,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("event")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.event"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.event"); } else if (name.equals("repeat")) { this.repeat = new TimingRepeatComponent(); return this.repeat; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TriggerDefinition.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TriggerDefinition.java index a0cb76e206..605d5e693f 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TriggerDefinition.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/TriggerDefinition.java @@ -803,9 +803,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.name"); } else if (name.equals("timingTiming")) { this.timing = new Timing(); return this.timing; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ValueSet.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ValueSet.java index 31f0f36423..095adcee92 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ValueSet.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/ValueSet.java @@ -759,9 +759,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("lockedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.lockedDate"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.lockedDate"); } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.inactive"); } else if (name.equals("include")) { return addInclude(); } else if (name.equals("exclude")) { @@ -1329,15 +1329,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("concept")) { return addConcept(); } else if (name.equals("filter")) { return addFilter(); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.valueSet"); } else return super.addChild(name); } @@ -1732,9 +1732,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.display"); } else if (name.equals("designation")) { return addDesignation(); } else @@ -2064,12 +2064,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.language"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.value"); } else return super.addChild(name); } @@ -2453,11 +2453,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.property"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.property"); } else if (name.equals("op")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.op"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.op"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.value"); } else return super.addChild(name); } @@ -3104,13 +3104,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.identifier"); } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.timestamp"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.total"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.total"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.offset"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.offset"); } else if (name.equals("parameter")) { return addParameter(); } else if (name.equals("contains")) { @@ -3530,7 +3530,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("valueString")) { this.value = new StringType(); return this.value; @@ -4370,17 +4370,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.system"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.abstract"); } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.inactive"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.display"); } else if (name.equals("designation")) { return addDesignation(); } else if (name.equals("contains")) { @@ -5943,37 +5943,37 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.url"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.title"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.status"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.date"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.description"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("immutable")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.immutable"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.immutable"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.copyright"); } else if (name.equals("compose")) { this.compose = new ValueSetComposeComponent(); return this.compose; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/VerificationResult.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/VerificationResult.java index 6e3578f995..e0a5054191 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/VerificationResult.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/VerificationResult.java @@ -847,7 +847,7 @@ public Base addChild(String name) throws FHIRException { this.validationStatus = new CodeableConcept(); return this.validationStatus; } else if (name.equals("validationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.validationDate"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.validationDate"); } else if (name.equals("canPushUpdates")) { this.canPushUpdates = new CodeableConcept(); return this.canPushUpdates; @@ -1566,12 +1566,12 @@ public Base addChild(String name) throws FHIRException { this.communicationMethod = new CodeableConcept(); return this.communicationMethod; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.date"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.date"); } else if (name.equals("sourceIdentityCertificate")) { throw new FHIRException( - "Cannot call addChild on a primitive type VerificationResult.sourceIdentityCertificate"); + "Cannot call addChild on a singleton property VerificationResult.sourceIdentityCertificate"); } else if (name.equals("proxyIdentityCertificate")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.proxyIdentityCertificate"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.proxyIdentityCertificate"); } else if (name.equals("proxySignature")) { this.proxySignature = new Signature(); return this.proxySignature; @@ -1933,7 +1933,7 @@ public Base addChild(String name) throws FHIRException { this.organization = new Reference(); return this.organization; } else if (name.equals("identityCertificate")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.identityCertificate"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.identityCertificate"); } else if (name.equals("attestationSignature")) { this.attestationSignature = new Signature(); return this.attestationSignature; @@ -3064,14 +3064,14 @@ public Base addChild(String name) throws FHIRException { if (name.equals("target")) { return addTarget(); } else if (name.equals("targetLocation")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.targetLocation"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.targetLocation"); } else if (name.equals("need")) { this.need = new CodeableConcept(); return this.need; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.status"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.status"); } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.statusDate"); } else if (name.equals("validationType")) { this.validationType = new CodeableConcept(); return this.validationType; @@ -3081,9 +3081,9 @@ public Base addChild(String name) throws FHIRException { this.frequency = new Timing(); return this.frequency; } else if (name.equals("lastPerformed")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.lastPerformed"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.lastPerformed"); } else if (name.equals("nextScheduled")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.nextScheduled"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.nextScheduled"); } else if (name.equals("failureAction")) { this.failureAction = new CodeableConcept(); return this.failureAction; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/VisionPrescription.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/VisionPrescription.java index 0ca882dba4..90d0e2d5d2 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/VisionPrescription.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/VisionPrescription.java @@ -1708,30 +1708,30 @@ public Base addChild(String name) throws FHIRException { this.product = new CodeableConcept(); return this.product; } else if (name.equals("eye")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.eye"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.eye"); } else if (name.equals("sphere")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.sphere"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.sphere"); } else if (name.equals("cylinder")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.cylinder"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.cylinder"); } else if (name.equals("axis")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.axis"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.axis"); } else if (name.equals("prism")) { return addPrism(); } else if (name.equals("add")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.add"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.add"); } else if (name.equals("power")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.power"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.power"); } else if (name.equals("backCurve")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.backCurve"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.backCurve"); } else if (name.equals("diameter")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.diameter"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.diameter"); } else if (name.equals("duration")) { this.duration = new Quantity(); return this.duration; } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.color"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.color"); } else if (name.equals("brand")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.brand"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.brand"); } else if (name.equals("note")) { return addNote(); } else @@ -2063,9 +2063,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("amount")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.amount"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.amount"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.base"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.base"); } else return super.addChild(name); } @@ -2829,9 +2829,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.status"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.status"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.created"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.created"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -2839,7 +2839,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("dateWritten")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.dateWritten"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.dateWritten"); } else if (name.equals("prescriber")) { this.prescriber = new Reference(); return this.prescriber; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Account.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Account.java index b1a2c6670c..8c43df9844 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Account.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Account.java @@ -455,7 +455,7 @@ public Base addChild(String name) throws FHIRException { this.coverage = new Reference(); return this.coverage; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.coverage.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Account.coverage.priority"); } else return super.addChild(name); } @@ -762,7 +762,7 @@ public Base addChild(String name) throws FHIRException { this.party = new Reference(); return this.party; } else if (name.equals("onHold")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.guarantor.onHold"); + throw new FHIRException("Cannot call addChild on a singleton property Account.guarantor.onHold"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1663,12 +1663,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.status"); + throw new FHIRException("Cannot call addChild on a singleton property Account.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.name"); + throw new FHIRException("Cannot call addChild on a singleton property Account.name"); } else if (name.equals("subject")) { return addSubject(); } else if (name.equals("servicePeriod")) { @@ -1680,7 +1680,7 @@ public Base addChild(String name) throws FHIRException { this.owner = new Reference(); return this.owner; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.description"); + throw new FHIRException("Cannot call addChild on a singleton property Account.description"); } else if (name.equals("guarantor")) { return addGuarantor(); } else if (name.equals("partOf")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ActivityDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ActivityDefinition.java index dddf97b1fa..cb94c29a5e 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ActivityDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ActivityDefinition.java @@ -640,7 +640,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.participant.type"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.participant.type"); } else if (name.equals("role")) { this.role = new CodeableConcept(); return this.role; @@ -935,7 +935,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.dynamicValue.path"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.dynamicValue.path"); } else if (name.equals("expression")) { this.expression = new Expression(); return this.expression; @@ -5103,21 +5103,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -5128,27 +5128,27 @@ public Base addChild(String name) throws FHIRException { this.subject = new CanonicalType(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -5165,20 +5165,20 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.library"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.kind"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.profile"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.intent"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.priority"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.doNotPerform"); } else if (name.equals("timingTiming")) { this.timing = new Timing(); return this.timing; @@ -5222,7 +5222,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("observationResultRequirement")) { return addObservationResultRequirement(); } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.transform"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.transform"); } else if (name.equals("dynamicValue")) { return addDynamicValue(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Address.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Address.java index e07a2183b6..c86696a3da 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Address.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Address.java @@ -1243,23 +1243,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.use"); + throw new FHIRException("Cannot call addChild on a singleton property Address.use"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.type"); + throw new FHIRException("Cannot call addChild on a singleton property Address.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.text"); + throw new FHIRException("Cannot call addChild on a singleton property Address.text"); } else if (name.equals("line")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.line"); + throw new FHIRException("Cannot call addChild on a singleton property Address.line"); } else if (name.equals("city")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.city"); + throw new FHIRException("Cannot call addChild on a singleton property Address.city"); } else if (name.equals("district")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.district"); + throw new FHIRException("Cannot call addChild on a singleton property Address.district"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.state"); + throw new FHIRException("Cannot call addChild on a singleton property Address.state"); } else if (name.equals("postalCode")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.postalCode"); + throw new FHIRException("Cannot call addChild on a singleton property Address.postalCode"); } else if (name.equals("country")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.country"); + throw new FHIRException("Cannot call addChild on a singleton property Address.country"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AdministrableProductDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AdministrableProductDefinition.java index f6b6971d73..81468733de 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AdministrableProductDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AdministrableProductDefinition.java @@ -1544,7 +1544,7 @@ public Base addChild(String name) throws FHIRException { return this.value; } else if (name.equals("supportingInformation")) { throw new FHIRException( - "Cannot call addChild on a primitive type AdministrableProductDefinition.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation"); + "Cannot call addChild on a singleton property AdministrableProductDefinition.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation"); } else return super.addChild(name); } @@ -2467,7 +2467,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type AdministrableProductDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property AdministrableProductDefinition.status"); } else if (name.equals("formOf")) { return addFormOf(); } else if (name.equals("administrableDoseForm")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AdverseEvent.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AdverseEvent.java index 04122174fa..deb6d6b81e 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AdverseEvent.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AdverseEvent.java @@ -750,7 +750,7 @@ public Base addChild(String name) throws FHIRException { return this.assessment; } else if (name.equals("productRelatedness")) { throw new FHIRException( - "Cannot call addChild on a primitive type AdverseEvent.suspectEntity.causality.productRelatedness"); + "Cannot call addChild on a singleton property AdverseEvent.suspectEntity.causality.productRelatedness"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; @@ -2265,7 +2265,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("actuality")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.actuality"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.actuality"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("event")) { @@ -2278,11 +2278,11 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.date"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.date"); } else if (name.equals("detected")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.detected"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.detected"); } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.recordedDate"); } else if (name.equals("resultingCondition")) { return addResultingCondition(); } else if (name.equals("location")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AllergyIntolerance.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AllergyIntolerance.java index bb9149d584..510e09fa21 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AllergyIntolerance.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AllergyIntolerance.java @@ -1264,11 +1264,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("manifestation")) { return addManifestation(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.reaction.description"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.reaction.description"); } else if (name.equals("onset")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.reaction.onset"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.reaction.onset"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.reaction.severity"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.reaction.severity"); } else if (name.equals("exposureRoute")) { this.exposureRoute = new CodeableConcept(); return this.exposureRoute; @@ -2664,11 +2664,11 @@ public Base addChild(String name) throws FHIRException { this.verificationStatus = new CodeableConcept(); return this.verificationStatus; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.type"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.type"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.category"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.category"); } else if (name.equals("criticality")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.criticality"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.criticality"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -2694,7 +2694,7 @@ public Base addChild(String name) throws FHIRException { this.onset = new StringType(); return this.onset; } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.recordedDate"); } else if (name.equals("recorder")) { this.recorder = new Reference(); return this.recorder; @@ -2702,7 +2702,7 @@ public Base addChild(String name) throws FHIRException { this.asserter = new Reference(); return this.asserter; } else if (name.equals("lastOccurrence")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.lastOccurrence"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.lastOccurrence"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("reaction")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Annotation.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Annotation.java index f445e8a290..a791c2c7f0 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Annotation.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Annotation.java @@ -372,9 +372,9 @@ public Base addChild(String name) throws FHIRException { this.author = new StringType(); return this.author; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.time"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.time"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.text"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.text"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Appointment.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Appointment.java index a5a921c9a2..de775ffdb1 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Appointment.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Appointment.java @@ -916,9 +916,9 @@ public Base addChild(String name) throws FHIRException { this.actor = new Reference(); return this.actor; } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.participant.required"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.participant.required"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.participant.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.participant.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -2900,7 +2900,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.status"); } else if (name.equals("cancelationReason")) { this.cancelationReason = new CodeableConcept(); return this.cancelationReason; @@ -2918,25 +2918,25 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("reasonReference")) { return addReasonReference(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.priority"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.description"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.description"); } else if (name.equals("supportingInformation")) { return addSupportingInformation(); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.start"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.end"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.end"); } else if (name.equals("minutesDuration")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.minutesDuration"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.minutesDuration"); } else if (name.equals("slot")) { return addSlot(); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.created"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.created"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.comment"); } else if (name.equals("patientInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.patientInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.patientInstruction"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("participant")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AppointmentResponse.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AppointmentResponse.java index 50b3013b62..61f8517989 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AppointmentResponse.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AppointmentResponse.java @@ -750,18 +750,18 @@ public Base addChild(String name) throws FHIRException { this.appointment = new Reference(); return this.appointment; } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.start"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.end"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.end"); } else if (name.equals("participantType")) { return addParticipantType(); } else if (name.equals("actor")) { this.actor = new Reference(); return this.actor; } else if (name.equals("participantStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.participantStatus"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.participantStatus"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.comment"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Attachment.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Attachment.java index fa5b253f77..f8acfe88b9 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Attachment.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Attachment.java @@ -762,21 +762,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.contentType"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.language"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.language"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.data"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.data"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.url"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.url"); } else if (name.equals("size")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.size"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.size"); } else if (name.equals("hash")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.hash"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.hash"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.title"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.title"); } else if (name.equals("creation")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.creation"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.creation"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AuditEvent.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AuditEvent.java index bca75bf0fb..4565882b09 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AuditEvent.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/AuditEvent.java @@ -1433,16 +1433,16 @@ public Base addChild(String name) throws FHIRException { this.who = new Reference(); return this.who; } else if (name.equals("altId")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.agent.altId"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.agent.altId"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.agent.name"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.agent.name"); } else if (name.equals("requestor")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.agent.requestor"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.agent.requestor"); } else if (name.equals("location")) { this.location = new Reference(); return this.location; } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.agent.policy"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.agent.policy"); } else if (name.equals("media")) { this.media = new Coding(); return this.media; @@ -1764,9 +1764,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.agent.network.address"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.agent.network.address"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.agent.network.type"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.agent.network.type"); } else return super.addChild(name); } @@ -2112,7 +2112,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("site")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.source.site"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.source.site"); } else if (name.equals("observer")) { this.observer = new Reference(); return this.observer; @@ -2847,11 +2847,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.entity.name"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.entity.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.entity.description"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.entity.description"); } else if (name.equals("query")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.entity.query"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.entity.query"); } else if (name.equals("detail")) { return addDetail(); } else @@ -3158,7 +3158,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.entity.detail.type"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.entity.detail.type"); } else if (name.equals("valueString")) { this.value = new StringType(); return this.value; @@ -4074,16 +4074,16 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("subtype")) { return addSubtype(); } else if (name.equals("action")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.action"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.action"); } else if (name.equals("period")) { this.period = new Period(); return this.period; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.recorded"); } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcome"); } else if (name.equals("outcomeDesc")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcomeDesc"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcomeDesc"); } else if (name.equals("purposeOfEvent")) { return addPurposeOfEvent(); } else if (name.equals("agent")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Basic.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Basic.java index b0dc88d950..07a817be27 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Basic.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Basic.java @@ -450,7 +450,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Basic.created"); + throw new FHIRException("Cannot call addChild on a singleton property Basic.created"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Binary.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Binary.java index 5e896e1c72..32a1acc4df 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Binary.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Binary.java @@ -364,12 +364,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.contentType"); } else if (name.equals("securityContext")) { this.securityContext = new Reference(); return this.securityContext; } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.data"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.data"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BiologicallyDerivedProduct.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BiologicallyDerivedProduct.java index 859d2b4546..eea4564044 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BiologicallyDerivedProduct.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BiologicallyDerivedProduct.java @@ -1161,7 +1161,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type BiologicallyDerivedProduct.processing.description"); + "Cannot call addChild on a singleton property BiologicallyDerivedProduct.processing.description"); } else if (name.equals("procedure")) { this.procedure = new CodeableConcept(); return this.procedure; @@ -1455,7 +1455,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type BiologicallyDerivedProduct.manipulation.description"); + "Cannot call addChild on a singleton property BiologicallyDerivedProduct.manipulation.description"); } else if (name.equals("timeDateTime")) { this.time = new DateTimeType(); return this.time; @@ -1874,12 +1874,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type BiologicallyDerivedProduct.storage.description"); + "Cannot call addChild on a singleton property BiologicallyDerivedProduct.storage.description"); } else if (name.equals("temperature")) { throw new FHIRException( - "Cannot call addChild on a primitive type BiologicallyDerivedProduct.storage.temperature"); + "Cannot call addChild on a singleton property BiologicallyDerivedProduct.storage.temperature"); } else if (name.equals("scale")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.storage.scale"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.storage.scale"); } else if (name.equals("duration")) { this.duration = new Period(); return this.duration; @@ -2795,16 +2795,16 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("productCategory")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.productCategory"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.productCategory"); } else if (name.equals("productCode")) { this.productCode = new CodeableConcept(); return this.productCode; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.status"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.status"); } else if (name.equals("request")) { return addRequest(); } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.quantity"); } else if (name.equals("parent")) { return addParent(); } else if (name.equals("collection")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BodyStructure.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BodyStructure.java index 0593c04918..b17c7a11ec 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BodyStructure.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BodyStructure.java @@ -680,7 +680,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type BodyStructure.active"); + throw new FHIRException("Cannot call addChild on a singleton property BodyStructure.active"); } else if (name.equals("morphology")) { this.morphology = new CodeableConcept(); return this.morphology; @@ -690,7 +690,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("locationQualifier")) { return addLocationQualifier(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type BodyStructure.description"); + throw new FHIRException("Cannot call addChild on a singleton property BodyStructure.description"); } else if (name.equals("image")) { return addImage(); } else if (name.equals("patient")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Bundle.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Bundle.java index 805146383c..e3ae20cacc 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Bundle.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Bundle.java @@ -895,9 +895,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("relation")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.link.relation"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.link.relation"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.link.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.link.url"); } else return super.addChild(name); } @@ -1421,7 +1421,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("link")) { return addLink(); } else if (name.equals("fullUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.fullUrl"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.fullUrl"); } else if (name.equals("resource")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.entry.resource"); } else if (name.equals("search")) { @@ -1803,9 +1803,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.search.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.search.mode"); } else if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.search.score"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.search.score"); } else return super.addChild(name); } @@ -2451,17 +2451,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("method")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.method"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.method"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.url"); } else if (name.equals("ifNoneMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.ifNoneMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.ifNoneMatch"); } else if (name.equals("ifModifiedSince")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.ifModifiedSince"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.ifModifiedSince"); } else if (name.equals("ifMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.ifMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.ifMatch"); } else if (name.equals("ifNoneExist")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.ifNoneExist"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.ifNoneExist"); } else return super.addChild(name); } @@ -2984,13 +2984,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.response.status"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.response.status"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.response.location"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.response.location"); } else if (name.equals("etag")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.response.etag"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.response.etag"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.response.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.response.lastModified"); } else if (name.equals("outcome")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.entry.response.outcome"); } else @@ -3640,11 +3640,11 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.type"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.type"); } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.timestamp"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.total"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.total"); } else if (name.equals("link")) { return addLink(); } else if (name.equals("entry")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CapabilityStatement.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CapabilityStatement.java index 1579272b4c..abf7a3f30b 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CapabilityStatement.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CapabilityStatement.java @@ -1773,11 +1773,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.software.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.software.name"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.software.version"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.software.version"); } else if (name.equals("releaseDate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.software.releaseDate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.software.releaseDate"); } else return super.addChild(name); } @@ -2127,9 +2127,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.implementation.description"); + "Cannot call addChild on a singleton property CapabilityStatement.implementation.description"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.implementation.url"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.implementation.url"); } else if (name.equals("custodian")) { this.custodian = new Reference(); return this.custodian; @@ -2914,9 +2914,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.documentation"); } else if (name.equals("security")) { this.security = new CapabilityStatementRestSecurityComponent(); return this.security; @@ -2929,7 +2929,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("operation")) { return addOperation(); } else if (name.equals("compartment")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.compartment"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.compartment"); } else return super.addChild(name); } @@ -3323,12 +3323,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("cors")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.security.cors"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.security.cors"); } else if (name.equals("service")) { return addService(); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.security.description"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.security.description"); } else return super.addChild(name); } @@ -4978,47 +4978,47 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.type"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.profile"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.profile"); } else if (name.equals("supportedProfile")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.supportedProfile"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.supportedProfile"); } else if (name.equals("documentation")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.documentation"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.documentation"); } else if (name.equals("interaction")) { return addInteraction(); } else if (name.equals("versioning")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.versioning"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.versioning"); } else if (name.equals("readHistory")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.readHistory"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.readHistory"); } else if (name.equals("updateCreate")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.updateCreate"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.updateCreate"); } else if (name.equals("conditionalCreate")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.conditionalCreate"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.conditionalCreate"); } else if (name.equals("conditionalRead")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.conditionalRead"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.conditionalRead"); } else if (name.equals("conditionalUpdate")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.conditionalUpdate"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.conditionalUpdate"); } else if (name.equals("conditionalDelete")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.conditionalDelete"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.conditionalDelete"); } else if (name.equals("referencePolicy")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.referencePolicy"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.referencePolicy"); } else if (name.equals("searchInclude")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchInclude"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchInclude"); } else if (name.equals("searchRevInclude")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchRevInclude"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchRevInclude"); } else if (name.equals("searchParam")) { return addSearchParam(); } else if (name.equals("operation")) { @@ -5392,10 +5392,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.interaction.code"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.interaction.code"); } else if (name.equals("documentation")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.interaction.documentation"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.interaction.documentation"); } else return super.addChild(name); } @@ -5874,16 +5874,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("name")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchParam.name"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchParam.name"); } else if (name.equals("definition")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchParam.definition"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchParam.definition"); } else if (name.equals("type")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchParam.type"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchParam.type"); } else if (name.equals("documentation")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchParam.documentation"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchParam.documentation"); } else return super.addChild(name); } @@ -6308,13 +6308,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("name")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.operation.name"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.operation.name"); } else if (name.equals("definition")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.operation.definition"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.operation.definition"); } else if (name.equals("documentation")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.resource.operation.documentation"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.resource.operation.documentation"); } else return super.addChild(name); } @@ -6609,10 +6609,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.interaction.code"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.interaction.code"); } else if (name.equals("documentation")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.rest.interaction.documentation"); + "Cannot call addChild on a singleton property CapabilityStatement.rest.interaction.documentation"); } else return super.addChild(name); } @@ -7076,9 +7076,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("reliableCache")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.messaging.reliableCache"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.messaging.reliableCache"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.messaging.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.messaging.documentation"); } else if (name.equals("supportedMessage")) { return addSupportedMessage(); } else @@ -7359,7 +7359,7 @@ public Base addChild(String name) throws FHIRException { return this.protocol; } else if (name.equals("address")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.messaging.endpoint.address"); + "Cannot call addChild on a singleton property CapabilityStatement.messaging.endpoint.address"); } else return super.addChild(name); } @@ -7650,10 +7650,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.messaging.supportedMessage.mode"); + "Cannot call addChild on a singleton property CapabilityStatement.messaging.supportedMessage.mode"); } else if (name.equals("definition")) { throw new FHIRException( - "Cannot call addChild on a primitive type CapabilityStatement.messaging.supportedMessage.definition"); + "Cannot call addChild on a singleton property CapabilityStatement.messaging.supportedMessage.definition"); } else return super.addChild(name); } @@ -8030,11 +8030,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.document.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.document.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.document.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.document.documentation"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.document.profile"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.document.profile"); } else return super.addChild(name); } @@ -10462,39 +10462,39 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.url"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.version"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.title"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.date"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.description"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.copyright"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.kind"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.kind"); } else if (name.equals("instantiates")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.instantiates"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.instantiates"); } else if (name.equals("imports")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.imports"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.imports"); } else if (name.equals("software")) { this.software = new CapabilityStatementSoftwareComponent(); return this.software; @@ -10502,13 +10502,13 @@ public Base addChild(String name) throws FHIRException { this.implementation = new CapabilityStatementImplementationComponent(); return this.implementation; } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.fhirVersion"); } else if (name.equals("format")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.format"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.format"); } else if (name.equals("patchFormat")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.patchFormat"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.patchFormat"); } else if (name.equals("implementationGuide")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.implementationGuide"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.implementationGuide"); } else if (name.equals("rest")) { return addRest(); } else if (name.equals("messaging")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CarePlan.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CarePlan.java index 01f1460a8e..410bdecc5c 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CarePlan.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CarePlan.java @@ -2705,12 +2705,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.kind"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.activity.detail.kind"); } else if (name.equals("instantiatesCanonical")) { throw new FHIRException( - "Cannot call addChild on a primitive type CarePlan.activity.detail.instantiatesCanonical"); + "Cannot call addChild on a singleton property CarePlan.activity.detail.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.activity.detail.instantiatesUri"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -2721,12 +2721,12 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("goal")) { return addGoal(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.activity.detail.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.activity.detail.doNotPerform"); } else if (name.equals("scheduledTiming")) { this.scheduled = new Timing(); return this.scheduled; @@ -2754,7 +2754,7 @@ public Base addChild(String name) throws FHIRException { this.quantity = new Quantity(); return this.quantity; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.activity.detail.description"); } else return super.addChild(name); } @@ -4746,9 +4746,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("replaces")) { @@ -4756,15 +4756,15 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.intent"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.title"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -4775,7 +4775,7 @@ public Base addChild(String name) throws FHIRException { this.period = new Period(); return this.period; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.created"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.created"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CareTeam.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CareTeam.java index 6704f88f73..f75a59f194 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CareTeam.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CareTeam.java @@ -1647,11 +1647,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CareTeam.status"); + throw new FHIRException("Cannot call addChild on a singleton property CareTeam.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CareTeam.name"); + throw new FHIRException("Cannot call addChild on a singleton property CareTeam.name"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CatalogEntry.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CatalogEntry.java index 08ce78ba10..3b66d14a44 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CatalogEntry.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CatalogEntry.java @@ -383,7 +383,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("relationtype")) { - throw new FHIRException("Cannot call addChild on a primitive type CatalogEntry.relatedEntry.relationtype"); + throw new FHIRException("Cannot call addChild on a singleton property CatalogEntry.relatedEntry.relationtype"); } else if (name.equals("item")) { this.item = new Reference(); return this.item; @@ -1486,7 +1486,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("orderable")) { - throw new FHIRException("Cannot call addChild on a primitive type CatalogEntry.orderable"); + throw new FHIRException("Cannot call addChild on a singleton property CatalogEntry.orderable"); } else if (name.equals("referencedItem")) { this.referencedItem = new Reference(); return this.referencedItem; @@ -1495,14 +1495,14 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("classification")) { return addClassification(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CatalogEntry.status"); + throw new FHIRException("Cannot call addChild on a singleton property CatalogEntry.status"); } else if (name.equals("validityPeriod")) { this.validityPeriod = new Period(); return this.validityPeriod; } else if (name.equals("validTo")) { - throw new FHIRException("Cannot call addChild on a primitive type CatalogEntry.validTo"); + throw new FHIRException("Cannot call addChild on a singleton property CatalogEntry.validTo"); } else if (name.equals("lastUpdated")) { - throw new FHIRException("Cannot call addChild on a primitive type CatalogEntry.lastUpdated"); + throw new FHIRException("Cannot call addChild on a singleton property CatalogEntry.lastUpdated"); } else if (name.equals("additionalCharacteristic")) { return addAdditionalCharacteristic(); } else if (name.equals("additionalClassification")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ChargeItem.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ChargeItem.java index e5d3f24d6e..d4a34e9789 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ChargeItem.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ChargeItem.java @@ -2525,11 +2525,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("definitionUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.definitionUri"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.definitionUri"); } else if (name.equals("definitionCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.definitionCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.definitionCanonical"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.status"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.status"); } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("code")) { @@ -2567,17 +2567,17 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("bodysite")) { return addBodysite(); } else if (name.equals("factorOverride")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.factorOverride"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.factorOverride"); } else if (name.equals("priceOverride")) { this.priceOverride = new Money(); return this.priceOverride; } else if (name.equals("overrideReason")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.overrideReason"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.overrideReason"); } else if (name.equals("enterer")) { this.enterer = new Reference(); return this.enterer; } else if (name.equals("enteredDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.enteredDate"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.enteredDate"); } else if (name.equals("reason")) { return addReason(); } else if (name.equals("service")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ChargeItemDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ChargeItemDefinition.java index 62240cc99e..73ec0a6660 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ChargeItemDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ChargeItemDefinition.java @@ -399,12 +399,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type ChargeItemDefinition.applicability.description"); + "Cannot call addChild on a singleton property ChargeItemDefinition.applicability.description"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.applicability.language"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.applicability.language"); } else if (name.equals("expression")) { throw new FHIRException( - "Cannot call addChild on a primitive type ChargeItemDefinition.applicability.expression"); + "Cannot call addChild on a singleton property ChargeItemDefinition.applicability.expression"); } else return super.addChild(name); } @@ -1118,13 +1118,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("type")) { throw new FHIRException( - "Cannot call addChild on a primitive type ChargeItemDefinition.propertyGroup.priceComponent.type"); + "Cannot call addChild on a singleton property ChargeItemDefinition.propertyGroup.priceComponent.type"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("factor")) { throw new FHIRException( - "Cannot call addChild on a primitive type ChargeItemDefinition.propertyGroup.priceComponent.factor"); + "Cannot call addChild on a singleton property ChargeItemDefinition.propertyGroup.priceComponent.factor"); } else if (name.equals("amount")) { this.amount = new Money(); return this.amount; @@ -3250,41 +3250,41 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.version"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.title"); } else if (name.equals("derivedFromUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.derivedFromUri"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.derivedFromUri"); } else if (name.equals("partOf")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.partOf"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.partOf"); } else if (name.equals("replaces")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.replaces"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.replaces"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Citation.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Citation.java index cc74e2bf86..88ad4b9c44 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Citation.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Citation.java @@ -559,7 +559,7 @@ public Base addChild(String name) throws FHIRException { this.activity = new CodeableConcept(); return this.activity; } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.statusDate.actual"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.statusDate.actual"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -2204,7 +2204,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedIdentifier")) { return addRelatedIdentifier(); } else if (name.equals("dateAccessed")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.dateAccessed"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.dateAccessed"); } else if (name.equals("version")) { this.version = new CitationCitedArtifactVersionComponent(); return this.version; @@ -2556,7 +2556,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.version.value"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.version.value"); } else if (name.equals("baseCitation")) { this.baseCitation = new Reference(); return this.baseCitation; @@ -2853,7 +2853,7 @@ public Base addChild(String name) throws FHIRException { this.activity = new CodeableConcept(); return this.activity; } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.statusDate.actual"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.statusDate.actual"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -3188,7 +3188,7 @@ public Base addChild(String name) throws FHIRException { this.language = new CodeableConcept(); return this.language; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.title.text"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.title.text"); } else return super.addChild(name); } @@ -3573,9 +3573,9 @@ public Base addChild(String name) throws FHIRException { this.language = new CodeableConcept(); return this.language; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.abstract.text"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.abstract.text"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.abstract.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.abstract.copyright"); } else return super.addChild(name); } @@ -3870,7 +3870,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.part.value"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.part.value"); } else if (name.equals("baseCitation")) { this.baseCitation = new Reference(); return this.baseCitation; @@ -5235,30 +5235,30 @@ public Base addChild(String name) throws FHIRException { return this.periodicRelease; } else if (name.equals("articleDate")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.articleDate"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.articleDate"); } else if (name.equals("lastRevisionDate")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.lastRevisionDate"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.lastRevisionDate"); } else if (name.equals("language")) { return addLanguage(); } else if (name.equals("accessionNumber")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.accessionNumber"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.accessionNumber"); } else if (name.equals("pageString")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.pageString"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.pageString"); } else if (name.equals("firstPage")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.firstPage"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.firstPage"); } else if (name.equals("lastPage")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.lastPage"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.lastPage"); } else if (name.equals("pageCount")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.pageCount"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.pageCount"); } else if (name.equals("copyright")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.copyright"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.copyright"); } else return super.addChild(name); } @@ -5745,13 +5745,13 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("title")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.publishedIn.title"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.publishedIn.title"); } else if (name.equals("publisher")) { this.publisher = new Reference(); return this.publisher; } else if (name.equals("publisherLocation")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.publishedIn.publisherLocation"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.publishedIn.publisherLocation"); } else return super.addChild(name); } @@ -6147,10 +6147,10 @@ public Base addChild(String name) throws FHIRException { return this.citedMedium; } else if (name.equals("volume")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.volume"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.periodicRelease.volume"); } else if (name.equals("issue")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.issue"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.periodicRelease.issue"); } else if (name.equals("dateOfPublication")) { this.dateOfPublication = new CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(); return this.dateOfPublication; @@ -6748,22 +6748,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("date")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.date"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.date"); } else if (name.equals("year")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.year"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.year"); } else if (name.equals("month")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.month"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.month"); } else if (name.equals("day")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.day"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.day"); } else if (name.equals("season")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.season"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.season"); } else if (name.equals("text")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.text"); + "Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.text"); } else return super.addChild(name); } @@ -7017,7 +7017,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.webLocation.url"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.webLocation.url"); } else return super.addChild(name); } @@ -7764,10 +7764,10 @@ public Base addChild(String name) throws FHIRException { return this.publisher; } else if (name.equals("classifierCopyright")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.classification.whoClassified.classifierCopyright"); + "Cannot call addChild on a singleton property Citation.citedArtifact.classification.whoClassified.classifierCopyright"); } else if (name.equals("freeToShare")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.classification.whoClassified.freeToShare"); + "Cannot call addChild on a singleton property Citation.citedArtifact.classification.whoClassified.freeToShare"); } else return super.addChild(name); } @@ -8133,7 +8133,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("complete")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.complete"); + "Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.complete"); } else if (name.equals("entry")) { return addEntry(); } else if (name.equals("summary")) { @@ -9166,10 +9166,10 @@ public Base addChild(String name) throws FHIRException { return this.name; } else if (name.equals("initials")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.initials"); + "Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.initials"); } else if (name.equals("collectiveName")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.collectiveName"); + "Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.collectiveName"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("affiliationInfo")) { @@ -9187,10 +9187,10 @@ public Base addChild(String name) throws FHIRException { return addContributionInstance(); } else if (name.equals("correspondingContact")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.correspondingContact"); + "Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.correspondingContact"); } else if (name.equals("listOrder")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.listOrder"); + "Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.listOrder"); } else return super.addChild(name); } @@ -9595,10 +9595,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("affiliation")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.affiliationInfo.affiliation"); + "Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.affiliationInfo.affiliation"); } else if (name.equals("role")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.affiliationInfo.role"); + "Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.affiliationInfo.role"); } else if (name.equals("identifier")) { return addIdentifier(); } else @@ -9861,7 +9861,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("time")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.contributionInstance.time"); + "Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.contributionInstance.time"); } else return super.addChild(name); } @@ -10225,7 +10225,7 @@ public Base addChild(String name) throws FHIRException { return this.source; } else if (name.equals("value")) { throw new FHIRException( - "Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.summary.value"); + "Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.summary.value"); } else return super.addChild(name); } @@ -12717,39 +12717,39 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.url"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.version"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.name"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.title"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.status"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.date"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.description"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Claim.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Claim.java index c32026f850..04c4533b69 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Claim.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Claim.java @@ -948,12 +948,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.careTeam.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.careTeam.sequence"); } else if (name.equals("provider")) { this.provider = new Reference(); return this.provider; } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.careTeam.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.careTeam.responsible"); } else if (name.equals("role")) { this.role = new CodeableConcept(); return this.role; @@ -1594,7 +1594,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.supportingInfo.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.supportingInfo.sequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -2120,7 +2120,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.diagnosis.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.diagnosis.sequence"); } else if (name.equals("diagnosisCodeableConcept")) { this.diagnosis = new CodeableConcept(); return this.diagnosis; @@ -2681,11 +2681,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.procedure.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.procedure.sequence"); } else if (name.equals("type")) { return addType(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.procedure.date"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.procedure.date"); } else if (name.equals("procedureCodeableConcept")) { this.procedure = new CodeableConcept(); return this.procedure; @@ -3346,9 +3346,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.insurance.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.insurance.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.insurance.focal"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.insurance.focal"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; @@ -3356,9 +3356,9 @@ public Base addChild(String name) throws FHIRException { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.insurance.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.insurance.businessArrangement"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.insurance.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.insurance.preAuthRef"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); return this.claimResponse; @@ -3725,7 +3725,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.accident.date"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.accident.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -5479,15 +5479,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.sequence"); } else if (name.equals("careTeamSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.careTeamSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.careTeamSequence"); } else if (name.equals("diagnosisSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.diagnosisSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.diagnosisSequence"); } else if (name.equals("procedureSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.procedureSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.procedureSequence"); } else if (name.equals("informationSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.informationSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.informationSequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -5523,7 +5523,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -6582,7 +6582,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.detail.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.detail.sequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -6603,7 +6603,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.detail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.detail.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -7525,7 +7525,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.detail.subDetail.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.detail.subDetail.sequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -7546,7 +7546,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.detail.subDetail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.detail.subDetail.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -9425,7 +9425,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.status"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -9433,7 +9433,7 @@ public Base addChild(String name) throws FHIRException { this.subType = new CodeableConcept(); return this.subType; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.use"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.use"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -9441,7 +9441,7 @@ public Base addChild(String name) throws FHIRException { this.billablePeriod = new Period(); return this.billablePeriod; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.created"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); return this.enterer; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClaimResponse.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClaimResponse.java index 79bceaab8f..3da8c238d4 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClaimResponse.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClaimResponse.java @@ -467,9 +467,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.itemSequence"); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -895,7 +895,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Money(); return this.amount; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.adjudication.value"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.adjudication.value"); } else return super.addChild(name); } @@ -1351,9 +1351,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.detail.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.detail.detailSequence"); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.detail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.detail.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("subDetail")) { @@ -1751,10 +1751,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("subDetailSequence")) { throw new FHIRException( - "Cannot call addChild on a primitive type ClaimResponse.item.detail.subDetail.subDetailSequence"); + "Cannot call addChild on a singleton property ClaimResponse.item.detail.subDetail.subDetailSequence"); } else if (name.equals("noteNumber")) { throw new FHIRException( - "Cannot call addChild on a primitive type ClaimResponse.item.detail.subDetail.noteNumber"); + "Cannot call addChild on a singleton property ClaimResponse.item.detail.subDetail.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else @@ -3340,11 +3340,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.itemSequence"); } else if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.detailSequence"); } else if (name.equals("subdetailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.subdetailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.subdetailSequence"); } else if (name.equals("provider")) { return addProvider(); } else if (name.equals("productOrService")) { @@ -3376,7 +3376,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -3386,7 +3386,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("subSite")) { return addSubSite(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -4272,12 +4272,12 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.detail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.detail.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.detail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.detail.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("subDetail")) { @@ -5038,13 +5038,13 @@ public Base addChild(String name) throws FHIRException { return this.unitPrice; } else if (name.equals("factor")) { throw new FHIRException( - "Cannot call addChild on a primitive type ClaimResponse.addItem.detail.subDetail.factor"); + "Cannot call addChild on a singleton property ClaimResponse.addItem.detail.subDetail.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("noteNumber")) { throw new FHIRException( - "Cannot call addChild on a primitive type ClaimResponse.addItem.detail.subDetail.noteNumber"); + "Cannot call addChild on a singleton property ClaimResponse.addItem.detail.subDetail.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else @@ -5783,7 +5783,7 @@ public Base addChild(String name) throws FHIRException { this.adjustmentReason = new CodeableConcept(); return this.adjustmentReason; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.payment.date"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.payment.date"); } else if (name.equals("amount")) { this.amount = new Money(); return this.amount; @@ -6195,11 +6195,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.processNote.number"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.processNote.number"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.processNote.type"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.processNote.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.processNote.text"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.processNote.text"); } else if (name.equals("language")) { this.language = new CodeableConcept(); return this.language; @@ -6691,14 +6691,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.insurance.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.insurance.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.insurance.focal"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.insurance.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.insurance.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.insurance.businessArrangement"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); return this.claimResponse; @@ -7146,11 +7146,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.error.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.error.itemSequence"); } else if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.error.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.error.detailSequence"); } else if (name.equals("subDetailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.error.subDetailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.error.subDetailSequence"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -9120,7 +9120,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -9128,12 +9128,12 @@ public Base addChild(String name) throws FHIRException { this.subType = new CodeableConcept(); return this.subType; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.use"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.use"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.created"); } else if (name.equals("insurer")) { this.insurer = new Reference(); return this.insurer; @@ -9144,11 +9144,11 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.disposition"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.preAuthRef"); } else if (name.equals("preAuthPeriod")) { this.preAuthPeriod = new Period(); return this.preAuthPeriod; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClinicalImpression.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClinicalImpression.java index f1b94377cf..b57344c45d 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClinicalImpression.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClinicalImpression.java @@ -739,7 +739,7 @@ public Base addChild(String name) throws FHIRException { this.itemReference = new Reference(); return this.itemReference; } else if (name.equals("basis")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.finding.basis"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.finding.basis"); } else return super.addChild(name); } @@ -2344,7 +2344,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.status"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; @@ -2352,7 +2352,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.description"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.description"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -2366,7 +2366,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.date"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.date"); } else if (name.equals("assessor")) { this.assessor = new Reference(); return this.assessor; @@ -2378,9 +2378,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("investigation")) { return addInvestigation(); } else if (name.equals("protocol")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.protocol"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.protocol"); } else if (name.equals("summary")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.summary"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.summary"); } else if (name.equals("finding")) { return addFinding(); } else if (name.equals("prognosisCodeableConcept")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClinicalUseDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClinicalUseDefinition.java index 6513e3c9f9..46459d2c22 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClinicalUseDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ClinicalUseDefinition.java @@ -2760,7 +2760,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalUseDefinition.warning.description"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalUseDefinition.warning.description"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -3595,7 +3595,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalUseDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalUseDefinition.type"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("subject")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeSystem.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeSystem.java index 20355d6b1d..af89674efd 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeSystem.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeSystem.java @@ -1041,13 +1041,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.filter.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.filter.code"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.filter.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.filter.description"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.filter.operator"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.filter.operator"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.filter.value"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.filter.value"); } else return super.addChild(name); } @@ -1523,13 +1523,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.property.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.property.code"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.property.uri"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.property.uri"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.property.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.property.description"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.property.type"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.property.type"); } else return super.addChild(name); } @@ -2162,11 +2162,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.display"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.display"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.definition"); } else if (name.equals("designation")) { return addDesignation(); } else if (name.equals("property")) { @@ -2523,12 +2523,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.designation.language"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.designation.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.designation.value"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.designation.value"); } else return super.addChild(name); } @@ -2909,7 +2909,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.property.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.property.code"); } else if (name.equals("valueCode")) { this.value = new CodeType(); return this.value; @@ -5296,51 +5296,51 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.url"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.version"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.title"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.copyright"); } else if (name.equals("caseSensitive")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.caseSensitive"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.caseSensitive"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.valueSet"); } else if (name.equals("hierarchyMeaning")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.hierarchyMeaning"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.hierarchyMeaning"); } else if (name.equals("compositional")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.compositional"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.compositional"); } else if (name.equals("versionNeeded")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.versionNeeded"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.versionNeeded"); } else if (name.equals("content")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.content"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.content"); } else if (name.equals("supplements")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.supplements"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.supplements"); } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.count"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.count"); } else if (name.equals("filter")) { return addFilter(); } else if (name.equals("property")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeableConcept.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeableConcept.java index 7e658a3d0b..78f2432696 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeableConcept.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeableConcept.java @@ -289,7 +289,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("coding")) { return addCoding(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeableConcept.text"); + throw new FHIRException("Cannot call addChild on a singleton property CodeableConcept.text"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Coding.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Coding.java index 4d9152c336..87f1d5dcf6 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Coding.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Coding.java @@ -570,15 +570,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.system"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.version"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.code"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.display"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.display"); } else if (name.equals("userSelected")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.userSelected"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.userSelected"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Communication.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Communication.java index 19c3c8877f..5eea8e3559 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Communication.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Communication.java @@ -2153,9 +2153,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("partOf")) { @@ -2163,14 +2163,14 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("inResponseTo")) { return addInResponseTo(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.status"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.priority"); } else if (name.equals("medium")) { return addMedium(); } else if (name.equals("subject")) { @@ -2185,9 +2185,9 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("sent")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.sent"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.sent"); } else if (name.equals("received")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.received"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.received"); } else if (name.equals("recipient")) { return addRecipient(); } else if (name.equals("sender")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CommunicationRequest.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CommunicationRequest.java index 6cda168f52..d87fb905d0 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CommunicationRequest.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CommunicationRequest.java @@ -2041,16 +2041,16 @@ public Base addChild(String name) throws FHIRException { this.groupIdentifier = new Identifier(); return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.doNotPerform"); } else if (name.equals("medium")) { return addMedium(); } else if (name.equals("subject")) { @@ -2070,7 +2070,7 @@ public Base addChild(String name) throws FHIRException { this.occurrence = new Period(); return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CompartmentDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CompartmentDefinition.java index a21ac61014..914fa854d6 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CompartmentDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CompartmentDefinition.java @@ -379,12 +379,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.resource.code"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.resource.code"); } else if (name.equals("param")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.resource.param"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.resource.param"); } else if (name.equals("documentation")) { throw new FHIRException( - "Cannot call addChild on a primitive type CompartmentDefinition.resource.documentation"); + "Cannot call addChild on a singleton property CompartmentDefinition.resource.documentation"); } else return super.addChild(name); } @@ -1733,31 +1733,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.purpose"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.code"); } else if (name.equals("search")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.search"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.search"); } else if (name.equals("resource")) { return addResource(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Composition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Composition.java index 1201f1a340..43efb6df85 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Composition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Composition.java @@ -499,9 +499,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.attester.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.attester.mode"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.attester.time"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.attester.time"); } else if (name.equals("party")) { this.party = new Reference(); return this.party; @@ -804,7 +804,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.relatesTo.code"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.relatesTo.code"); } else if (name.equals("targetIdentifier")) { this.target = new Identifier(); return this.target; @@ -2020,7 +2020,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.section.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.section.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -2033,7 +2033,7 @@ public Base addChild(String name) throws FHIRException { this.text = new Narrative(); return this.text; } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.section.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.section.mode"); } else if (name.equals("orderedBy")) { this.orderedBy = new CodeableConcept(); return this.orderedBy; @@ -3281,7 +3281,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.status"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -3294,13 +3294,13 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.date"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.date"); } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.title"); } else if (name.equals("confidentiality")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.confidentiality"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.confidentiality"); } else if (name.equals("attester")) { return addAttester(); } else if (name.equals("custodian")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ConceptMap.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ConceptMap.java index c541cf6d0e..72c3c9a02a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ConceptMap.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ConceptMap.java @@ -1036,13 +1036,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.source"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.source"); } else if (name.equals("sourceVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.sourceVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.sourceVersion"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.target"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.target"); } else if (name.equals("targetVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.targetVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.targetVersion"); } else if (name.equals("element")) { return addElement(); } else if (name.equals("unmapped")) { @@ -1417,9 +1417,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.display"); } else if (name.equals("target")) { return addTarget(); } else @@ -2063,13 +2063,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.display"); } else if (name.equals("equivalence")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.equivalence"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.equivalence"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.comment"); } else if (name.equals("dependsOn")) { return addDependsOn(); } else if (name.equals("product")) { @@ -2559,16 +2559,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("property")) { throw new FHIRException( - "Cannot call addChild on a primitive type ConceptMap.group.element.target.dependsOn.property"); + "Cannot call addChild on a singleton property ConceptMap.group.element.target.dependsOn.property"); } else if (name.equals("system")) { throw new FHIRException( - "Cannot call addChild on a primitive type ConceptMap.group.element.target.dependsOn.system"); + "Cannot call addChild on a singleton property ConceptMap.group.element.target.dependsOn.system"); } else if (name.equals("value")) { throw new FHIRException( - "Cannot call addChild on a primitive type ConceptMap.group.element.target.dependsOn.value"); + "Cannot call addChild on a singleton property ConceptMap.group.element.target.dependsOn.value"); } else if (name.equals("display")) { throw new FHIRException( - "Cannot call addChild on a primitive type ConceptMap.group.element.target.dependsOn.display"); + "Cannot call addChild on a singleton property ConceptMap.group.element.target.dependsOn.display"); } else return super.addChild(name); } @@ -3058,13 +3058,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.unmapped.mode"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.unmapped.mode"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.unmapped.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.unmapped.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.unmapped.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.unmapped.display"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.unmapped.url"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.unmapped.url"); } else return super.addChild(name); } @@ -4811,36 +4811,36 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.title"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.copyright"); } else if (name.equals("sourceUri")) { this.source = new UriType(); return this.source; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Condition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Condition.java index d867bf9d62..043efe2098 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Condition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Condition.java @@ -2116,7 +2116,7 @@ public Base addChild(String name) throws FHIRException { this.abatement = new StringType(); return this.abatement; } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.recordedDate"); } else if (name.equals("recorder")) { this.recorder = new Reference(); return this.recorder; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Consent.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Consent.java index 868479dfdc..e4fbfbc513 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Consent.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Consent.java @@ -783,9 +783,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("authority")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.policy.authority"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.policy.authority"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.policy.uri"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.policy.uri"); } else return super.addChild(name); } @@ -1110,12 +1110,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("verified")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.verification.verified"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.verification.verified"); } else if (name.equals("verifiedWith")) { this.verifiedWith = new Reference(); return this.verifiedWith; } else if (name.equals("verificationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.verification.verificationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.verification.verificationDate"); } else return super.addChild(name); } @@ -2075,7 +2075,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.provision.type"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.provision.type"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -2652,7 +2652,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("meaning")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.provision.data.meaning"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.provision.data.meaning"); } else if (name.equals("reference")) { this.reference = new Reference(); return this.reference; @@ -3758,7 +3758,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.status"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.status"); } else if (name.equals("scope")) { this.scope = new CodeableConcept(); return this.scope; @@ -3768,7 +3768,7 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.dateTime"); } else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("organization")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ContactDetail.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ContactDetail.java index 5e97f9a8e4..98ee689057 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ContactDetail.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ContactDetail.java @@ -277,7 +277,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactDetail.name"); + throw new FHIRException("Cannot call addChild on a singleton property ContactDetail.name"); } else if (name.equals("telecom")) { return addTelecom(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ContactPoint.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ContactPoint.java index c8fc0178ff..55b6d44464 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ContactPoint.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ContactPoint.java @@ -917,13 +917,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.system"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.value"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.value"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.use"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.use"); } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.rank"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.rank"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Contract.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Contract.java index dd34d5de35..33c0a4f9b0 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Contract.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Contract.java @@ -1467,12 +1467,12 @@ public Base addChild(String name) throws FHIRException { this.publisher = new Reference(); return this.publisher; } else if (name.equals("publicationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.contentDefinition.publicationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.contentDefinition.publicationDate"); } else if (name.equals("publicationStatus")) { throw new FHIRException( - "Cannot call addChild on a primitive type Contract.contentDefinition.publicationStatus"); + "Cannot call addChild on a singleton property Contract.contentDefinition.publicationStatus"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.contentDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.contentDefinition.copyright"); } else return super.addChild(name); } @@ -2428,7 +2428,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.issued"); } else if (name.equals("applies")) { this.applies = new Period(); return this.applies; @@ -2445,7 +2445,7 @@ public Base addChild(String name) throws FHIRException { this.subType = new CodeableConcept(); return this.subType; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.text"); } else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("offer")) { @@ -2934,7 +2934,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.securityLabel.number"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.securityLabel.number"); } else if (name.equals("classification")) { this.classification = new Coding(); return this.classification; @@ -3829,11 +3829,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("answer")) { return addAnswer(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.offer.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.offer.text"); } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.offer.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.offer.linkId"); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.offer.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.offer.securityLabelNumber"); } else return super.addChild(name); } @@ -5949,7 +5949,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("context")) { return addContext(); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.condition"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.condition"); } else if (name.equals("periodType")) { return addPeriodType(); } else if (name.equals("period")) { @@ -5957,13 +5957,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("usePeriod")) { return addUsePeriod(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.text"); } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.linkId"); } else if (name.equals("answer")) { return addAnswer(); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.securityLabelNumber"); } else if (name.equals("valuedItem")) { return addValuedItem(); } else @@ -6378,7 +6378,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("code")) { return addCode(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.context.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.context.text"); } else return super.addChild(name); } @@ -7579,7 +7579,7 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("effectiveTime")) { throw new FHIRException( - "Cannot call addChild on a primitive type Contract.term.asset.valuedItem.effectiveTime"); + "Cannot call addChild on a singleton property Contract.term.asset.valuedItem.effectiveTime"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); return this.quantity; @@ -7587,16 +7587,16 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.points"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("payment")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.payment"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.payment"); } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.paymentDate"); } else if (name.equals("responsible")) { this.responsible = new Reference(); return this.responsible; @@ -7604,10 +7604,10 @@ public Base addChild(String name) throws FHIRException { this.recipient = new Reference(); return this.recipient; } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.linkId"); } else if (name.equals("securityLabelNumber")) { throw new FHIRException( - "Cannot call addChild on a primitive type Contract.term.asset.valuedItem.securityLabelNumber"); + "Cannot call addChild on a singleton property Contract.term.asset.valuedItem.securityLabelNumber"); } else return super.addChild(name); } @@ -9419,7 +9419,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.doNotPerform"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -9429,7 +9429,7 @@ public Base addChild(String name) throws FHIRException { this.intent = new CodeableConcept(); return this.intent; } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.linkId"); } else if (name.equals("status")) { this.status = new CodeableConcept(); return this.status; @@ -9437,7 +9437,7 @@ public Base addChild(String name) throws FHIRException { this.context = new Reference(); return this.context; } else if (name.equals("contextLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.contextLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.contextLinkId"); } else if (name.equals("occurrenceDateTime")) { this.occurrence = new DateTimeType(); return this.occurrence; @@ -9450,7 +9450,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("requester")) { return addRequester(); } else if (name.equals("requesterLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.requesterLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.requesterLinkId"); } else if (name.equals("performerType")) { return addPerformerType(); } else if (name.equals("performerRole")) { @@ -9460,19 +9460,19 @@ public Base addChild(String name) throws FHIRException { this.performer = new Reference(); return this.performer; } else if (name.equals("performerLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.performerLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.performerLinkId"); } else if (name.equals("reasonCode")) { return addReasonCode(); } else if (name.equals("reasonReference")) { return addReasonReference(); } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.reason"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.reason"); } else if (name.equals("reasonLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.reasonLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.reasonLinkId"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.securityLabelNumber"); } else return super.addChild(name); } @@ -13541,11 +13541,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.url"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.version"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.version"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.status"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.status"); } else if (name.equals("legalState")) { this.legalState = new CodeableConcept(); return this.legalState; @@ -13553,12 +13553,12 @@ public Base addChild(String name) throws FHIRException { this.instantiatesCanonical = new Reference(); return this.instantiatesCanonical; } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.instantiatesUri"); } else if (name.equals("contentDerivative")) { this.contentDerivative = new CodeableConcept(); return this.contentDerivative; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.issued"); } else if (name.equals("applies")) { this.applies = new Period(); return this.applies; @@ -13574,13 +13574,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("site")) { return addSite(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.name"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.title"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.subtitle"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.alias"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Contributor.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Contributor.java index 21443ca28b..cc25cddc85 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Contributor.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Contributor.java @@ -519,9 +519,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Contributor.type"); + throw new FHIRException("Cannot call addChild on a singleton property Contributor.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Contributor.name"); + throw new FHIRException("Cannot call addChild on a singleton property Contributor.name"); } else if (name.equals("contact")) { return addContact(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Coverage.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Coverage.java index 91ad911703..879488950a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Coverage.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Coverage.java @@ -344,9 +344,9 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.class.value"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.class.value"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.class.name"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.class.name"); } else return super.addChild(name); } @@ -2289,7 +2289,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.status"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2300,12 +2300,12 @@ public Base addChild(String name) throws FHIRException { this.subscriber = new Reference(); return this.subscriber; } else if (name.equals("subscriberId")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subscriberId"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subscriberId"); } else if (name.equals("beneficiary")) { this.beneficiary = new Reference(); return this.beneficiary; } else if (name.equals("dependent")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.dependent"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.dependent"); } else if (name.equals("relationship")) { this.relationship = new CodeableConcept(); return this.relationship; @@ -2317,13 +2317,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("class")) { return addClass_(); } else if (name.equals("order")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.order"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.order"); } else if (name.equals("network")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.network"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.network"); } else if (name.equals("costToBeneficiary")) { return addCostToBeneficiary(); } else if (name.equals("subrogation")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subrogation"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subrogation"); } else if (name.equals("contract")) { return addContract(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CoverageEligibilityRequest.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CoverageEligibilityRequest.java index 497e74ea70..334a3f391a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CoverageEligibilityRequest.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CoverageEligibilityRequest.java @@ -511,13 +511,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityRequest.supportingInfo.sequence"); + "Cannot call addChild on a singleton property CoverageEligibilityRequest.supportingInfo.sequence"); } else if (name.equals("information")) { this.information = new Reference(); return this.information; } else if (name.equals("appliesToAll")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityRequest.supportingInfo.appliesToAll"); + "Cannot call addChild on a singleton property CoverageEligibilityRequest.supportingInfo.appliesToAll"); } else return super.addChild(name); } @@ -868,13 +868,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.insurance.focal"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.insurance.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityRequest.insurance.businessArrangement"); + "Cannot call addChild on a singleton property CoverageEligibilityRequest.insurance.businessArrangement"); } else return super.addChild(name); } @@ -1639,7 +1639,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("supportingInfoSequence")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityRequest.item.supportingInfoSequence"); + "Cannot call addChild on a singleton property CoverageEligibilityRequest.item.supportingInfoSequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -3031,12 +3031,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.status"); } else if (name.equals("priority")) { this.priority = new CodeableConcept(); return this.priority; } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.purpose"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -3047,7 +3047,7 @@ public Base addChild(String name) throws FHIRException { this.serviced = new Period(); return this.serviced; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); return this.enterer; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CoverageEligibilityResponse.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CoverageEligibilityResponse.java index 87c9d76070..c9c07d9b1d 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CoverageEligibilityResponse.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CoverageEligibilityResponse.java @@ -571,7 +571,7 @@ public Base addChild(String name) throws FHIRException { return this.coverage; } else if (name.equals("inforce")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.inforce"); + "Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.inforce"); } else if (name.equals("benefitPeriod")) { this.benefitPeriod = new Period(); return this.benefitPeriod; @@ -1680,13 +1680,13 @@ public Base addChild(String name) throws FHIRException { return this.provider; } else if (name.equals("excluded")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.excluded"); + "Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.item.excluded"); } else if (name.equals("name")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.name"); + "Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.item.name"); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.description"); + "Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.item.description"); } else if (name.equals("network")) { this.network = new CodeableConcept(); return this.network; @@ -1700,12 +1700,12 @@ public Base addChild(String name) throws FHIRException { return addBenefit(); } else if (name.equals("authorizationRequired")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.authorizationRequired"); + "Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.item.authorizationRequired"); } else if (name.equals("authorizationSupporting")) { return addAuthorizationSupporting(); } else if (name.equals("authorizationUrl")) { throw new FHIRException( - "Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.authorizationUrl"); + "Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.item.authorizationUrl"); } else return super.addChild(name); } @@ -3563,9 +3563,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.status"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.purpose"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -3576,7 +3576,7 @@ public Base addChild(String name) throws FHIRException { this.serviced = new Period(); return this.serviced; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.created"); } else if (name.equals("requestor")) { this.requestor = new Reference(); return this.requestor; @@ -3584,16 +3584,16 @@ public Base addChild(String name) throws FHIRException { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.disposition"); } else if (name.equals("insurer")) { this.insurer = new Reference(); return this.insurer; } else if (name.equals("insurance")) { return addInsurance(); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.preAuthRef"); } else if (name.equals("form")) { this.form = new CodeableConcept(); return this.form; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DataRequirement.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DataRequirement.java index 355d17e8c9..b80436e7e9 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DataRequirement.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DataRequirement.java @@ -638,11 +638,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.codeFilter.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.codeFilter.path"); } else if (name.equals("searchParam")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.codeFilter.searchParam"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.codeFilter.searchParam"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.codeFilter.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.codeFilter.valueSet"); } else if (name.equals("code")) { return addCode(); } else @@ -1129,9 +1129,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.dateFilter.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.dateFilter.path"); } else if (name.equals("searchParam")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.dateFilter.searchParam"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.dateFilter.searchParam"); } else if (name.equals("valueDateTime")) { this.value = new DateTimeType(); return this.value; @@ -1440,9 +1440,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.sort.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.sort.path"); } else if (name.equals("direction")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.sort.direction"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.sort.direction"); } else return super.addChild(name); } @@ -2308,9 +2308,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.type"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.profile"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.profile"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -2318,13 +2318,13 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.mustSupport"); } else if (name.equals("codeFilter")) { return addCodeFilter(); } else if (name.equals("dateFilter")) { return addDateFilter(); } else if (name.equals("limit")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.limit"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.limit"); } else if (name.equals("sort")) { return addSort(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DetectedIssue.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DetectedIssue.java index 196885daac..3891936c04 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DetectedIssue.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DetectedIssue.java @@ -759,7 +759,7 @@ public Base addChild(String name) throws FHIRException { this.action = new CodeableConcept(); return this.action; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.mitigation.date"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.mitigation.date"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; @@ -1786,12 +1786,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.status"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.status"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.severity"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.severity"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -1809,9 +1809,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("evidence")) { return addEvidence(); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.detail"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.detail"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.reference"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.reference"); } else if (name.equals("mitigation")) { return addMitigation(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Device.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Device.java index 5b2859dfee..d6965bc3b7 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Device.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Device.java @@ -1056,17 +1056,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("deviceIdentifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.deviceIdentifier"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.deviceIdentifier"); } else if (name.equals("issuer")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.issuer"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.issuer"); } else if (name.equals("jurisdiction")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.jurisdiction"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.jurisdiction"); } else if (name.equals("carrierAIDC")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.carrierAIDC"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.carrierAIDC"); } else if (name.equals("carrierHRF")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.carrierHRF"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.carrierHRF"); } else if (name.equals("entryType")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.entryType"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.entryType"); } else return super.addChild(name); } @@ -1355,9 +1355,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.deviceName.name"); + throw new FHIRException("Cannot call addChild on a singleton property Device.deviceName.name"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.deviceName.type"); + throw new FHIRException("Cannot call addChild on a singleton property Device.deviceName.type"); } else return super.addChild(name); } @@ -1616,7 +1616,7 @@ public Base addChild(String name) throws FHIRException { this.systemType = new CodeableConcept(); return this.systemType; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.specialization.version"); + throw new FHIRException("Cannot call addChild on a singleton property Device.specialization.version"); } else return super.addChild(name); } @@ -1916,7 +1916,7 @@ public Base addChild(String name) throws FHIRException { this.component = new Identifier(); return this.component; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.version.value"); + throw new FHIRException("Cannot call addChild on a singleton property Device.version.value"); } else return super.addChild(name); } @@ -4310,27 +4310,27 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("udiCarrier")) { return addUdiCarrier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.status"); + throw new FHIRException("Cannot call addChild on a singleton property Device.status"); } else if (name.equals("statusReason")) { return addStatusReason(); } else if (name.equals("distinctIdentifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.distinctIdentifier"); + throw new FHIRException("Cannot call addChild on a singleton property Device.distinctIdentifier"); } else if (name.equals("manufacturer")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufacturer"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufacturer"); } else if (name.equals("manufactureDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufactureDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufactureDate"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.expirationDate"); } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.lotNumber"); } else if (name.equals("serialNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.serialNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.serialNumber"); } else if (name.equals("deviceName")) { return addDeviceName(); } else if (name.equals("modelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.modelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.modelNumber"); } else if (name.equals("partNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.partNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.partNumber"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -4352,7 +4352,7 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.url"); + throw new FHIRException("Cannot call addChild on a singleton property Device.url"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("safety")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceDefinition.java index 23a6ac7a16..6230f57674 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceDefinition.java @@ -372,12 +372,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("deviceIdentifier")) { throw new FHIRException( - "Cannot call addChild on a primitive type DeviceDefinition.udiDeviceIdentifier.deviceIdentifier"); + "Cannot call addChild on a singleton property DeviceDefinition.udiDeviceIdentifier.deviceIdentifier"); } else if (name.equals("issuer")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.udiDeviceIdentifier.issuer"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.udiDeviceIdentifier.issuer"); } else if (name.equals("jurisdiction")) { throw new FHIRException( - "Cannot call addChild on a primitive type DeviceDefinition.udiDeviceIdentifier.jurisdiction"); + "Cannot call addChild on a singleton property DeviceDefinition.udiDeviceIdentifier.jurisdiction"); } else return super.addChild(name); } @@ -660,9 +660,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.deviceName.name"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.deviceName.name"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.deviceName.type"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.deviceName.type"); } else return super.addChild(name); } @@ -943,9 +943,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("systemType")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.specialization.systemType"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.specialization.systemType"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.specialization.version"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.specialization.version"); } else return super.addChild(name); } @@ -1883,10 +1883,10 @@ public Base addChild(String name) throws FHIRException { this.substance = new CodeableConcept(); return this.substance; } else if (name.equals("alternate")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.material.alternate"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.material.alternate"); } else if (name.equals("allergenicIndicator")) { throw new FHIRException( - "Cannot call addChild on a primitive type DeviceDefinition.material.allergenicIndicator"); + "Cannot call addChild on a singleton property DeviceDefinition.material.allergenicIndicator"); } else return super.addChild(name); } @@ -3654,14 +3654,14 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("deviceName")) { return addDeviceName(); } else if (name.equals("modelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.modelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.modelNumber"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("specialization")) { return addSpecialization(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.version"); } else if (name.equals("safety")) { return addSafety(); } else if (name.equals("shelfLifeStorage")) { @@ -3681,9 +3681,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("contact")) { return addContact(); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.url"); } else if (name.equals("onlineInformation")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.onlineInformation"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.onlineInformation"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("quantity")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceMetric.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceMetric.java index 2f10e439b4..8cf942a93e 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceMetric.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceMetric.java @@ -1236,11 +1236,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.calibration.type"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.calibration.type"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.calibration.state"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.calibration.state"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.calibration.time"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.calibration.time"); } else return super.addChild(name); } @@ -2128,11 +2128,11 @@ public Base addChild(String name) throws FHIRException { this.parent = new Reference(); return this.parent; } else if (name.equals("operationalStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.operationalStatus"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.operationalStatus"); } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.color"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.color"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.category"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.category"); } else if (name.equals("measurementPeriod")) { this.measurementPeriod = new Timing(); return this.measurementPeriod; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceRequest.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceRequest.java index 36717bf57c..bdf80a6665 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceRequest.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceRequest.java @@ -2301,9 +2301,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("priorRequest")) { @@ -2312,11 +2312,11 @@ public Base addChild(String name) throws FHIRException { this.groupIdentifier = new Identifier(); return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.priority"); } else if (name.equals("codeReference")) { this.code = new Reference(); return this.code; @@ -2341,7 +2341,7 @@ public Base addChild(String name) throws FHIRException { this.occurrence = new Timing(); return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceUseStatement.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceUseStatement.java index f2908b6bba..4acb682e2f 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceUseStatement.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DeviceUseStatement.java @@ -1304,7 +1304,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.status"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -1320,7 +1320,7 @@ public Base addChild(String name) throws FHIRException { this.timing = new DateTimeType(); return this.timing; } else if (name.equals("recordedOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.recordedOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.recordedOn"); } else if (name.equals("source")) { this.source = new Reference(); return this.source; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DiagnosticReport.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DiagnosticReport.java index b5ee6738e3..a54832c99e 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DiagnosticReport.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DiagnosticReport.java @@ -561,7 +561,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.media.comment"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.media.comment"); } else if (name.equals("link")) { this.link = new Reference(); return this.link; @@ -2130,7 +2130,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("code")) { @@ -2149,7 +2149,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.issued"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.issued"); } else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("resultsInterpreter")) { @@ -2163,7 +2163,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("media")) { return addMedia(); } else if (name.equals("conclusion")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.conclusion"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.conclusion"); } else if (name.equals("conclusionCode")) { return addConclusionCode(); } else if (name.equals("presentedForm")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DocumentManifest.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DocumentManifest.java index 70349da3f3..0bce681444 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DocumentManifest.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DocumentManifest.java @@ -1282,7 +1282,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -1290,15 +1290,15 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.created"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.created"); } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("recipient")) { return addRecipient(); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.source"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.source"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.description"); } else if (name.equals("content")) { return addContent(); } else if (name.equals("related")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DocumentReference.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DocumentReference.java index 6b8b3ee134..45c5eba862 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DocumentReference.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DocumentReference.java @@ -260,7 +260,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.relatesTo.code"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.relatesTo.code"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; @@ -2393,9 +2393,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.status"); } else if (name.equals("docStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.docStatus"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.docStatus"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2405,7 +2405,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.date"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.date"); } else if (name.equals("author")) { return addAuthor(); } else if (name.equals("authenticator")) { @@ -2417,7 +2417,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatesTo")) { return addRelatesTo(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.description"); } else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("content")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Dosage.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Dosage.java index 6597d827d6..477af31ad2 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Dosage.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Dosage.java @@ -1339,13 +1339,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.sequence"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.text"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.text"); } else if (name.equals("additionalInstruction")) { return addAdditionalInstruction(); } else if (name.equals("patientInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.patientInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.patientInstruction"); } else if (name.equals("timing")) { this.timing = new Timing(); return this.timing; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Element.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Element.java index fb7fff1757..e061e4710a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Element.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Element.java @@ -299,7 +299,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Element.id"); + throw new FHIRException("Cannot call addChild on a singleton property Element.id"); } else if (name.equals("extension")) { return addExtension(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ElementDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ElementDefinition.java index 1e28a77521..9335f65318 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ElementDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ElementDefinition.java @@ -1397,11 +1397,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("discriminator")) { return addDiscriminator(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.slicing.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.slicing.description"); } else if (name.equals("ordered")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.slicing.ordered"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.slicing.ordered"); } else if (name.equals("rules")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.slicing.rules"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.slicing.rules"); } else return super.addChild(name); } @@ -1701,10 +1701,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("type")) { throw new FHIRException( - "Cannot call addChild on a primitive type ElementDefinition.slicing.discriminator.type"); + "Cannot call addChild on a singleton property ElementDefinition.slicing.discriminator.type"); } else if (name.equals("path")) { throw new FHIRException( - "Cannot call addChild on a primitive type ElementDefinition.slicing.discriminator.path"); + "Cannot call addChild on a singleton property ElementDefinition.slicing.discriminator.path"); } else return super.addChild(name); } @@ -2075,11 +2075,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.base.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.base.path"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.base.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.base.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.base.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.base.max"); } else return super.addChild(name); } @@ -2747,15 +2747,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type.code"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type.code"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type.profile"); } else if (name.equals("targetProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type.targetProfile"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type.targetProfile"); } else if (name.equals("aggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type.aggregation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type.aggregation"); } else if (name.equals("versioning")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type.versioning"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type.versioning"); } else return super.addChild(name); } @@ -4195,7 +4195,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.example.label"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.example.label"); } else if (name.equals("valueBase64Binary")) { this.value = new Base64BinaryType(); return this.value; @@ -5049,19 +5049,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("key")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.key"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.key"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.requirements"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.severity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.severity"); } else if (name.equals("human")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.human"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.human"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.expression"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.expression"); } else if (name.equals("xpath")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.xpath"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.xpath"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.source"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.source"); } else return super.addChild(name); } @@ -5448,11 +5448,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.strength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.strength"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.description"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.valueSet"); } else return super.addChild(name); } @@ -5890,13 +5890,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mapping.identity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mapping.identity"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mapping.language"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mapping.language"); } else if (name.equals("map")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mapping.map"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mapping.map"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mapping.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mapping.comment"); } else return super.addChild(name); } @@ -13820,39 +13820,39 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else if (name.equals("representation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.representation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.representation"); } else if (name.equals("sliceName")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.sliceName"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.sliceName"); } else if (name.equals("sliceIsConstraining")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.sliceIsConstraining"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.sliceIsConstraining"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.label"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.label"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("slicing")) { this.slicing = new ElementDefinitionSlicingComponent(); return this.slicing; } else if (name.equals("short")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.short"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.short"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.definition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.definition"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.comment"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.alias"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.alias"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max"); } else if (name.equals("base")) { this.base = new ElementDefinitionBaseComponent(); return this.base; } else if (name.equals("contentReference")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.contentReference"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.contentReference"); } else if (name.equals("type")) { return addType(); } else if (name.equals("defaultValueBase64Binary")) { @@ -14012,9 +14012,9 @@ public Base addChild(String name) throws FHIRException { this.defaultValue = new Meta(); return this.defaultValue; } else if (name.equals("meaningWhenMissing")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.meaningWhenMissing"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.meaningWhenMissing"); } else if (name.equals("orderMeaning")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.orderMeaning"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.orderMeaning"); } else if (name.equals("fixedBase64Binary")) { this.fixed = new Base64BinaryType(); return this.fixed; @@ -14384,19 +14384,19 @@ public Base addChild(String name) throws FHIRException { this.maxValue = new Quantity(); return this.maxValue; } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.maxLength"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.condition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.condition"); } else if (name.equals("constraint")) { return addConstraint(); } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mustSupport"); } else if (name.equals("isModifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isModifier"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isModifier"); } else if (name.equals("isModifierReason")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isModifierReason"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isModifierReason"); } else if (name.equals("isSummary")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isSummary"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isSummary"); } else if (name.equals("binding")) { this.binding = new ElementDefinitionBindingComponent(); return this.binding; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Encounter.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Encounter.java index 15637b772b..5dc7bb770c 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Encounter.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Encounter.java @@ -690,7 +690,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.statusHistory.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.statusHistory.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1553,7 +1553,7 @@ public Base addChild(String name) throws FHIRException { this.use = new CodeableConcept(); return this.use; } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.diagnosis.rank"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.diagnosis.rank"); } else return super.addChild(name); } @@ -2647,7 +2647,7 @@ public Base addChild(String name) throws FHIRException { this.location = new Reference(); return this.location; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.location.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.location.status"); } else if (name.equals("physicalType")) { this.physicalType = new CodeableConcept(); return this.physicalType; @@ -4414,7 +4414,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); } else if (name.equals("class")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Endpoint.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Endpoint.java index c1c5cff91f..93d924be61 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Endpoint.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Endpoint.java @@ -1170,12 +1170,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.status"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.status"); } else if (name.equals("connectionType")) { this.connectionType = new Coding(); return this.connectionType; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.name"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.name"); } else if (name.equals("managingOrganization")) { this.managingOrganization = new Reference(); return this.managingOrganization; @@ -1187,11 +1187,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("payloadType")) { return addPayloadType(); } else if (name.equals("payloadMimeType")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.payloadMimeType"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.payloadMimeType"); } else if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.address"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.address"); } else if (name.equals("header")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.header"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.header"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EnrollmentRequest.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EnrollmentRequest.java index 8f19813c21..b20478e58b 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EnrollmentRequest.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EnrollmentRequest.java @@ -547,9 +547,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.status"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.created"); } else if (name.equals("insurer")) { this.insurer = new Reference(); return this.insurer; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EnrollmentResponse.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EnrollmentResponse.java index b271728a28..f8c295776e 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EnrollmentResponse.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EnrollmentResponse.java @@ -665,16 +665,16 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.status"); } else if (name.equals("request")) { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.disposition"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.created"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EpisodeOfCare.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EpisodeOfCare.java index 9ca410ff3d..0375895913 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EpisodeOfCare.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EpisodeOfCare.java @@ -489,7 +489,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.statusHistory.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.statusHistory.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -803,7 +803,7 @@ public Base addChild(String name) throws FHIRException { this.role = new CodeableConcept(); return this.role; } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.diagnosis.rank"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.diagnosis.rank"); } else return super.addChild(name); } @@ -1787,7 +1787,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); } else if (name.equals("type")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EventDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EventDefinition.java index 12b7837787..8e0b33688a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EventDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EventDefinition.java @@ -2526,21 +2526,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -2548,27 +2548,27 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Evidence.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Evidence.java index 674dac97e4..592d1e5b68 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Evidence.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Evidence.java @@ -496,7 +496,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.variableDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.variableDefinition.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("variableRole")) { @@ -1325,7 +1325,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("statisticType")) { @@ -1338,9 +1338,9 @@ public Base addChild(String name) throws FHIRException { this.quantity = new Quantity(); return this.quantity; } else if (name.equals("numberOfEvents")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.numberOfEvents"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.numberOfEvents"); } else if (name.equals("numberAffected")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.numberAffected"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.numberAffected"); } else if (name.equals("sampleSize")) { this.sampleSize = new EvidenceStatisticSampleSizeComponent(); return this.sampleSize; @@ -1881,18 +1881,18 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.sampleSize.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.sampleSize.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("numberOfStudies")) { throw new FHIRException( - "Cannot call addChild on a primitive type Evidence.statistic.sampleSize.numberOfStudies"); + "Cannot call addChild on a singleton property Evidence.statistic.sampleSize.numberOfStudies"); } else if (name.equals("numberOfParticipants")) { throw new FHIRException( - "Cannot call addChild on a primitive type Evidence.statistic.sampleSize.numberOfParticipants"); + "Cannot call addChild on a singleton property Evidence.statistic.sampleSize.numberOfParticipants"); } else if (name.equals("knownDataCount")) { throw new FHIRException( - "Cannot call addChild on a primitive type Evidence.statistic.sampleSize.knownDataCount"); + "Cannot call addChild on a singleton property Evidence.statistic.sampleSize.knownDataCount"); } else return super.addChild(name); } @@ -2507,7 +2507,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type Evidence.statistic.attributeEstimate.description"); + "Cannot call addChild on a singleton property Evidence.statistic.attributeEstimate.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("type")) { @@ -2517,7 +2517,7 @@ public Base addChild(String name) throws FHIRException { this.quantity = new Quantity(); return this.quantity; } else if (name.equals("level")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.attributeEstimate.level"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.attributeEstimate.level"); } else if (name.equals("range")) { this.range = new Range(); return this.range; @@ -3466,7 +3466,7 @@ public Base addChild(String name) throws FHIRException { return this.variableDefinition; } else if (name.equals("handling")) { throw new FHIRException( - "Cannot call addChild on a primitive type Evidence.statistic.modelCharacteristic.variable.handling"); + "Cannot call addChild on a singleton property Evidence.statistic.modelCharacteristic.variable.handling"); } else if (name.equals("valueCategory")) { return addValueCategory(); } else if (name.equals("valueQuantity")) { @@ -4013,7 +4013,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.certainty.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.certainty.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("type")) { @@ -4023,7 +4023,7 @@ public Base addChild(String name) throws FHIRException { this.rating = new CodeableConcept(); return this.rating; } else if (name.equals("rater")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.certainty.rater"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.certainty.rater"); } else if (name.equals("subcomponent")) { return addSubcomponent(); } else @@ -6223,13 +6223,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.url"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.version"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.version"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.title"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.title"); } else if (name.equals("citeAsReference")) { this.citeAs = new Reference(); return this.citeAs; @@ -6237,17 +6237,17 @@ public Base addChild(String name) throws FHIRException { this.citeAs = new MarkdownType(); return this.citeAs; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.status"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.date"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.date"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.lastReviewDate"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("author")) { @@ -6261,9 +6261,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.description"); } else if (name.equals("assertion")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.assertion"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.assertion"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("variableDefinition")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EvidenceReport.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EvidenceReport.java index 952a765cfb..20db41465a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EvidenceReport.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EvidenceReport.java @@ -989,7 +989,7 @@ public Base addChild(String name) throws FHIRException { return this.value; } else if (name.equals("exclude")) { throw new FHIRException( - "Cannot call addChild on a primitive type EvidenceReport.subject.characteristic.exclude"); + "Cannot call addChild on a singleton property EvidenceReport.subject.characteristic.exclude"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1294,7 +1294,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.relatesTo.code"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.relatesTo.code"); } else if (name.equals("targetIdentifier")) { this.target = new Identifier(); return this.target; @@ -2289,7 +2289,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.section.title"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.section.title"); } else if (name.equals("focus")) { this.focus = new CodeableConcept(); return this.focus; @@ -2302,7 +2302,7 @@ public Base addChild(String name) throws FHIRException { this.text = new Narrative(); return this.text; } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.section.mode"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.section.mode"); } else if (name.equals("orderedBy")) { this.orderedBy = new CodeableConcept(); return this.orderedBy; @@ -3937,9 +3937,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.url"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.url"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.status"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("identifier")) { @@ -3963,7 +3963,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new EvidenceReportSubjectComponent(); return this.subject; } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("author")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EvidenceVariable.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EvidenceVariable.java index 4e042e7451..4e1e9a678d 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EvidenceVariable.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/EvidenceVariable.java @@ -812,7 +812,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristic.description"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristic.description"); } else if (name.equals("definitionReference")) { this.definition = new Reference(); return this.definition; @@ -832,13 +832,13 @@ public Base addChild(String name) throws FHIRException { this.device = new Reference(); return this.device; } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristic.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristic.exclude"); } else if (name.equals("timeFromStart")) { this.timeFromStart = new EvidenceVariableCharacteristicTimeFromStartComponent(); return this.timeFromStart; } else if (name.equals("groupMeasure")) { throw new FHIRException( - "Cannot call addChild on a primitive type EvidenceVariable.characteristic.groupMeasure"); + "Cannot call addChild on a singleton property EvidenceVariable.characteristic.groupMeasure"); } else return super.addChild(name); } @@ -1224,7 +1224,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type EvidenceVariable.characteristic.timeFromStart.description"); + "Cannot call addChild on a singleton property EvidenceVariable.characteristic.timeFromStart.description"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); return this.quantity; @@ -1543,7 +1543,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.category.name"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.category.name"); } else if (name.equals("valueCodeableConcept")) { this.value = new CodeableConcept(); return this.value; @@ -3757,31 +3757,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.url"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.version"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.name"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.title"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.title"); } else if (name.equals("shortTitle")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.shortTitle"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.shortTitle"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.status"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.status"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.date"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.date"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.description"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("author")) { @@ -3795,13 +3795,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.actual"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.actual"); } else if (name.equals("characteristicCombination")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristicCombination"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristicCombination"); } else if (name.equals("characteristic")) { return addCharacteristic(); } else if (name.equals("handling")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.handling"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.handling"); } else if (name.equals("category")) { return addCategory(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ExampleScenario.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ExampleScenario.java index 278bfc43c1..813bac5d7c 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ExampleScenario.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ExampleScenario.java @@ -545,13 +545,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("actorId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.actorId"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.actor.actorId"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.type"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.actor.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.actor.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.actor.description"); } else return super.addChild(name); } @@ -1139,13 +1139,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("resourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.resourceId"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.resourceId"); } else if (name.equals("resourceType")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.resourceType"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.resourceType"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.description"); } else if (name.equals("version")) { return addVersion(); } else if (name.equals("containedInstance")) { @@ -1442,10 +1442,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("versionId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.version.versionId"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.version.versionId"); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.instance.version.description"); + "Cannot call addChild on a singleton property ExampleScenario.instance.version.description"); } else return super.addChild(name); } @@ -1724,10 +1724,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("resourceId")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.instance.containedInstance.resourceId"); + "Cannot call addChild on a singleton property ExampleScenario.instance.containedInstance.resourceId"); } else if (name.equals("versionId")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.instance.containedInstance.versionId"); + "Cannot call addChild on a singleton property ExampleScenario.instance.containedInstance.versionId"); } else return super.addChild(name); } @@ -2236,13 +2236,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.title"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.description"); } else if (name.equals("preConditions")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.preConditions"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.preConditions"); } else if (name.equals("postConditions")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.postConditions"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.postConditions"); } else if (name.equals("step")) { return addStep(); } else @@ -2654,7 +2654,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("process")) { return addProcess(); } else if (name.equals("pause")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.pause"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.pause"); } else if (name.equals("operation")) { this.operation = new ExampleScenarioProcessStepOperationComponent(); return this.operation; @@ -3498,26 +3498,26 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("number")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.process.step.operation.number"); + "Cannot call addChild on a singleton property ExampleScenario.process.step.operation.number"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.operation.type"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.operation.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.operation.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.operation.name"); } else if (name.equals("initiator")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.process.step.operation.initiator"); + "Cannot call addChild on a singleton property ExampleScenario.process.step.operation.initiator"); } else if (name.equals("receiver")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.process.step.operation.receiver"); + "Cannot call addChild on a singleton property ExampleScenario.process.step.operation.receiver"); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.process.step.operation.description"); + "Cannot call addChild on a singleton property ExampleScenario.process.step.operation.description"); } else if (name.equals("initiatorActive")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.process.step.operation.initiatorActive"); + "Cannot call addChild on a singleton property ExampleScenario.process.step.operation.initiatorActive"); } else if (name.equals("receiverActive")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.process.step.operation.receiverActive"); + "Cannot call addChild on a singleton property ExampleScenario.process.step.operation.receiverActive"); } else if (name.equals("request")) { this.request = new ExampleScenarioInstanceContainedInstanceComponent(); return this.request; @@ -3911,10 +3911,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("title")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.process.step.alternative.title"); + "Cannot call addChild on a singleton property ExampleScenario.process.step.alternative.title"); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExampleScenario.process.step.alternative.description"); + "Cannot call addChild on a singleton property ExampleScenario.process.step.alternative.description"); } else if (name.equals("step")) { return addStep(); } else @@ -5541,21 +5541,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.url"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.version"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.status"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("useContext")) { @@ -5563,9 +5563,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.copyright"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.purpose"); } else if (name.equals("actor")) { return addActor(); } else if (name.equals("instance")) { @@ -5573,7 +5573,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("process")) { return addProcess(); } else if (name.equals("workflow")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.workflow"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.workflow"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ExplanationOfBenefit.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ExplanationOfBenefit.java index f5d58d11eb..173fc48d03 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ExplanationOfBenefit.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ExplanationOfBenefit.java @@ -1100,12 +1100,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.careTeam.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.careTeam.sequence"); } else if (name.equals("provider")) { this.provider = new Reference(); return this.provider; } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.careTeam.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.careTeam.responsible"); } else if (name.equals("role")) { this.role = new CodeableConcept(); return this.role; @@ -1746,7 +1746,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.supportingInfo.sequence"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.supportingInfo.sequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; @@ -2272,7 +2272,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.diagnosis.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.diagnosis.sequence"); } else if (name.equals("diagnosisCodeableConcept")) { this.diagnosis = new CodeableConcept(); return this.diagnosis; @@ -2833,11 +2833,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.procedure.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.procedure.sequence"); } else if (name.equals("type")) { return addType(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.procedure.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.procedure.date"); } else if (name.equals("procedureCodeableConcept")) { this.procedure = new CodeableConcept(); return this.procedure; @@ -3223,12 +3223,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.insurance.focal"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.insurance.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.insurance.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.insurance.preAuthRef"); } else return super.addChild(name); } @@ -3579,7 +3579,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.accident.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.accident.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -5505,16 +5505,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.sequence"); } else if (name.equals("careTeamSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.careTeamSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.careTeamSequence"); } else if (name.equals("diagnosisSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.diagnosisSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.diagnosisSequence"); } else if (name.equals("procedureSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.procedureSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.procedureSequence"); } else if (name.equals("informationSequence")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.item.informationSequence"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.item.informationSequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -5550,7 +5550,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -5564,7 +5564,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("encounter")) { return addEncounter(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -6072,7 +6072,7 @@ public Base addChild(String name) throws FHIRException { return this.amount; } else if (name.equals("value")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.item.adjudication.value"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.item.adjudication.value"); } else return super.addChild(name); } @@ -7212,7 +7212,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.sequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -7233,14 +7233,14 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("udi")) { return addUdi(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("subDetail")) { @@ -8354,7 +8354,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.subDetail.sequence"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.subDetail.sequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); return this.revenue; @@ -8376,7 +8376,7 @@ public Base addChild(String name) throws FHIRException { return this.unitPrice; } else if (name.equals("factor")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.subDetail.factor"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.subDetail.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -8384,7 +8384,7 @@ public Base addChild(String name) throws FHIRException { return addUdi(); } else if (name.equals("noteNumber")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.subDetail.noteNumber"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.subDetail.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else @@ -9999,12 +9999,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.itemSequence"); } else if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.detailSequence"); } else if (name.equals("subDetailSequence")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.subDetailSequence"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.subDetailSequence"); } else if (name.equals("provider")) { return addProvider(); } else if (name.equals("productOrService")) { @@ -10036,7 +10036,7 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; @@ -10046,7 +10046,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("subSite")) { return addSubSite(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("detail")) { @@ -10931,13 +10931,13 @@ public Base addChild(String name) throws FHIRException { this.unitPrice = new Money(); return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.detail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.detail.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("noteNumber")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.detail.noteNumber"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.detail.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else if (name.equals("subDetail")) { @@ -11697,13 +11697,13 @@ public Base addChild(String name) throws FHIRException { return this.unitPrice; } else if (name.equals("factor")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.detail.subDetail.factor"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.detail.subDetail.factor"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("noteNumber")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.detail.subDetail.noteNumber"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.detail.subDetail.noteNumber"); } else if (name.equals("adjudication")) { return addAdjudication(); } else @@ -12433,7 +12433,7 @@ public Base addChild(String name) throws FHIRException { this.adjustmentReason = new CodeableConcept(); return this.adjustmentReason; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.payment.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.payment.date"); } else if (name.equals("amount")) { this.amount = new Money(); return this.amount; @@ -12841,11 +12841,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.processNote.number"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.processNote.number"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.processNote.type"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.processNote.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.processNote.text"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.processNote.text"); } else if (name.equals("language")) { this.language = new CodeableConcept(); return this.language; @@ -13509,12 +13509,12 @@ public Base addChild(String name) throws FHIRException { return this.category; } else if (name.equals("excluded")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.benefitBalance.excluded"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.benefitBalance.excluded"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.benefitBalance.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.benefitBalance.name"); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type ExplanationOfBenefit.benefitBalance.description"); + "Cannot call addChild on a singleton property ExplanationOfBenefit.benefitBalance.description"); } else if (name.equals("network")) { this.network = new CodeableConcept(); return this.network; @@ -16921,7 +16921,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.status"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -16929,7 +16929,7 @@ public Base addChild(String name) throws FHIRException { this.subType = new CodeableConcept(); return this.subType; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.use"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.use"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -16937,7 +16937,7 @@ public Base addChild(String name) throws FHIRException { this.billablePeriod = new Period(); return this.billablePeriod; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.created"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); return this.enterer; @@ -16980,11 +16980,11 @@ public Base addChild(String name) throws FHIRException { this.claimResponse = new Reference(); return this.claimResponse; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.disposition"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.preAuthRef"); } else if (name.equals("preAuthRefPeriod")) { return addPreAuthRefPeriod(); } else if (name.equals("careTeam")) { @@ -16996,7 +16996,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("procedure")) { return addProcedure(); } else if (name.equals("precedence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.precedence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.precedence"); } else if (name.equals("insurance")) { return addInsurance(); } else if (name.equals("accident")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Expression.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Expression.java index 24e8b8990e..9846420a37 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Expression.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Expression.java @@ -529,15 +529,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.description"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.description"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.name"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.name"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.language"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.language"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.expression"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.expression"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.reference"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Extension.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Extension.java index 9e41cdff85..426d7dacac 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Extension.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Extension.java @@ -1451,7 +1451,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Extension.url"); + throw new FHIRException("Cannot call addChild on a singleton property Extension.url"); } else if (name.equals("valueBase64Binary")) { this.value = new Base64BinaryType(); return this.value; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/FamilyMemberHistory.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/FamilyMemberHistory.java index 57c56da1a5..afd02d052c 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/FamilyMemberHistory.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/FamilyMemberHistory.java @@ -730,7 +730,7 @@ public Base addChild(String name) throws FHIRException { return this.outcome; } else if (name.equals("contributedToDeath")) { throw new FHIRException( - "Cannot call addChild on a primitive type FamilyMemberHistory.condition.contributedToDeath"); + "Cannot call addChild on a singleton property FamilyMemberHistory.condition.contributedToDeath"); } else if (name.equals("onsetAge")) { this.onset = new Age(); return this.onset; @@ -2421,11 +2421,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.instantiatesUri"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.status"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.status"); } else if (name.equals("dataAbsentReason")) { this.dataAbsentReason = new CodeableConcept(); return this.dataAbsentReason; @@ -2433,9 +2433,9 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.date"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.date"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.name"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.name"); } else if (name.equals("relationship")) { this.relationship = new CodeableConcept(); return this.relationship; @@ -2461,7 +2461,7 @@ public Base addChild(String name) throws FHIRException { this.age = new StringType(); return this.age; } else if (name.equals("estimatedAge")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.estimatedAge"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.estimatedAge"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); return this.deceased; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Flag.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Flag.java index cfd603f5bf..511529e2a3 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Flag.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Flag.java @@ -777,7 +777,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Flag.status"); + throw new FHIRException("Cannot call addChild on a singleton property Flag.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("code")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Goal.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Goal.java index dd3df8b89e..50deb880f6 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Goal.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Goal.java @@ -2115,7 +2115,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("lifecycleStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.lifecycleStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.lifecycleStatus"); } else if (name.equals("achievementStatus")) { this.achievementStatus = new CodeableConcept(); return this.achievementStatus; @@ -2139,9 +2139,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("target")) { return addTarget(); } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.statusDate"); } else if (name.equals("statusReason")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.statusReason"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.statusReason"); } else if (name.equals("expressedBy")) { this.expressedBy = new Reference(); return this.expressedBy; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/GraphDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/GraphDefinition.java index 4fb9547156..9220513f47 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/GraphDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/GraphDefinition.java @@ -863,15 +863,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.path"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.path"); } else if (name.equals("sliceName")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.sliceName"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.sliceName"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.min"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.max"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.max"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.description"); } else if (name.equals("target")) { return addTarget(); } else @@ -1391,11 +1391,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.target.type"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.target.type"); } else if (name.equals("params")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.target.params"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.target.params"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.target.profile"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.target.profile"); } else if (name.equals("compartment")) { return addCompartment(); } else if (name.equals("link")) { @@ -1932,19 +1932,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.target.compartment.use"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.target.compartment.use"); } else if (name.equals("code")) { throw new FHIRException( - "Cannot call addChild on a primitive type GraphDefinition.link.target.compartment.code"); + "Cannot call addChild on a singleton property GraphDefinition.link.target.compartment.code"); } else if (name.equals("rule")) { throw new FHIRException( - "Cannot call addChild on a primitive type GraphDefinition.link.target.compartment.rule"); + "Cannot call addChild on a singleton property GraphDefinition.link.target.compartment.rule"); } else if (name.equals("expression")) { throw new FHIRException( - "Cannot call addChild on a primitive type GraphDefinition.link.target.compartment.expression"); + "Cannot call addChild on a singleton property GraphDefinition.link.target.compartment.expression"); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type GraphDefinition.link.target.compartment.description"); + "Cannot call addChild on a singleton property GraphDefinition.link.target.compartment.description"); } else return super.addChild(name); } @@ -3375,33 +3375,33 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.purpose"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.start"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.start"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.profile"); } else if (name.equals("link")) { return addLink(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Group.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Group.java index f91d27f7b6..9532284b54 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Group.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Group.java @@ -697,7 +697,7 @@ public Base addChild(String name) throws FHIRException { this.value = new Reference(); return this.value; } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.characteristic.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property Group.characteristic.exclude"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1023,7 +1023,7 @@ public Base addChild(String name) throws FHIRException { this.period = new Period(); return this.period; } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.member.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property Group.member.inactive"); } else return super.addChild(name); } @@ -1893,18 +1893,18 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.active"); + throw new FHIRException("Cannot call addChild on a singleton property Group.active"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.type"); + throw new FHIRException("Cannot call addChild on a singleton property Group.type"); } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.actual"); + throw new FHIRException("Cannot call addChild on a singleton property Group.actual"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.name"); + throw new FHIRException("Cannot call addChild on a singleton property Group.name"); } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property Group.quantity"); } else if (name.equals("managingEntity")) { this.managingEntity = new Reference(); return this.managingEntity; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/GuidanceResponse.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/GuidanceResponse.java index 9bf562b3d3..79d0f35374 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/GuidanceResponse.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/GuidanceResponse.java @@ -1497,7 +1497,7 @@ public Base addChild(String name) throws FHIRException { this.module = new CodeableConcept(); return this.module; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.status"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -1505,7 +1505,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("occurrenceDateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.occurrenceDateTime"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.occurrenceDateTime"); } else if (name.equals("performer")) { this.performer = new Reference(); return this.performer; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/HealthcareService.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/HealthcareService.java index 10345f4bbd..4054681347 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/HealthcareService.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/HealthcareService.java @@ -250,7 +250,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.eligibility.comment"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.eligibility.comment"); } else return super.addChild(name); } @@ -711,15 +711,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableTime.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableTime.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableTime.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableTime.allDay"); } else if (name.equals("availableStartTime")) { throw new FHIRException( - "Cannot call addChild on a primitive type HealthcareService.availableTime.availableStartTime"); + "Cannot call addChild on a singleton property HealthcareService.availableTime.availableStartTime"); } else if (name.equals("availableEndTime")) { throw new FHIRException( - "Cannot call addChild on a primitive type HealthcareService.availableTime.availableEndTime"); + "Cannot call addChild on a singleton property HealthcareService.availableTime.availableEndTime"); } else return super.addChild(name); } @@ -984,7 +984,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.notAvailable.description"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.notAvailable.description"); } else if (name.equals("during")) { this.during = new Period(); return this.during; @@ -3040,7 +3040,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.active"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.active"); } else if (name.equals("providedBy")) { this.providedBy = new Reference(); return this.providedBy; @@ -3053,11 +3053,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("location")) { return addLocation(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.name"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.name"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.comment"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.comment"); } else if (name.equals("extraDetails")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.extraDetails"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.extraDetails"); } else if (name.equals("photo")) { this.photo = new Attachment(); return this.photo; @@ -3078,13 +3078,13 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("referralMethod")) { return addReferralMethod(); } else if (name.equals("appointmentRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.appointmentRequired"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.appointmentRequired"); } else if (name.equals("availableTime")) { return addAvailableTime(); } else if (name.equals("notAvailable")) { return addNotAvailable(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availabilityExceptions"); } else if (name.equals("endpoint")) { return addEndpoint(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/HumanName.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/HumanName.java index 5414df5bd0..cdbb8d3459 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/HumanName.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/HumanName.java @@ -928,17 +928,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.use"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.use"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.text"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.text"); } else if (name.equals("family")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.family"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.family"); } else if (name.equals("given")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.given"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.given"); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.prefix"); } else if (name.equals("suffix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.suffix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.suffix"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Identifier.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Identifier.java index e395254d19..45a4005b9d 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Identifier.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Identifier.java @@ -701,14 +701,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.use"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.use"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.system"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.value"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.value"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImagingStudy.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImagingStudy.java index 95abd3f381..b4685a5527 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImagingStudy.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImagingStudy.java @@ -1215,16 +1215,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.uid"); } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.number"); } else if (name.equals("modality")) { this.modality = new Coding(); return this.modality; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.description"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.numberOfInstances"); } else if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("bodySite")) { @@ -1236,7 +1236,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("specimen")) { return addSpecimen(); } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.started"); } else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("instance")) { @@ -1903,14 +1903,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.instance.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.instance.uid"); } else if (name.equals("sopClass")) { this.sopClass = new Coding(); return this.sopClass; } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.instance.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.instance.number"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.instance.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.instance.title"); } else return super.addChild(name); } @@ -3543,7 +3543,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.status"); } else if (name.equals("modality")) { return addModality(); } else if (name.equals("subject")) { @@ -3553,7 +3553,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("referrer")) { @@ -3564,9 +3564,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("numberOfSeries")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfSeries"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfSeries"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances"); } else if (name.equals("procedureReference")) { this.procedureReference = new Reference(); return this.procedureReference; @@ -3582,7 +3582,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("note")) { return addNote(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description"); } else if (name.equals("series")) { return addSeries(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Immunization.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Immunization.java index c8415d4e74..489cea0d05 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Immunization.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Immunization.java @@ -821,13 +821,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("documentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.education.documentType"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.education.documentType"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.education.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.education.reference"); } else if (name.equals("publicationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.education.publicationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.education.publicationDate"); } else if (name.equals("presentationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.education.presentationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.education.presentationDate"); } else return super.addChild(name); } @@ -1143,12 +1143,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reaction.date"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reaction.date"); } else if (name.equals("detail")) { this.detail = new Reference(); return this.detail; } else if (name.equals("reported")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reaction.reported"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reaction.reported"); } else return super.addChild(name); } @@ -1673,7 +1673,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.protocolApplied.series"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.protocolApplied.series"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; @@ -3788,7 +3788,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.status"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; @@ -3808,9 +3808,9 @@ public Base addChild(String name) throws FHIRException { this.occurrence = new StringType(); return this.occurrence; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.recorded"); } else if (name.equals("primarySource")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.primarySource"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.primarySource"); } else if (name.equals("reportOrigin")) { this.reportOrigin = new CodeableConcept(); return this.reportOrigin; @@ -3821,9 +3821,9 @@ public Base addChild(String name) throws FHIRException { this.manufacturer = new Reference(); return this.manufacturer; } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.expirationDate"); } else if (name.equals("site")) { this.site = new CodeableConcept(); return this.site; @@ -3842,7 +3842,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("reasonReference")) { return addReasonReference(); } else if (name.equals("isSubpotent")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.isSubpotent"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.isSubpotent"); } else if (name.equals("subpotentReason")) { return addSubpotentReason(); } else if (name.equals("education")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImmunizationEvaluation.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImmunizationEvaluation.java index 03f83e33e4..61c5319729 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImmunizationEvaluation.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImmunizationEvaluation.java @@ -1185,12 +1185,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.date"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; @@ -1206,9 +1206,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("doseStatusReason")) { return addDoseStatusReason(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.description"); } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.series"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.series"); } else if (name.equals("doseNumberPositiveInt")) { this.doseNumber = new PositiveIntType(); return this.doseNumber; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImmunizationRecommendation.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImmunizationRecommendation.java index a6e41fd064..0d6dffaa03 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImmunizationRecommendation.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImmunizationRecommendation.java @@ -1115,10 +1115,10 @@ public Base addChild(String name) throws FHIRException { return addDateCriterion(); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImmunizationRecommendation.recommendation.description"); + "Cannot call addChild on a singleton property ImmunizationRecommendation.recommendation.description"); } else if (name.equals("series")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImmunizationRecommendation.recommendation.series"); + "Cannot call addChild on a singleton property ImmunizationRecommendation.recommendation.series"); } else if (name.equals("doseNumberPositiveInt")) { this.doseNumber = new PositiveIntType(); return this.doseNumber; @@ -1445,7 +1445,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("value")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImmunizationRecommendation.recommendation.dateCriterion.value"); + "Cannot call addChild on a singleton property ImmunizationRecommendation.recommendation.dateCriterion.value"); } else return super.addChild(name); } @@ -1908,7 +1908,7 @@ public Base addChild(String name) throws FHIRException { this.patient = new Reference(); return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.date"); } else if (name.equals("authority")) { this.authority = new Reference(); return this.authority; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImplementationGuide.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImplementationGuide.java index d296ecfe20..201375b3e3 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImplementationGuide.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ImplementationGuide.java @@ -12162,11 +12162,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.dependsOn.uri"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.dependsOn.uri"); } else if (name.equals("packageId")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.dependsOn.packageId"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.dependsOn.packageId"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.dependsOn.version"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.dependsOn.version"); } else return super.addChild(name); } @@ -12445,9 +12445,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.global.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.global.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.global.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.global.profile"); } else return super.addChild(name); } @@ -13271,10 +13271,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("name")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.grouping.name"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.grouping.name"); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.grouping.description"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.grouping.description"); } else return super.addChild(name); } @@ -13911,13 +13911,13 @@ public Base addChild(String name) throws FHIRException { return this.reference; } else if (name.equals("fhirVersion")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.resource.fhirVersion"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.resource.fhirVersion"); } else if (name.equals("name")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.resource.name"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.resource.name"); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.resource.description"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.resource.description"); } else if (name.equals("exampleBoolean")) { this.example = new BooleanType(); return this.example; @@ -13926,7 +13926,7 @@ public Base addChild(String name) throws FHIRException { return this.example; } else if (name.equals("groupingId")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.resource.groupingId"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.resource.groupingId"); } else return super.addChild(name); } @@ -14400,10 +14400,10 @@ public Base addChild(String name) throws FHIRException { this.name = new Reference(); return this.name; } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.page.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.page.title"); } else if (name.equals("generation")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.page.generation"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.page.generation"); } else if (name.equals("page")) { return addPage(); } else @@ -14697,10 +14697,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.parameter.code"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.parameter.code"); } else if (name.equals("value")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.parameter.value"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.parameter.value"); } else return super.addChild(name); } @@ -15043,13 +15043,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.template.code"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.template.code"); } else if (name.equals("source")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.template.source"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.template.source"); } else if (name.equals("scope")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.definition.template.scope"); + "Cannot call addChild on a singleton property ImplementationGuide.definition.template.scope"); } else return super.addChild(name); } @@ -15612,15 +15612,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("rendering")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.rendering"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.rendering"); } else if (name.equals("resource")) { return addResource(); } else if (name.equals("page")) { return addPage(); } else if (name.equals("image")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.image"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.image"); } else if (name.equals("other")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.other"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.other"); } else return super.addChild(name); } @@ -16011,7 +16011,7 @@ public Base addChild(String name) throws FHIRException { return this.example; } else if (name.equals("relativePath")) { throw new FHIRException( - "Cannot call addChild on a primitive type ImplementationGuide.manifest.resource.relativePath"); + "Cannot call addChild on a singleton property ImplementationGuide.manifest.resource.relativePath"); } else return super.addChild(name); } @@ -16372,11 +16372,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.page.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.page.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.page.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.page.title"); } else if (name.equals("anchor")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.page.anchor"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.page.anchor"); } else return super.addChild(name); } @@ -18228,37 +18228,37 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.version"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.copyright"); } else if (name.equals("packageId")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.packageId"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.packageId"); } else if (name.equals("license")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.license"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.license"); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.fhirVersion"); } else if (name.equals("dependsOn")) { return addDependsOn(); } else if (name.equals("global")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Ingredient.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Ingredient.java index 307a051101..ca5fe3cb30 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Ingredient.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Ingredient.java @@ -1245,7 +1245,7 @@ public Base addChild(String name) throws FHIRException { return this.presentation; } else if (name.equals("presentationText")) { throw new FHIRException( - "Cannot call addChild on a primitive type Ingredient.substance.strength.presentationText"); + "Cannot call addChild on a singleton property Ingredient.substance.strength.presentationText"); } else if (name.equals("concentrationRatio")) { this.concentration = new Ratio(); return this.concentration; @@ -1254,10 +1254,10 @@ public Base addChild(String name) throws FHIRException { return this.concentration; } else if (name.equals("concentrationText")) { throw new FHIRException( - "Cannot call addChild on a primitive type Ingredient.substance.strength.concentrationText"); + "Cannot call addChild on a singleton property Ingredient.substance.strength.concentrationText"); } else if (name.equals("measurementPoint")) { throw new FHIRException( - "Cannot call addChild on a primitive type Ingredient.substance.strength.measurementPoint"); + "Cannot call addChild on a singleton property Ingredient.substance.strength.measurementPoint"); } else if (name.equals("country")) { return addCountry(); } else if (name.equals("referenceStrength")) { @@ -1721,7 +1721,7 @@ public Base addChild(String name) throws FHIRException { return this.strength; } else if (name.equals("measurementPoint")) { throw new FHIRException( - "Cannot call addChild on a primitive type Ingredient.substance.strength.referenceStrength.measurementPoint"); + "Cannot call addChild on a singleton property Ingredient.substance.strength.referenceStrength.measurementPoint"); } else if (name.equals("country")) { return addCountry(); } else @@ -2418,7 +2418,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Ingredient.status"); + throw new FHIRException("Cannot call addChild on a singleton property Ingredient.status"); } else if (name.equals("for")) { return addFor(); } else if (name.equals("role")) { @@ -2427,7 +2427,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("function")) { return addFunction(); } else if (name.equals("allergenicIndicator")) { - throw new FHIRException("Cannot call addChild on a primitive type Ingredient.allergenicIndicator"); + throw new FHIRException("Cannot call addChild on a singleton property Ingredient.allergenicIndicator"); } else if (name.equals("manufacturer")) { return addManufacturer(); } else if (name.equals("substance")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/InsurancePlan.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/InsurancePlan.java index 8d3f2dbacf..3db1791636 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/InsurancePlan.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/InsurancePlan.java @@ -1054,7 +1054,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("requirement")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.coverage.benefit.requirement"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.coverage.benefit.requirement"); } else if (name.equals("limit")) { return addLimit(); } else @@ -2265,12 +2265,12 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("groupSize")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.plan.generalCost.groupSize"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.plan.generalCost.groupSize"); } else if (name.equals("cost")) { this.cost = new Money(); return this.cost; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.plan.generalCost.comment"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.plan.generalCost.comment"); } else return super.addChild(name); } @@ -4361,13 +4361,13 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.status"); } else if (name.equals("type")) { return addType(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.name"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.alias"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.alias"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Invoice.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Invoice.java index 4e04c91c9e..f00908cb33 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Invoice.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Invoice.java @@ -826,7 +826,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.lineItem.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.lineItem.sequence"); } else if (name.equals("chargeItemReference")) { this.chargeItem = new Reference(); return this.chargeItem; @@ -1242,12 +1242,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.lineItem.priceComponent.type"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.lineItem.priceComponent.type"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.lineItem.priceComponent.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.lineItem.priceComponent.factor"); } else if (name.equals("amount")) { this.amount = new Money(); return this.amount; @@ -2454,9 +2454,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.status"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.status"); } else if (name.equals("cancelledReason")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.cancelledReason"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.cancelledReason"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2467,7 +2467,7 @@ public Base addChild(String name) throws FHIRException { this.recipient = new Reference(); return this.recipient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.date"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.date"); } else if (name.equals("participant")) { return addParticipant(); } else if (name.equals("issuer")) { @@ -2487,7 +2487,7 @@ public Base addChild(String name) throws FHIRException { this.totalGross = new Money(); return this.totalGross; } else if (name.equals("paymentTerms")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.paymentTerms"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.paymentTerms"); } else if (name.equals("note")) { return addNote(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Library.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Library.java index 05b0f8c367..a1ccc479d0 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Library.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Library.java @@ -2761,21 +2761,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.url"); + throw new FHIRException("Cannot call addChild on a singleton property Library.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.version"); + throw new FHIRException("Cannot call addChild on a singleton property Library.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.name"); + throw new FHIRException("Cannot call addChild on a singleton property Library.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.title"); + throw new FHIRException("Cannot call addChild on a singleton property Library.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property Library.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.status"); + throw new FHIRException("Cannot call addChild on a singleton property Library.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Library.experimental"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2786,27 +2786,27 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.date"); + throw new FHIRException("Cannot call addChild on a singleton property Library.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Library.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.description"); + throw new FHIRException("Cannot call addChild on a singleton property Library.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Library.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.usage"); + throw new FHIRException("Cannot call addChild on a singleton property Library.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Library.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Library.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Library.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Linkage.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Linkage.java index 131f070d3f..b04a2c805b 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Linkage.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Linkage.java @@ -408,7 +408,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Linkage.item.type"); + throw new FHIRException("Cannot call addChild on a singleton property Linkage.item.type"); } else if (name.equals("resource")) { this.resource = new Reference(); return this.resource; @@ -753,7 +753,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Linkage.active"); + throw new FHIRException("Cannot call addChild on a singleton property Linkage.active"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ListResource.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ListResource.java index 18baba9a6b..8d05279de0 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ListResource.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ListResource.java @@ -524,9 +524,9 @@ public Base addChild(String name) throws FHIRException { this.flag = new CodeableConcept(); return this.flag; } else if (name.equals("deleted")) { - throw new FHIRException("Cannot call addChild on a primitive type List.entry.deleted"); + throw new FHIRException("Cannot call addChild on a singleton property List.entry.deleted"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List.entry.date"); + throw new FHIRException("Cannot call addChild on a singleton property List.entry.date"); } else if (name.equals("item")) { this.item = new Reference(); return this.item; @@ -1517,11 +1517,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type List.status"); + throw new FHIRException("Cannot call addChild on a singleton property List.status"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type List.mode"); + throw new FHIRException("Cannot call addChild on a singleton property List.mode"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type List.title"); + throw new FHIRException("Cannot call addChild on a singleton property List.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -1532,7 +1532,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List.date"); + throw new FHIRException("Cannot call addChild on a singleton property List.date"); } else if (name.equals("source")) { this.source = new Reference(); return this.source; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Location.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Location.java index 4b390ac7d2..6b1390e313 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Location.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Location.java @@ -716,11 +716,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("longitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.position.longitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.position.longitude"); } else if (name.equals("latitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.position.latitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.position.latitude"); } else if (name.equals("altitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.position.altitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.position.altitude"); } else return super.addChild(name); } @@ -1160,13 +1160,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.hoursOfOperation.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property Location.hoursOfOperation.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.hoursOfOperation.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property Location.hoursOfOperation.allDay"); } else if (name.equals("openingTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.hoursOfOperation.openingTime"); + throw new FHIRException("Cannot call addChild on a singleton property Location.hoursOfOperation.openingTime"); } else if (name.equals("closingTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.hoursOfOperation.closingTime"); + throw new FHIRException("Cannot call addChild on a singleton property Location.hoursOfOperation.closingTime"); } else return super.addChild(name); } @@ -2535,18 +2535,18 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.status"); + throw new FHIRException("Cannot call addChild on a singleton property Location.status"); } else if (name.equals("operationalStatus")) { this.operationalStatus = new Coding(); return this.operationalStatus; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.name"); + throw new FHIRException("Cannot call addChild on a singleton property Location.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Location.alias"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.description"); + throw new FHIRException("Cannot call addChild on a singleton property Location.description"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Location.mode"); } else if (name.equals("type")) { return addType(); } else if (name.equals("telecom")) { @@ -2569,7 +2569,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("hoursOfOperation")) { return addHoursOfOperation(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property Location.availabilityExceptions"); } else if (name.equals("endpoint")) { return addEndpoint(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ManufacturedItemDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ManufacturedItemDefinition.java index 4ba8b01246..fdfbe05da8 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ManufacturedItemDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ManufacturedItemDefinition.java @@ -978,7 +978,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ManufacturedItemDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ManufacturedItemDefinition.status"); } else if (name.equals("manufacturedDoseForm")) { this.manufacturedDoseForm = new CodeableConcept(); return this.manufacturedDoseForm; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MarketingStatus.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MarketingStatus.java index c853585eff..150563fbaa 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MarketingStatus.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MarketingStatus.java @@ -485,7 +485,7 @@ public Base addChild(String name) throws FHIRException { this.dateRange = new Period(); return this.dateRange; } else if (name.equals("restoreDate")) { - throw new FHIRException("Cannot call addChild on a primitive type MarketingStatus.restoreDate"); + throw new FHIRException("Cannot call addChild on a singleton property MarketingStatus.restoreDate"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Measure.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Measure.java index e658164fec..7fdadbefa7 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Measure.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Measure.java @@ -425,7 +425,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.description"); } else if (name.equals("population")) { return addPopulation(); } else if (name.equals("stratifier")) { @@ -751,7 +751,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.population.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.population.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); return this.criteria; @@ -1158,7 +1158,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.stratifier.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.stratifier.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); return this.criteria; @@ -1500,7 +1500,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type Measure.group.stratifier.component.description"); + "Cannot call addChild on a singleton property Measure.group.stratifier.component.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); return this.criteria; @@ -1926,7 +1926,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("usage")) { return addUsage(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.supplementalData.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.supplementalData.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); return this.criteria; @@ -5521,21 +5521,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.url"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.version"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.name"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.title"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.status"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -5543,27 +5543,27 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.date"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.usage"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -5580,9 +5580,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.library"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.library"); } else if (name.equals("disclaimer")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.disclaimer"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.disclaimer"); } else if (name.equals("scoring")) { this.scoring = new CodeableConcept(); return this.scoring; @@ -5592,20 +5592,20 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("type")) { return addType(); } else if (name.equals("riskAdjustment")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.riskAdjustment"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.riskAdjustment"); } else if (name.equals("rateAggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.rateAggregation"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.rateAggregation"); } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.rationale"); } else if (name.equals("clinicalRecommendationStatement")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.clinicalRecommendationStatement"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.clinicalRecommendationStatement"); } else if (name.equals("improvementNotation")) { this.improvementNotation = new CodeableConcept(); return this.improvementNotation; } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.definition"); } else if (name.equals("guidance")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.guidance"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.guidance"); } else if (name.equals("group")) { return addGroup(); } else if (name.equals("supplementalData")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MeasureReport.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MeasureReport.java index a5115aff27..2587e9f6dd 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MeasureReport.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MeasureReport.java @@ -1014,7 +1014,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.group.population.count"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.group.population.count"); } else if (name.equals("subjectResults")) { this.subjectResults = new Reference(); return this.subjectResults; @@ -2251,7 +2251,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("count")) { throw new FHIRException( - "Cannot call addChild on a primitive type MeasureReport.group.stratifier.stratum.population.count"); + "Cannot call addChild on a singleton property MeasureReport.group.stratifier.stratum.population.count"); } else if (name.equals("subjectResults")) { this.subjectResults = new Reference(); return this.subjectResults; @@ -3181,16 +3181,16 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.status"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.type"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.type"); } else if (name.equals("measure")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.measure"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.measure"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.date"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.date"); } else if (name.equals("reporter")) { this.reporter = new Reference(); return this.reporter; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Media.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Media.java index 6a1e69974d..d946520979 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Media.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Media.java @@ -1684,7 +1684,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.status"); + throw new FHIRException("Cannot call addChild on a singleton property Media.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -1707,7 +1707,7 @@ public Base addChild(String name) throws FHIRException { this.created = new Period(); return this.created; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Media.issued"); } else if (name.equals("operator")) { this.operator = new Reference(); return this.operator; @@ -1717,18 +1717,18 @@ public Base addChild(String name) throws FHIRException { this.bodySite = new CodeableConcept(); return this.bodySite; } else if (name.equals("deviceName")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.deviceName"); + throw new FHIRException("Cannot call addChild on a singleton property Media.deviceName"); } else if (name.equals("device")) { this.device = new Reference(); return this.device; } else if (name.equals("height")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.height"); + throw new FHIRException("Cannot call addChild on a singleton property Media.height"); } else if (name.equals("width")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.width"); + throw new FHIRException("Cannot call addChild on a singleton property Media.width"); } else if (name.equals("frames")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.frames"); + throw new FHIRException("Cannot call addChild on a singleton property Media.frames"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Media.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Media.duration"); } else if (name.equals("content")) { this.content = new Attachment(); return this.content; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Medication.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Medication.java index 6c8d3be2cc..23a96476e7 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Medication.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Medication.java @@ -511,7 +511,7 @@ public Base addChild(String name) throws FHIRException { this.item = new Reference(); return this.item; } else if (name.equals("isActive")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.ingredient.isActive"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.ingredient.isActive"); } else if (name.equals("strength")) { this.strength = new Ratio(); return this.strength; @@ -792,9 +792,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.batch.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.batch.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.batch.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.batch.expirationDate"); } else return super.addChild(name); } @@ -1433,7 +1433,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.status"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.status"); } else if (name.equals("manufacturer")) { this.manufacturer = new Reference(); return this.manufacturer; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationAdministration.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationAdministration.java index c317130350..2b1f3864d3 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationAdministration.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationAdministration.java @@ -1044,7 +1044,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.dosage.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.dosage.text"); } else if (name.equals("site")) { this.site = new CodeableConcept(); return this.site; @@ -2692,11 +2692,11 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiates")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.instantiates"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.instantiates"); } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.status"); } else if (name.equals("statusReason")) { return addStatusReason(); } else if (name.equals("category")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationDispense.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationDispense.java index a348c2ea6c..3cad7ed0c3 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationDispense.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationDispense.java @@ -942,7 +942,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("wasSubstituted")) { throw new FHIRException( - "Cannot call addChild on a primitive type MedicationDispense.substitution.wasSubstituted"); + "Cannot call addChild on a singleton property MedicationDispense.substitution.wasSubstituted"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2839,7 +2839,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.status"); } else if (name.equals("statusReasonCodeableConcept")) { this.statusReason = new CodeableConcept(); return this.statusReason; @@ -2880,9 +2880,9 @@ public Base addChild(String name) throws FHIRException { this.daysSupply = new Quantity(); return this.daysSupply; } else if (name.equals("whenPrepared")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenPrepared"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenPrepared"); } else if (name.equals("whenHandedOver")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenHandedOver"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenHandedOver"); } else if (name.equals("destination")) { this.destination = new Reference(); return this.destination; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationKnowledge.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationKnowledge.java index 94837521ca..da36bb3921 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationKnowledge.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationKnowledge.java @@ -997,7 +997,7 @@ public Base addChild(String name) throws FHIRException { this.item = new Reference(); return this.item; } else if (name.equals("isActive")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.ingredient.isActive"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.ingredient.isActive"); } else if (name.equals("strength")) { this.strength = new Ratio(); return this.strength; @@ -1309,7 +1309,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.cost.source"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.cost.source"); } else if (name.equals("cost")) { this.cost = new Money(); return this.cost; @@ -1559,7 +1559,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.monitoringProgram.name"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.monitoringProgram.name"); } else return super.addChild(name); } @@ -2551,7 +2551,7 @@ public Base addChild(String name) throws FHIRException { return this.characteristic; } else if (name.equals("value")) { throw new FHIRException( - "Cannot call addChild on a primitive type MedicationKnowledge.administrationGuidelines.patientCharacteristics.value"); + "Cannot call addChild on a singleton property MedicationKnowledge.administrationGuidelines.patientCharacteristics.value"); } else return super.addChild(name); } @@ -4040,7 +4040,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("allowed")) { throw new FHIRException( - "Cannot call addChild on a primitive type MedicationKnowledge.regulatory.substitution.allowed"); + "Cannot call addChild on a singleton property MedicationKnowledge.regulatory.substitution.allowed"); } else return super.addChild(name); } @@ -6605,7 +6605,7 @@ public Base addChild(String name) throws FHIRException { this.code = new CodeableConcept(); return this.code; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.status"); } else if (name.equals("manufacturer")) { this.manufacturer = new Reference(); return this.manufacturer; @@ -6616,7 +6616,7 @@ public Base addChild(String name) throws FHIRException { this.amount = new Quantity(); return this.amount; } else if (name.equals("synonym")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.synonym"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.synonym"); } else if (name.equals("relatedMedicationKnowledge")) { return addRelatedMedicationKnowledge(); } else if (name.equals("associatedMedication")) { @@ -6628,7 +6628,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("ingredient")) { return addIngredient(); } else if (name.equals("preparationInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.preparationInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.preparationInstruction"); } else if (name.equals("intendedRoute")) { return addIntendedRoute(); } else if (name.equals("cost")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationRequest.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationRequest.java index 526bf91a97..4b3aad926c 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationRequest.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationRequest.java @@ -1059,7 +1059,7 @@ public Base addChild(String name) throws FHIRException { return this.validityPeriod; } else if (name.equals("numberOfRepeatsAllowed")) { throw new FHIRException( - "Cannot call addChild on a primitive type MedicationRequest.dispenseRequest.numberOfRepeatsAllowed"); + "Cannot call addChild on a singleton property MedicationRequest.dispenseRequest.numberOfRepeatsAllowed"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); return this.quantity; @@ -4128,18 +4128,18 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.doNotPerform"); } else if (name.equals("reportedBoolean")) { this.reported = new BooleanType(); return this.reported; @@ -4161,7 +4161,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("supportingInformation")) { return addSupportingInformation(); } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; @@ -4179,9 +4179,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("reasonReference")) { return addReasonReference(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("groupIdentifier")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationStatement.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationStatement.java index 65c2badf7c..e559ee0700 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationStatement.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicationStatement.java @@ -1749,7 +1749,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.status"); } else if (name.equals("statusReason")) { return addStatusReason(); } else if (name.equals("category")) { @@ -1774,7 +1774,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new Period(); return this.effective; } else if (name.equals("dateAsserted")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.dateAsserted"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.dateAsserted"); } else if (name.equals("informationSource")) { this.informationSource = new Reference(); return this.informationSource; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicinalProductDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicinalProductDefinition.java index 49d96d3626..ff6871f800 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicinalProductDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MedicinalProductDefinition.java @@ -644,7 +644,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("productName")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.name.productName"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.name.productName"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -913,7 +913,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("part")) { throw new FHIRException( - "Cannot call addChild on a primitive type MedicinalProductDefinition.name.namePart.part"); + "Cannot call addChild on a singleton property MedicinalProductDefinition.name.namePart.part"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -4429,21 +4429,21 @@ public Base addChild(String name) throws FHIRException { this.domain = new CodeableConcept(); return this.domain; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.version"); } else if (name.equals("status")) { this.status = new CodeableConcept(); return this.status; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.statusDate"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.description"); } else if (name.equals("combinedPharmaceuticalDoseForm")) { this.combinedPharmaceuticalDoseForm = new CodeableConcept(); return this.combinedPharmaceuticalDoseForm; } else if (name.equals("route")) { return addRoute(); } else if (name.equals("indication")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.indication"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.indication"); } else if (name.equals("legalStatusOfSupply")) { this.legalStatusOfSupply = new CodeableConcept(); return this.legalStatusOfSupply; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MessageDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MessageDefinition.java index 9212d4209e..934e009a8f 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MessageDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MessageDefinition.java @@ -766,13 +766,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.focus.code"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.focus.code"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.focus.profile"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.focus.profile"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.focus.min"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.focus.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.focus.max"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.focus.max"); } else return super.addChild(name); } @@ -1068,9 +1068,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.allowedResponse.message"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.allowedResponse.message"); } else if (name.equals("situation")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.allowedResponse.situation"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.allowedResponse.situation"); } else return super.addChild(name); } @@ -3293,41 +3293,41 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.title"); } else if (name.equals("replaces")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.replaces"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.replaces"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.copyright"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.base"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.base"); } else if (name.equals("parent")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.parent"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.parent"); } else if (name.equals("eventCoding")) { this.event = new Coding(); return this.event; @@ -3335,15 +3335,15 @@ public Base addChild(String name) throws FHIRException { this.event = new UriType(); return this.event; } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.category"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.category"); } else if (name.equals("focus")) { return addFocus(); } else if (name.equals("responseRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.responseRequired"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.responseRequired"); } else if (name.equals("allowedResponse")) { return addAllowedResponse(); } else if (name.equals("graph")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.graph"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.graph"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MessageHeader.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MessageHeader.java index ffb49d3fb3..c9bcdcd9ce 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MessageHeader.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MessageHeader.java @@ -532,12 +532,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.destination.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.destination.name"); } else if (name.equals("target")) { this.target = new Reference(); return this.target; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.destination.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.destination.endpoint"); } else if (name.equals("receiver")) { this.receiver = new Reference(); return this.receiver; @@ -1033,16 +1033,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.source.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.source.name"); } else if (name.equals("software")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.source.software"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.source.software"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.source.version"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.source.version"); } else if (name.equals("contact")) { this.contact = new ContactPoint(); return this.contact; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.source.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.source.endpoint"); } else return super.addChild(name); } @@ -1384,9 +1384,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.response.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.response.identifier"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.response.code"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.response.code"); } else if (name.equals("details")) { this.details = new Reference(); return this.details; @@ -2284,7 +2284,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("focus")) { return addFocus(); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.definition"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.definition"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Meta.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Meta.java index 0bcfe7237a..a008ec7dd5 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Meta.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Meta.java @@ -659,13 +659,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("versionId")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.versionId"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.versionId"); } else if (name.equals("lastUpdated")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.lastUpdated"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.lastUpdated"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.source"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.source"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.profile"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.profile"); } else if (name.equals("security")) { return addSecurity(); } else if (name.equals("tag")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MolecularSequence.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MolecularSequence.java index e4940fbd61..70105bda90 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MolecularSequence.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/MolecularSequence.java @@ -1534,9 +1534,9 @@ public Base addChild(String name) throws FHIRException { this.chromosome = new CodeableConcept(); return this.chromosome; } else if (name.equals("genomeBuild")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.referenceSeq.genomeBuild"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.referenceSeq.genomeBuild"); } else if (name.equals("orientation")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.referenceSeq.orientation"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.referenceSeq.orientation"); } else if (name.equals("referenceSeqId")) { this.referenceSeqId = new CodeableConcept(); return this.referenceSeqId; @@ -1545,13 +1545,13 @@ public Base addChild(String name) throws FHIRException { return this.referenceSeqPointer; } else if (name.equals("referenceSeqString")) { throw new FHIRException( - "Cannot call addChild on a primitive type MolecularSequence.referenceSeq.referenceSeqString"); + "Cannot call addChild on a singleton property MolecularSequence.referenceSeq.referenceSeqString"); } else if (name.equals("strand")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.referenceSeq.strand"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.referenceSeq.strand"); } else if (name.equals("windowStart")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.referenceSeq.windowStart"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.referenceSeq.windowStart"); } else if (name.equals("windowEnd")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.referenceSeq.windowEnd"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.referenceSeq.windowEnd"); } else return super.addChild(name); } @@ -2216,15 +2216,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.variant.start"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.variant.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.variant.end"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.variant.end"); } else if (name.equals("observedAllele")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.variant.observedAllele"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.variant.observedAllele"); } else if (name.equals("referenceAllele")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.variant.referenceAllele"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.variant.referenceAllele"); } else if (name.equals("cigar")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.variant.cigar"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.variant.cigar"); } else if (name.equals("variantPointer")) { this.variantPointer = new Reference(); return this.variantPointer; @@ -3701,14 +3701,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.type"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.type"); } else if (name.equals("standardSequence")) { this.standardSequence = new CodeableConcept(); return this.standardSequence; } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.start"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.end"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.end"); } else if (name.equals("score")) { this.score = new Quantity(); return this.score; @@ -3716,21 +3716,21 @@ public Base addChild(String name) throws FHIRException { this.method = new CodeableConcept(); return this.method; } else if (name.equals("truthTP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.truthTP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.truthTP"); } else if (name.equals("queryTP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.queryTP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.queryTP"); } else if (name.equals("truthFN")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.truthFN"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.truthFN"); } else if (name.equals("queryFP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.queryFP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.queryFP"); } else if (name.equals("gtFP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.gtFP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.gtFP"); } else if (name.equals("precision")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.precision"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.precision"); } else if (name.equals("recall")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.recall"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.recall"); } else if (name.equals("fScore")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.fScore"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.fScore"); } else if (name.equals("roc")) { this.roc = new MolecularSequenceQualityRocComponent(); return this.roc; @@ -4520,19 +4520,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.roc.score"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.roc.score"); } else if (name.equals("numTP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.roc.numTP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.roc.numTP"); } else if (name.equals("numFP")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.roc.numFP"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.roc.numFP"); } else if (name.equals("numFN")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.roc.numFN"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.roc.numFN"); } else if (name.equals("precision")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.roc.precision"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.roc.precision"); } else if (name.equals("sensitivity")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.roc.sensitivity"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.roc.sensitivity"); } else if (name.equals("fMeasure")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.quality.roc.fMeasure"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.quality.roc.fMeasure"); } else return super.addChild(name); } @@ -5202,17 +5202,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.repository.type"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.repository.type"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.repository.url"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.repository.url"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.repository.name"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.repository.name"); } else if (name.equals("datasetId")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.repository.datasetId"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.repository.datasetId"); } else if (name.equals("variantsetId")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.repository.variantsetId"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.repository.variantsetId"); } else if (name.equals("readsetId")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.repository.readsetId"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.repository.readsetId"); } else return super.addChild(name); } @@ -5631,9 +5631,9 @@ public Base addChild(String name) throws FHIRException { this.variantType = new CodeableConcept(); return this.variantType; } else if (name.equals("exact")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.structureVariant.exact"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.structureVariant.exact"); } else if (name.equals("length")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.structureVariant.length"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.structureVariant.length"); } else if (name.equals("outer")) { this.outer = new MolecularSequenceStructureVariantOuterComponent(); return this.outer; @@ -5932,10 +5932,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("start")) { throw new FHIRException( - "Cannot call addChild on a primitive type MolecularSequence.structureVariant.outer.start"); + "Cannot call addChild on a singleton property MolecularSequence.structureVariant.outer.start"); } else if (name.equals("end")) { throw new FHIRException( - "Cannot call addChild on a primitive type MolecularSequence.structureVariant.outer.end"); + "Cannot call addChild on a singleton property MolecularSequence.structureVariant.outer.end"); } else return super.addChild(name); } @@ -6223,10 +6223,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("start")) { throw new FHIRException( - "Cannot call addChild on a primitive type MolecularSequence.structureVariant.inner.start"); + "Cannot call addChild on a singleton property MolecularSequence.structureVariant.inner.start"); } else if (name.equals("end")) { throw new FHIRException( - "Cannot call addChild on a primitive type MolecularSequence.structureVariant.inner.end"); + "Cannot call addChild on a singleton property MolecularSequence.structureVariant.inner.end"); } else return super.addChild(name); } @@ -7486,9 +7486,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.type"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.type"); } else if (name.equals("coordinateSystem")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.coordinateSystem"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.coordinateSystem"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -7510,11 +7510,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("variant")) { return addVariant(); } else if (name.equals("observedSeq")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.observedSeq"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.observedSeq"); } else if (name.equals("quality")) { return addQuality(); } else if (name.equals("readCoverage")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.readCoverage"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.readCoverage"); } else if (name.equals("repository")) { return addRepository(); } else if (name.equals("pointer")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Money.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Money.java index 8d85a3a944..16bbd927f6 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Money.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Money.java @@ -287,9 +287,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Money.value"); + throw new FHIRException("Cannot call addChild on a singleton property Money.value"); } else if (name.equals("currency")) { - throw new FHIRException("Cannot call addChild on a primitive type Money.currency"); + throw new FHIRException("Cannot call addChild on a singleton property Money.currency"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NamingSystem.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NamingSystem.java index 6a53390ce8..f6cbae96d6 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NamingSystem.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NamingSystem.java @@ -809,13 +809,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.uniqueId.type"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.uniqueId.type"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.uniqueId.value"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.uniqueId.value"); } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.uniqueId.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.uniqueId.preferred"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.uniqueId.comment"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.uniqueId.comment"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -2021,30 +2021,30 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.kind"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.kind"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.responsible"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.usage"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.usage"); } else if (name.equals("uniqueId")) { return addUniqueId(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Narrative.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Narrative.java index bed87990e8..c51ba21ff2 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Narrative.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Narrative.java @@ -434,7 +434,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Narrative.status"); + throw new FHIRException("Cannot call addChild on a singleton property Narrative.status"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NutritionOrder.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NutritionOrder.java index 63d9e83633..f1a03e45b3 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NutritionOrder.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NutritionOrder.java @@ -634,7 +634,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("fluidConsistencyType")) { return addFluidConsistencyType(); } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.oralDiet.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.oralDiet.instruction"); } else return super.addChild(name); } @@ -1598,14 +1598,14 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("productName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.supplement.productName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.supplement.productName"); } else if (name.equals("schedule")) { return addSchedule(); } else if (name.equals("quantity")) { this.quantity = new Quantity(); return this.quantity; } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.supplement.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.supplement.instruction"); } else return super.addChild(name); } @@ -2375,13 +2375,13 @@ public Base addChild(String name) throws FHIRException { return this.baseFormulaType; } else if (name.equals("baseFormulaProductName")) { throw new FHIRException( - "Cannot call addChild on a primitive type NutritionOrder.enteralFormula.baseFormulaProductName"); + "Cannot call addChild on a singleton property NutritionOrder.enteralFormula.baseFormulaProductName"); } else if (name.equals("additiveType")) { this.additiveType = new CodeableConcept(); return this.additiveType; } else if (name.equals("additiveProductName")) { throw new FHIRException( - "Cannot call addChild on a primitive type NutritionOrder.enteralFormula.additiveProductName"); + "Cannot call addChild on a singleton property NutritionOrder.enteralFormula.additiveProductName"); } else if (name.equals("caloricDensity")) { this.caloricDensity = new Quantity(); return this.caloricDensity; @@ -2395,7 +2395,7 @@ public Base addChild(String name) throws FHIRException { return this.maxVolumeToDeliver; } else if (name.equals("administrationInstruction")) { throw new FHIRException( - "Cannot call addChild on a primitive type NutritionOrder.enteralFormula.administrationInstruction"); + "Cannot call addChild on a singleton property NutritionOrder.enteralFormula.administrationInstruction"); } else return super.addChild(name); } @@ -4197,15 +4197,15 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instantiatesUri"); } else if (name.equals("instantiates")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instantiates"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instantiates"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.intent"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.intent"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -4213,7 +4213,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.dateTime"); } else if (name.equals("orderer")) { this.orderer = new Reference(); return this.orderer; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NutritionProduct.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NutritionProduct.java index 8859fc1eba..8604d14ff5 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NutritionProduct.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/NutritionProduct.java @@ -1548,11 +1548,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionProduct.instance.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionProduct.instance.lotNumber"); } else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionProduct.instance.expiry"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionProduct.instance.expiry"); } else if (name.equals("useBy")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionProduct.instance.useBy"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionProduct.instance.useBy"); } else return super.addChild(name); } @@ -2432,7 +2432,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionProduct.status"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionProduct.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("code")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Observation.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Observation.java index 70c538daf6..3e10f359be 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Observation.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Observation.java @@ -551,7 +551,7 @@ public Base addChild(String name) throws FHIRException { this.age = new Range(); return this.age; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.referenceRange.text"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.referenceRange.text"); } else return super.addChild(name); } @@ -3525,7 +3525,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.status"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("code")) { @@ -3552,7 +3552,7 @@ public Base addChild(String name) throws FHIRException { this.effective = new InstantType(); return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.issued"); } else if (name.equals("performer")) { return addPerformer(); } else if (name.equals("valueQuantity")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ObservationDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ObservationDefinition.java index 320819e3cd..3c0cc4ba67 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ObservationDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ObservationDefinition.java @@ -870,10 +870,10 @@ public Base addChild(String name) throws FHIRException { return this.unit; } else if (name.equals("conversionFactor")) { throw new FHIRException( - "Cannot call addChild on a primitive type ObservationDefinition.quantitativeDetails.conversionFactor"); + "Cannot call addChild on a singleton property ObservationDefinition.quantitativeDetails.conversionFactor"); } else if (name.equals("decimalPrecision")) { throw new FHIRException( - "Cannot call addChild on a primitive type ObservationDefinition.quantitativeDetails.decimalPrecision"); + "Cannot call addChild on a singleton property ObservationDefinition.quantitativeDetails.decimalPrecision"); } else return super.addChild(name); } @@ -1537,7 +1537,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("category")) { throw new FHIRException( - "Cannot call addChild on a primitive type ObservationDefinition.qualifiedInterval.category"); + "Cannot call addChild on a singleton property ObservationDefinition.qualifiedInterval.category"); } else if (name.equals("range")) { this.range = new Range(); return this.range; @@ -1548,7 +1548,7 @@ public Base addChild(String name) throws FHIRException { return addAppliesTo(); } else if (name.equals("gender")) { throw new FHIRException( - "Cannot call addChild on a primitive type ObservationDefinition.qualifiedInterval.gender"); + "Cannot call addChild on a singleton property ObservationDefinition.qualifiedInterval.gender"); } else if (name.equals("age")) { this.age = new Range(); return this.age; @@ -1557,7 +1557,7 @@ public Base addChild(String name) throws FHIRException { return this.gestationalAge; } else if (name.equals("condition")) { throw new FHIRException( - "Cannot call addChild on a primitive type ObservationDefinition.qualifiedInterval.condition"); + "Cannot call addChild on a singleton property ObservationDefinition.qualifiedInterval.condition"); } else return super.addChild(name); } @@ -2590,14 +2590,14 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("permittedDataType")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.permittedDataType"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.permittedDataType"); } else if (name.equals("multipleResultsAllowed")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.multipleResultsAllowed"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.multipleResultsAllowed"); } else if (name.equals("method")) { this.method = new CodeableConcept(); return this.method; } else if (name.equals("preferredReportName")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.preferredReportName"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.preferredReportName"); } else if (name.equals("quantitativeDetails")) { this.quantitativeDetails = new ObservationDefinitionQuantitativeDetailsComponent(); return this.quantitativeDetails; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OperationDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OperationDefinition.java index 5380f28834..41e14eba15 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OperationDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OperationDefinition.java @@ -1137,21 +1137,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.use"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.use"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.min"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.max"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.type"); } else if (name.equals("targetProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.targetProfile"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.targetProfile"); } else if (name.equals("searchType")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.searchType"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.searchType"); } else if (name.equals("binding")) { this.binding = new OperationDefinitionParameterBindingComponent(); return this.binding; @@ -1488,10 +1488,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { throw new FHIRException( - "Cannot call addChild on a primitive type OperationDefinition.parameter.binding.strength"); + "Cannot call addChild on a singleton property OperationDefinition.parameter.binding.strength"); } else if (name.equals("valueSet")) { throw new FHIRException( - "Cannot call addChild on a primitive type OperationDefinition.parameter.binding.valueSet"); + "Cannot call addChild on a singleton property OperationDefinition.parameter.binding.valueSet"); } else return super.addChild(name); } @@ -1787,10 +1787,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("source")) { throw new FHIRException( - "Cannot call addChild on a primitive type OperationDefinition.parameter.referencedFrom.source"); + "Cannot call addChild on a singleton property OperationDefinition.parameter.referencedFrom.source"); } else if (name.equals("sourceId")) { throw new FHIRException( - "Cannot call addChild on a primitive type OperationDefinition.parameter.referencedFrom.sourceId"); + "Cannot call addChild on a singleton property OperationDefinition.parameter.referencedFrom.sourceId"); } else return super.addChild(name); } @@ -2071,9 +2071,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("parameterName")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.overload.parameterName"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.overload.parameterName"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.overload.comment"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.overload.comment"); } else return super.addChild(name); } @@ -4433,53 +4433,53 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.kind"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.purpose"); } else if (name.equals("affectsState")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.affectsState"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.affectsState"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.code"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.comment"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.base"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.base"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.resource"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.resource"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.system"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.system"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type"); } else if (name.equals("instance")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.instance"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.instance"); } else if (name.equals("inputProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.inputProfile"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.inputProfile"); } else if (name.equals("outputProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.outputProfile"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.outputProfile"); } else if (name.equals("parameter")) { return addParameter(); } else if (name.equals("overload")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OperationOutcome.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OperationOutcome.java index c0a6d99a61..a70e83476a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OperationOutcome.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OperationOutcome.java @@ -1551,18 +1551,18 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.issue.severity"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.issue.severity"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.issue.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.issue.code"); } else if (name.equals("details")) { this.details = new CodeableConcept(); return this.details; } else if (name.equals("diagnostics")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.issue.diagnostics"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.issue.diagnostics"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.issue.location"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.issue.location"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.issue.expression"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.issue.expression"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OrderedDistribution.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OrderedDistribution.java index bc076601ba..01104853d9 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OrderedDistribution.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OrderedDistribution.java @@ -282,7 +282,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("rankOrder")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderedDistribution.interval.rankOrder"); + throw new FHIRException("Cannot call addChild on a singleton property OrderedDistribution.interval.rankOrder"); } else if (name.equals("intervalStatistic")) { return addIntervalStatistic(); } else @@ -821,11 +821,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderedDistribution.description"); + throw new FHIRException("Cannot call addChild on a singleton property OrderedDistribution.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("numberOfIntervals")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderedDistribution.numberOfIntervals"); + throw new FHIRException("Cannot call addChild on a singleton property OrderedDistribution.numberOfIntervals"); } else if (name.equals("bottomOfFirstInterval")) { this.bottomOfFirstInterval = new Quantity(); return this.bottomOfFirstInterval; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Organization.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Organization.java index e41eb5cdec..bc9987c259 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Organization.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Organization.java @@ -1250,13 +1250,13 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.active"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.active"); } else if (name.equals("type")) { return addType(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.name"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.alias"); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("address")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OrganizationAffiliation.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OrganizationAffiliation.java index 9cae78c1b9..09be56df2c 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OrganizationAffiliation.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/OrganizationAffiliation.java @@ -1008,7 +1008,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type OrganizationAffiliation.active"); + throw new FHIRException("Cannot call addChild on a singleton property OrganizationAffiliation.active"); } else if (name.equals("period")) { this.period = new Period(); return this.period; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PackagedProductDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PackagedProductDefinition.java index ecfc471c7d..783ad25f37 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PackagedProductDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PackagedProductDefinition.java @@ -1131,7 +1131,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.package.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.package.quantity"); } else if (name.equals("material")) { return addMaterial(); } else if (name.equals("alternateMaterial")) { @@ -2990,7 +2990,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -3000,11 +3000,11 @@ public Base addChild(String name) throws FHIRException { this.status = new CodeableConcept(); return this.status; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.statusDate"); } else if (name.equals("containedItemQuantity")) { return addContainedItemQuantity(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.description"); } else if (name.equals("legalStatusOfSupply")) { return addLegalStatusOfSupply(); } else if (name.equals("marketingStatus")) { @@ -3012,7 +3012,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("characteristic")) { return addCharacteristic(); } else if (name.equals("copackagedIndicator")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.copackagedIndicator"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.copackagedIndicator"); } else if (name.equals("manufacturer")) { return addManufacturer(); } else if (name.equals("package")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ParameterDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ParameterDefinition.java index ff8b6e7b42..ba01f9ee5d 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ParameterDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ParameterDefinition.java @@ -686,19 +686,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.use"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.profile"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Parameters.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Parameters.java index bd3f9628f8..b5678d6d57 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Parameters.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Parameters.java @@ -1362,7 +1362,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Parameters.parameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property Parameters.parameter.name"); } else if (name.equals("valueBase64Binary")) { this.value = new Base64BinaryType(); return this.value; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Patient.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Patient.java index 705c55eb12..704b124441 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Patient.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Patient.java @@ -752,7 +752,7 @@ public Base addChild(String name) throws FHIRException { this.address = new Address(); return this.address; } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.contact.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.contact.gender"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; @@ -1048,7 +1048,7 @@ public Base addChild(String name) throws FHIRException { this.language = new CodeableConcept(); return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.communication.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.communication.preferred"); } else return super.addChild(name); } @@ -1306,7 +1306,7 @@ public Base addChild(String name) throws FHIRException { this.other = new Reference(); return this.other; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.link.type"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.link.type"); } else return super.addChild(name); } @@ -2705,15 +2705,15 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.active"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.active"); } else if (name.equals("name")) { return addName(); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.birthDate"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); return this.deceased; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PaymentNotice.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PaymentNotice.java index 54477563c9..1c68c270e5 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PaymentNotice.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PaymentNotice.java @@ -833,7 +833,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.status"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.status"); } else if (name.equals("request")) { this.request = new Reference(); return this.request; @@ -841,7 +841,7 @@ public Base addChild(String name) throws FHIRException { this.response = new Reference(); return this.response; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.created"); } else if (name.equals("provider")) { this.provider = new Reference(); return this.provider; @@ -849,7 +849,7 @@ public Base addChild(String name) throws FHIRException { this.payment = new Reference(); return this.payment; } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.paymentDate"); } else if (name.equals("payee")) { this.payee = new Reference(); return this.payee; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PaymentReconciliation.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PaymentReconciliation.java index 2e3adedba1..5694fb0e0a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PaymentReconciliation.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PaymentReconciliation.java @@ -675,7 +675,7 @@ public Base addChild(String name) throws FHIRException { this.response = new Reference(); return this.response; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.detail.date"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.detail.date"); } else if (name.equals("responsible")) { this.responsible = new Reference(); return this.responsible; @@ -969,9 +969,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.processNote.type"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.processNote.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.processNote.text"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.processNote.text"); } else return super.addChild(name); } @@ -2067,12 +2067,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.status"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.created"); } else if (name.equals("paymentIssuer")) { this.paymentIssuer = new Reference(); return this.paymentIssuer; @@ -2083,11 +2083,11 @@ public Base addChild(String name) throws FHIRException { this.requestor = new Reference(); return this.requestor; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.disposition"); } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.paymentDate"); } else if (name.equals("paymentAmount")) { this.paymentAmount = new Money(); return this.paymentAmount; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Period.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Period.java index 8a2983e45a..6251569811 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Period.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Period.java @@ -291,9 +291,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.start"); + throw new FHIRException("Cannot call addChild on a singleton property Period.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.end"); + throw new FHIRException("Cannot call addChild on a singleton property Period.end"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Person.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Person.java index 1e4d98fd6a..5aabd37013 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Person.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Person.java @@ -428,7 +428,7 @@ public Base addChild(String name) throws FHIRException { this.target = new Reference(); return this.target; } else if (name.equals("assurance")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.link.assurance"); + throw new FHIRException("Cannot call addChild on a singleton property Person.link.assurance"); } else return super.addChild(name); } @@ -1271,9 +1271,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Person.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Person.birthDate"); } else if (name.equals("address")) { return addAddress(); } else if (name.equals("photo")) { @@ -1283,7 +1283,7 @@ public Base addChild(String name) throws FHIRException { this.managingOrganization = new Reference(); return this.managingOrganization; } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.active"); + throw new FHIRException("Cannot call addChild on a singleton property Person.active"); } else if (name.equals("link")) { return addLink(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PlanDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PlanDefinition.java index 6e6a2d9e70..e8f32b2b92 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PlanDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PlanDefinition.java @@ -3575,15 +3575,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.prefix"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.description"); } else if (name.equals("textEquivalent")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.textEquivalent"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.textEquivalent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.priority"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.priority"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("reason")) { @@ -3591,7 +3591,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("documentation")) { return addDocumentation(); } else if (name.equals("goalId")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.goalId"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.goalId"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -3635,15 +3635,15 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("groupingBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.groupingBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.groupingBehavior"); } else if (name.equals("selectionBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.selectionBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.selectionBehavior"); } else if (name.equals("requiredBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.requiredBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.requiredBehavior"); } else if (name.equals("precheckBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.precheckBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.precheckBehavior"); } else if (name.equals("cardinalityBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.cardinalityBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.cardinalityBehavior"); } else if (name.equals("definitionCanonical")) { this.definition = new CanonicalType(); return this.definition; @@ -3651,7 +3651,7 @@ public Base addChild(String name) throws FHIRException { this.definition = new UriType(); return this.definition; } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.transform"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.transform"); } else if (name.equals("dynamicValue")) { return addDynamicValue(); } else if (name.equals("action")) { @@ -4018,7 +4018,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.condition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.condition.kind"); } else if (name.equals("expression")) { this.expression = new Expression(); return this.expression; @@ -4397,10 +4397,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("actionId")) { throw new FHIRException( - "Cannot call addChild on a primitive type PlanDefinition.action.relatedAction.actionId"); + "Cannot call addChild on a singleton property PlanDefinition.action.relatedAction.actionId"); } else if (name.equals("relationship")) { throw new FHIRException( - "Cannot call addChild on a primitive type PlanDefinition.action.relatedAction.relationship"); + "Cannot call addChild on a singleton property PlanDefinition.action.relatedAction.relationship"); } else if (name.equals("offsetDuration")) { this.offset = new Duration(); return this.offset; @@ -4658,7 +4658,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.participant.type"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.participant.type"); } else if (name.equals("role")) { this.role = new CodeableConcept(); return this.role; @@ -4949,7 +4949,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.dynamicValue.path"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.dynamicValue.path"); } else if (name.equals("expression")) { this.expression = new Expression(); return this.expression; @@ -7801,24 +7801,24 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.subtitle"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -7829,27 +7829,27 @@ public Base addChild(String name) throws FHIRException { this.subject = new CanonicalType(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -7866,7 +7866,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.library"); } else if (name.equals("goal")) { return addGoal(); } else if (name.equals("action")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Practitioner.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Practitioner.java index ff8486abc7..c2a897b21f 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Practitioner.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Practitioner.java @@ -1299,7 +1299,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.active"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.active"); } else if (name.equals("name")) { return addName(); } else if (name.equals("telecom")) { @@ -1307,9 +1307,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("address")) { return addAddress(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.birthDate"); } else if (name.equals("photo")) { return addPhoto(); } else if (name.equals("qualification")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PractitionerRole.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PractitionerRole.java index 39ed762a99..9bcf9afe99 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PractitionerRole.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/PractitionerRole.java @@ -466,15 +466,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availableTime.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availableTime.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availableTime.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availableTime.allDay"); } else if (name.equals("availableStartTime")) { throw new FHIRException( - "Cannot call addChild on a primitive type PractitionerRole.availableTime.availableStartTime"); + "Cannot call addChild on a singleton property PractitionerRole.availableTime.availableStartTime"); } else if (name.equals("availableEndTime")) { throw new FHIRException( - "Cannot call addChild on a primitive type PractitionerRole.availableTime.availableEndTime"); + "Cannot call addChild on a singleton property PractitionerRole.availableTime.availableEndTime"); } else return super.addChild(name); } @@ -739,7 +739,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.notAvailable.description"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.notAvailable.description"); } else if (name.equals("during")) { this.during = new Period(); return this.during; @@ -1913,7 +1913,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.active"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.active"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1938,7 +1938,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("notAvailable")) { return addNotAvailable(); } else if (name.equals("availabilityExceptions")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.availabilityExceptions"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.availabilityExceptions"); } else if (name.equals("endpoint")) { return addEndpoint(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Procedure.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Procedure.java index 1e7f016b3f..870ff3e3e7 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Procedure.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Procedure.java @@ -2823,15 +2823,15 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.status"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ProdCharacteristic.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ProdCharacteristic.java index ffb61ab189..eb24927ff4 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ProdCharacteristic.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ProdCharacteristic.java @@ -906,11 +906,11 @@ public Base addChild(String name) throws FHIRException { this.externalDiameter = new Quantity(); return this.externalDiameter; } else if (name.equals("shape")) { - throw new FHIRException("Cannot call addChild on a primitive type ProdCharacteristic.shape"); + throw new FHIRException("Cannot call addChild on a singleton property ProdCharacteristic.shape"); } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type ProdCharacteristic.color"); + throw new FHIRException("Cannot call addChild on a singleton property ProdCharacteristic.color"); } else if (name.equals("imprint")) { - throw new FHIRException("Cannot call addChild on a primitive type ProdCharacteristic.imprint"); + throw new FHIRException("Cannot call addChild on a singleton property ProdCharacteristic.imprint"); } else if (name.equals("image")) { return addImage(); } else if (name.equals("scoring")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Provenance.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Provenance.java index 83711abb88..abbaab24b6 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Provenance.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Provenance.java @@ -921,7 +921,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("role")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.entity.role"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.entity.role"); } else if (name.equals("what")) { this.what = new Reference(); return this.what; @@ -1839,9 +1839,9 @@ public Base addChild(String name) throws FHIRException { this.occurred = new DateTimeType(); return this.occurred; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.recorded"); } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.policy"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.policy"); } else if (name.equals("location")) { this.location = new Reference(); return this.location; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Quantity.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Quantity.java index 68369fcfd5..041769c465 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Quantity.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Quantity.java @@ -613,15 +613,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.value"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.value"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.comparator"); } else if (name.equals("unit")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.unit"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.unit"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.system"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.system"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.code"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.code"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Questionnaire.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Questionnaire.java index 89af6271f7..a4b452af91 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Questionnaire.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Questionnaire.java @@ -2313,31 +2313,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.linkId"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.definition"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.prefix"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.text"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.text"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.type"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.type"); } else if (name.equals("enableWhen")) { return addEnableWhen(); } else if (name.equals("enableBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.enableBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.enableBehavior"); } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.required"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.required"); } else if (name.equals("repeats")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.repeats"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.repeats"); } else if (name.equals("readOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.readOnly"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.readOnly"); } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.maxLength"); } else if (name.equals("answerValueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.answerValueSet"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.answerValueSet"); } else if (name.equals("answerOption")) { return addAnswerOption(); } else if (name.equals("initial")) { @@ -2994,9 +2994,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("question")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.enableWhen.question"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.enableWhen.question"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.enableWhen.operator"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.enableWhen.operator"); } else if (name.equals("answerBoolean")) { this.answer = new BooleanType(); return this.answer; @@ -3427,7 +3427,7 @@ public Base addChild(String name) throws FHIRException { return this.value; } else if (name.equals("initialSelected")) { throw new FHIRException( - "Cannot call addChild on a primitive type Questionnaire.item.answerOption.initialSelected"); + "Cannot call addChild on a singleton property Questionnaire.item.answerOption.initialSelected"); } else return super.addChild(name); } @@ -5901,43 +5901,43 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.url"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.version"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.name"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.title"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.title"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.derivedFrom"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.status"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.experimental"); } else if (name.equals("subjectType")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.subjectType"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.subjectType"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.date"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.description"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/QuestionnaireResponse.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/QuestionnaireResponse.java index 75d97ccf67..1a5582381c 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/QuestionnaireResponse.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/QuestionnaireResponse.java @@ -722,11 +722,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.item.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.item.linkId"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.item.definition"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.item.definition"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.item.text"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.item.text"); } else if (name.equals("answer")) { return addAnswer(); } else if (name.equals("item")) { @@ -2181,9 +2181,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("questionnaire")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.questionnaire"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.questionnaire"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.status"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; @@ -2191,7 +2191,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("authored")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.authored"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.authored"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Reference.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Reference.java index 4b235db160..bb6609f612 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Reference.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Reference.java @@ -547,14 +547,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.reference"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.type"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.type"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.display"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.display"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RegulatedAuthorization.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RegulatedAuthorization.java index 676d371e71..95887ca0c1 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RegulatedAuthorization.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RegulatedAuthorization.java @@ -1496,14 +1496,14 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type RegulatedAuthorization.description"); + throw new FHIRException("Cannot call addChild on a singleton property RegulatedAuthorization.description"); } else if (name.equals("region")) { return addRegion(); } else if (name.equals("status")) { this.status = new CodeableConcept(); return this.status; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RegulatedAuthorization.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property RegulatedAuthorization.statusDate"); } else if (name.equals("validityPeriod")) { this.validityPeriod = new Period(); return this.validityPeriod; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RelatedArtifact.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RelatedArtifact.java index 2c0889ea7b..8d2ffb15d5 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RelatedArtifact.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RelatedArtifact.java @@ -922,20 +922,20 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.type"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.type"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.label"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.label"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.display"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.display"); } else if (name.equals("citation")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.citation"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.citation"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.url"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.url"); } else if (name.equals("document")) { this.document = new Attachment(); return this.document; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.resource"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.resource"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RelatedPerson.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RelatedPerson.java index 6bfa3abc96..03e676c55b 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RelatedPerson.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RelatedPerson.java @@ -277,7 +277,7 @@ public Base addChild(String name) throws FHIRException { this.language = new CodeableConcept(); return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.communication.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.communication.preferred"); } else return super.addChild(name); } @@ -1299,7 +1299,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.active"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.active"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -1310,9 +1310,9 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.gender"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.birthDate"); } else if (name.equals("address")) { return addAddress(); } else if (name.equals("photo")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RequestGroup.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RequestGroup.java index daa9b7c0ce..8c04b75355 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RequestGroup.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RequestGroup.java @@ -1717,15 +1717,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.prefix"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.title"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.description"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.description"); } else if (name.equals("textEquivalent")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.textEquivalent"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.textEquivalent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.priority"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.priority"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("documentation")) { @@ -1758,15 +1758,15 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("groupingBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.groupingBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.groupingBehavior"); } else if (name.equals("selectionBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.selectionBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.selectionBehavior"); } else if (name.equals("requiredBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.requiredBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.requiredBehavior"); } else if (name.equals("precheckBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.precheckBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.precheckBehavior"); } else if (name.equals("cardinalityBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.cardinalityBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.cardinalityBehavior"); } else if (name.equals("resource")) { this.resource = new Reference(); return this.resource; @@ -2089,7 +2089,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.condition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.condition.kind"); } else if (name.equals("expression")) { this.expression = new Expression(); return this.expression; @@ -2467,10 +2467,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("actionId")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.relatedAction.actionId"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.action.relatedAction.actionId"); } else if (name.equals("relationship")) { throw new FHIRException( - "Cannot call addChild on a primitive type RequestGroup.action.relatedAction.relationship"); + "Cannot call addChild on a singleton property RequestGroup.action.relatedAction.relationship"); } else if (name.equals("offsetDuration")) { this.offset = new Duration(); return this.offset; @@ -3955,9 +3955,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("replaces")) { @@ -3966,11 +3966,11 @@ public Base addChild(String name) throws FHIRException { this.groupIdentifier = new Identifier(); return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.status"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.intent"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.priority"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.priority"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -3981,7 +3981,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property RequestGroup.authoredOn"); } else if (name.equals("author")) { this.author = new Reference(); return this.author; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchDefinition.java index 13a73daf9e..a2f80a86dd 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchDefinition.java @@ -2974,23 +2974,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.title"); } else if (name.equals("shortTitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.shortTitle"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.shortTitle"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -2998,29 +2998,29 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.description"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.comment"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -3037,7 +3037,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchDefinition.library"); } else if (name.equals("population")) { this.population = new Reference(); return this.population; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchElementDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchElementDefinition.java index b79b83c994..123bf4a472 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchElementDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchElementDefinition.java @@ -1520,13 +1520,13 @@ public Base addChild(String name) throws FHIRException { return addUsageContext(); } else if (name.equals("exclude")) { throw new FHIRException( - "Cannot call addChild on a primitive type ResearchElementDefinition.characteristic.exclude"); + "Cannot call addChild on a singleton property ResearchElementDefinition.characteristic.exclude"); } else if (name.equals("unitOfMeasure")) { this.unitOfMeasure = new CodeableConcept(); return this.unitOfMeasure; } else if (name.equals("studyEffectiveDescription")) { throw new FHIRException( - "Cannot call addChild on a primitive type ResearchElementDefinition.characteristic.studyEffectiveDescription"); + "Cannot call addChild on a singleton property ResearchElementDefinition.characteristic.studyEffectiveDescription"); } else if (name.equals("studyEffectiveDateTime")) { this.studyEffective = new DateTimeType(); return this.studyEffective; @@ -1544,10 +1544,10 @@ public Base addChild(String name) throws FHIRException { return this.studyEffectiveTimeFromStart; } else if (name.equals("studyEffectiveGroupMeasure")) { throw new FHIRException( - "Cannot call addChild on a primitive type ResearchElementDefinition.characteristic.studyEffectiveGroupMeasure"); + "Cannot call addChild on a singleton property ResearchElementDefinition.characteristic.studyEffectiveGroupMeasure"); } else if (name.equals("participantEffectiveDescription")) { throw new FHIRException( - "Cannot call addChild on a primitive type ResearchElementDefinition.characteristic.participantEffectiveDescription"); + "Cannot call addChild on a singleton property ResearchElementDefinition.characteristic.participantEffectiveDescription"); } else if (name.equals("participantEffectiveDateTime")) { this.participantEffective = new DateTimeType(); return this.participantEffective; @@ -1565,7 +1565,7 @@ public Base addChild(String name) throws FHIRException { return this.participantEffectiveTimeFromStart; } else if (name.equals("participantEffectiveGroupMeasure")) { throw new FHIRException( - "Cannot call addChild on a primitive type ResearchElementDefinition.characteristic.participantEffectiveGroupMeasure"); + "Cannot call addChild on a singleton property ResearchElementDefinition.characteristic.participantEffectiveGroupMeasure"); } else return super.addChild(name); } @@ -4620,23 +4620,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.title"); } else if (name.equals("shortTitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.shortTitle"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.shortTitle"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); return this.subject; @@ -4644,29 +4644,29 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.description"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.comment"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; @@ -4683,11 +4683,11 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.library"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.type"); } else if (name.equals("variableType")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchElementDefinition.variableType"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchElementDefinition.variableType"); } else if (name.equals("characteristic")) { return addCharacteristic(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchStudy.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchStudy.java index b41df914f8..ae5fbba073 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchStudy.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchStudy.java @@ -652,12 +652,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.arm.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.arm.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.arm.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.arm.description"); } else return super.addChild(name); } @@ -901,7 +901,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.objective.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.objective.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2824,13 +2824,13 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.title"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.title"); } else if (name.equals("protocol")) { return addProtocol(); } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.status"); } else if (name.equals("primaryPurposeType")) { this.primaryPurposeType = new CodeableConcept(); return this.primaryPurposeType; @@ -2852,7 +2852,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("location")) { return addLocation(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.description"); } else if (name.equals("enrollment")) { return addEnrollment(); } else if (name.equals("period")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchSubject.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchSubject.java index 648bbfa07a..c40c006509 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchSubject.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResearchSubject.java @@ -999,7 +999,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -1010,9 +1010,9 @@ public Base addChild(String name) throws FHIRException { this.individual = new Reference(); return this.individual; } else if (name.equals("assignedArm")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.assignedArm"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.assignedArm"); } else if (name.equals("actualArm")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.actualArm"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.actualArm"); } else if (name.equals("consent")) { this.consent = new Reference(); return this.consent; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Resource.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Resource.java index f5a2c1410e..b48bd72f9a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Resource.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Resource.java @@ -450,14 +450,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.id"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.id"); } else if (name.equals("meta")) { this.meta = new Meta(); return this.meta; } else if (name.equals("implicitRules")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.implicitRules"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.implicitRules"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.language"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.language"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RiskAssessment.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RiskAssessment.java index d339939131..3b36d2db19 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RiskAssessment.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RiskAssessment.java @@ -633,7 +633,7 @@ public Base addChild(String name) throws FHIRException { this.qualitativeRisk = new CodeableConcept(); return this.qualitativeRisk; } else if (name.equals("relativeRisk")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.prediction.relativeRisk"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.prediction.relativeRisk"); } else if (name.equals("whenPeriod")) { this.when = new Period(); return this.when; @@ -641,7 +641,7 @@ public Base addChild(String name) throws FHIRException { this.when = new Range(); return this.when; } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.prediction.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.prediction.rationale"); } else return super.addChild(name); } @@ -1911,7 +1911,7 @@ public Base addChild(String name) throws FHIRException { this.parent = new Reference(); return this.parent; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.status"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.status"); } else if (name.equals("method")) { this.method = new CodeableConcept(); return this.method; @@ -1945,7 +1945,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("prediction")) { return addPrediction(); } else if (name.equals("mitigation")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.mitigation"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.mitigation"); } else if (name.equals("note")) { return addNote(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SampledData.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SampledData.java index 823392da4a..8bde2e6f3f 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SampledData.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SampledData.java @@ -784,17 +784,17 @@ public Base addChild(String name) throws FHIRException { this.origin = new Quantity(); return this.origin; } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.period"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.period"); } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.factor"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.factor"); } else if (name.equals("lowerLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.lowerLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.lowerLimit"); } else if (name.equals("upperLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.upperLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.upperLimit"); } else if (name.equals("dimensions")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.dimensions"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.dimensions"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.data"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.data"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Schedule.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Schedule.java index 5859fc7f21..04e89ed55d 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Schedule.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Schedule.java @@ -773,7 +773,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.active"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.active"); } else if (name.equals("serviceCategory")) { return addServiceCategory(); } else if (name.equals("serviceType")) { @@ -786,7 +786,7 @@ public Base addChild(String name) throws FHIRException { this.planningHorizon = new Period(); return this.planningHorizon; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SearchParameter.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SearchParameter.java index a08ed2ca01..888ced99a1 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SearchParameter.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SearchParameter.java @@ -1073,9 +1073,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.component.definition"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.component.definition"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.component.expression"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.component.expression"); } else return super.addChild(name); } @@ -3496,55 +3496,55 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.url"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.version"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.name"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.derivedFrom"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.status"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.date"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.description"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.purpose"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.code"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.code"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.base"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.base"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.type"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.type"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.expression"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.expression"); } else if (name.equals("xpath")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.xpath"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.xpath"); } else if (name.equals("xpathUsage")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.xpathUsage"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.xpathUsage"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.target"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.target"); } else if (name.equals("multipleOr")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.multipleOr"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.multipleOr"); } else if (name.equals("multipleAnd")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.multipleAnd"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.multipleAnd"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.comparator"); } else if (name.equals("modifier")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.modifier"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.modifier"); } else if (name.equals("chain")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.chain"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.chain"); } else if (name.equals("component")) { return addComponent(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ServiceRequest.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ServiceRequest.java index fe9deea34a..81fa65f785 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ServiceRequest.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ServiceRequest.java @@ -2827,9 +2827,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("replaces")) { @@ -2838,15 +2838,15 @@ public Base addChild(String name) throws FHIRException { this.requisition = new Identifier(); return this.requisition; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.doNotPerform"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; @@ -2883,7 +2883,7 @@ public Base addChild(String name) throws FHIRException { this.asNeeded = new CodeableConcept(); return this.asNeeded; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; @@ -2911,7 +2911,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("note")) { return addNote(); } else if (name.equals("patientInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.patientInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.patientInstruction"); } else if (name.equals("relevantHistory")) { return addRelevantHistory(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Signature.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Signature.java index b0faea35df..4944181a37 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Signature.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Signature.java @@ -666,7 +666,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("type")) { return addType(); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.when"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.when"); } else if (name.equals("who")) { this.who = new Reference(); return this.who; @@ -674,11 +674,11 @@ public Base addChild(String name) throws FHIRException { this.onBehalfOf = new Reference(); return this.onBehalfOf; } else if (name.equals("targetFormat")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.targetFormat"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.targetFormat"); } else if (name.equals("sigFormat")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.sigFormat"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.sigFormat"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.data"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.data"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Slot.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Slot.java index e450e7d257..a068efca8f 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Slot.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Slot.java @@ -1147,15 +1147,15 @@ public Base addChild(String name) throws FHIRException { this.schedule = new Reference(); return this.schedule; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.status"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.status"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.start"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.end"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.end"); } else if (name.equals("overbooked")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.overbooked"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.overbooked"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.comment"); } else return super.addChild(name); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Specimen.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Specimen.java index 458d73373c..bc705f7964 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Specimen.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Specimen.java @@ -1200,7 +1200,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.processing.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.processing.description"); } else if (name.equals("procedure")) { this.procedure = new CodeableConcept(); return this.procedure; @@ -1756,7 +1756,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.container.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.container.description"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2841,7 +2841,7 @@ public Base addChild(String name) throws FHIRException { this.accessionIdentifier = new Identifier(); return this.accessionIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.status"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -2849,7 +2849,7 @@ public Base addChild(String name) throws FHIRException { this.subject = new Reference(); return this.subject; } else if (name.equals("receivedTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.receivedTime"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.receivedTime"); } else if (name.equals("parent")) { return addParent(); } else if (name.equals("request")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SpecimenDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SpecimenDefinition.java index d964e2d6e0..e3a809afe3 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SpecimenDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SpecimenDefinition.java @@ -800,17 +800,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("isDerived")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.typeTested.isDerived"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.typeTested.isDerived"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("preference")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.typeTested.preference"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.typeTested.preference"); } else if (name.equals("container")) { this.container = new SpecimenDefinitionTypeTestedContainerComponent(); return this.container; } else if (name.equals("requirement")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.typeTested.requirement"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.typeTested.requirement"); } else if (name.equals("retentionTime")) { this.retentionTime = new Duration(); return this.retentionTime; @@ -1502,7 +1502,7 @@ public Base addChild(String name) throws FHIRException { return this.cap; } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type SpecimenDefinition.typeTested.container.description"); + "Cannot call addChild on a singleton property SpecimenDefinition.typeTested.container.description"); } else if (name.equals("capacity")) { this.capacity = new Quantity(); return this.capacity; @@ -1516,7 +1516,7 @@ public Base addChild(String name) throws FHIRException { return addAdditive(); } else if (name.equals("preparation")) { throw new FHIRException( - "Cannot call addChild on a primitive type SpecimenDefinition.typeTested.container.preparation"); + "Cannot call addChild on a singleton property SpecimenDefinition.typeTested.container.preparation"); } else return super.addChild(name); } @@ -2143,7 +2143,7 @@ public Base addChild(String name) throws FHIRException { return this.maxDuration; } else if (name.equals("instruction")) { throw new FHIRException( - "Cannot call addChild on a primitive type SpecimenDefinition.typeTested.handling.instruction"); + "Cannot call addChild on a singleton property SpecimenDefinition.typeTested.handling.instruction"); } else return super.addChild(name); } @@ -2693,7 +2693,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("patientPreparation")) { return addPatientPreparation(); } else if (name.equals("timeAspect")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.timeAspect"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.timeAspect"); } else if (name.equals("collection")) { return addCollection(); } else if (name.equals("typeTested")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Statistic.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Statistic.java index 2438d1d4a3..db76c9a019 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Statistic.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Statistic.java @@ -509,15 +509,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.sampleSize.description"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.sampleSize.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("numberOfStudies")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.sampleSize.numberOfStudies"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.sampleSize.numberOfStudies"); } else if (name.equals("numberOfParticipants")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.sampleSize.numberOfParticipants"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.sampleSize.numberOfParticipants"); } else if (name.equals("knownDataCount")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.sampleSize.knownDataCount"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.sampleSize.knownDataCount"); } else return super.addChild(name); } @@ -1129,7 +1129,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.attributeEstimate.description"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.attributeEstimate.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("type")) { @@ -1139,7 +1139,7 @@ public Base addChild(String name) throws FHIRException { this.quantity = new Quantity(); return this.quantity; } else if (name.equals("level")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.attributeEstimate.level"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.attributeEstimate.level"); } else if (name.equals("range")) { this.range = new Range(); return this.range; @@ -1679,7 +1679,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type Statistic.attributeEstimate.attributeEstimate.description"); + "Cannot call addChild on a singleton property Statistic.attributeEstimate.attributeEstimate.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("type")) { @@ -1690,7 +1690,7 @@ public Base addChild(String name) throws FHIRException { return this.quantity; } else if (name.equals("level")) { throw new FHIRException( - "Cannot call addChild on a primitive type Statistic.attributeEstimate.attributeEstimate.level"); + "Cannot call addChild on a singleton property Statistic.attributeEstimate.attributeEstimate.level"); } else if (name.equals("range")) { this.range = new Range(); return this.range; @@ -2532,7 +2532,7 @@ public Base addChild(String name) throws FHIRException { return this.variableDefinition; } else if (name.equals("handling")) { throw new FHIRException( - "Cannot call addChild on a primitive type Statistic.modelCharacteristic.variable.handling"); + "Cannot call addChild on a singleton property Statistic.modelCharacteristic.variable.handling"); } else if (name.equals("valueCategory")) { return addValueCategory(); } else if (name.equals("valueQuantity")) { @@ -3357,7 +3357,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.description"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("statisticType")) { @@ -3370,9 +3370,9 @@ public Base addChild(String name) throws FHIRException { this.quantity = new Quantity(); return this.quantity; } else if (name.equals("numberOfEvents")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.numberOfEvents"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.numberOfEvents"); } else if (name.equals("numberAffected")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.numberAffected"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.numberAffected"); } else if (name.equals("sampleSize")) { this.sampleSize = new StatisticSampleSizeComponent(); return this.sampleSize; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/StructureDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/StructureDefinition.java index 54d951fc1e..b14a912027 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/StructureDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/StructureDefinition.java @@ -890,13 +890,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.mapping.identity"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.mapping.identity"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.mapping.uri"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.mapping.uri"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.mapping.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.mapping.name"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.mapping.comment"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.mapping.comment"); } else return super.addChild(name); } @@ -1184,9 +1184,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.context.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.context.type"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.context.expression"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.context.expression"); } else return super.addChild(name); } @@ -4062,55 +4062,55 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.copyright"); } else if (name.equals("keyword")) { return addKeyword(); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.fhirVersion"); } else if (name.equals("mapping")) { return addMapping(); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.kind"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.abstract"); } else if (name.equals("context")) { return addContext(); } else if (name.equals("contextInvariant")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.contextInvariant"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.contextInvariant"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.type"); } else if (name.equals("baseDefinition")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.baseDefinition"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.baseDefinition"); } else if (name.equals("derivation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.derivation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.derivation"); } else if (name.equals("snapshot")) { this.snapshot = new StructureDefinitionSnapshotComponent(); return this.snapshot; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/StructureMap.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/StructureMap.java index 274d448e59..994aed1fa7 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/StructureMap.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/StructureMap.java @@ -1756,13 +1756,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.structure.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.structure.url"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.structure.mode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.structure.mode"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.structure.alias"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.structure.alias"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.structure.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.structure.documentation"); } else return super.addChild(name); } @@ -2371,13 +2371,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.name"); } else if (name.equals("extends")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.extends"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.extends"); } else if (name.equals("typeMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.typeMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.typeMode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.documentation"); } else if (name.equals("input")) { return addInput(); } else if (name.equals("rule")) { @@ -2826,13 +2826,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.input.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.input.name"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.input.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.input.type"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.input.mode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.input.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.input.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.input.documentation"); } else return super.addChild(name); } @@ -3421,7 +3421,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.name"); } else if (name.equals("source")) { return addSource(); } else if (name.equals("target")) { @@ -3431,7 +3431,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("dependent")) { return addDependent(); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.documentation"); } else return super.addChild(name); } @@ -5474,13 +5474,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.context"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.min"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.max"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.max"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.type"); } else if (name.equals("defaultValueBase64Binary")) { this.defaultValue = new Base64BinaryType(); return this.defaultValue; @@ -5632,17 +5632,17 @@ public Base addChild(String name) throws FHIRException { this.defaultValue = new Meta(); return this.defaultValue; } else if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.element"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.element"); } else if (name.equals("listMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.listMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.listMode"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.variable"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.condition"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.condition"); } else if (name.equals("check")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.check"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.check"); } else if (name.equals("logMessage")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.logMessage"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.logMessage"); } else return super.addChild(name); } @@ -6412,19 +6412,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.context"); } else if (name.equals("contextType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.contextType"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.contextType"); } else if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.element"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.element"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.variable"); } else if (name.equals("listMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.listMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.listMode"); } else if (name.equals("listRuleId")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.listRuleId"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.listRuleId"); } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.transform"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.transform"); } else if (name.equals("parameter")) { return addParameter(); } else @@ -7027,9 +7027,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.dependent.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.dependent.name"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.dependent.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.dependent.variable"); } else return super.addChild(name); } @@ -8724,39 +8724,39 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.title"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.copyright"); } else if (name.equals("structure")) { return addStructure(); } else if (name.equals("import")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.import"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.import"); } else if (name.equals("group")) { return addGroup(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Subscription.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Subscription.java index b8499efcd2..b510ff0235 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Subscription.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Subscription.java @@ -660,13 +660,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.channel.type"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.channel.type"); } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.channel.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.channel.endpoint"); } else if (name.equals("payload")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.channel.payload"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.channel.payload"); } else if (name.equals("header")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.channel.header"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.channel.header"); } else return super.addChild(name); } @@ -1329,17 +1329,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.status"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.status"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.end"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.end"); } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.reason"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.reason"); } else if (name.equals("criteria")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.criteria"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.criteria"); } else if (name.equals("error")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.error"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.error"); } else if (name.equals("channel")) { this.channel = new SubscriptionChannelComponent(); return this.channel; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubscriptionStatus.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubscriptionStatus.java index d65f200879..8a4c6e117f 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubscriptionStatus.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubscriptionStatus.java @@ -618,10 +618,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("eventNumber")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionStatus.notificationEvent.eventNumber"); + "Cannot call addChild on a singleton property SubscriptionStatus.notificationEvent.eventNumber"); } else if (name.equals("timestamp")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionStatus.notificationEvent.timestamp"); + "Cannot call addChild on a singleton property SubscriptionStatus.notificationEvent.timestamp"); } else if (name.equals("focus")) { this.focus = new Reference(); return this.focus; @@ -1412,21 +1412,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.status"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionStatus.status"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.type"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionStatus.type"); } else if (name.equals("eventsSinceSubscriptionStart")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionStatus.eventsSinceSubscriptionStart"); + "Cannot call addChild on a singleton property SubscriptionStatus.eventsSinceSubscriptionStart"); } else if (name.equals("eventsInNotification")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.eventsInNotification"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionStatus.eventsInNotification"); } else if (name.equals("notificationEvent")) { return addNotificationEvent(); } else if (name.equals("subscription")) { this.subscription = new Reference(); return this.subscription; } else if (name.equals("topic")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.topic"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionStatus.topic"); } else if (name.equals("error")) { return addError(); } else diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubscriptionTopic.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubscriptionTopic.java index 965a97fe52..cbbec1e66a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubscriptionTopic.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubscriptionTopic.java @@ -1233,18 +1233,18 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.description"); + "Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.description"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.resource"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.resource"); } else if (name.equals("supportedInteraction")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.supportedInteraction"); + "Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.supportedInteraction"); } else if (name.equals("queryCriteria")) { this.queryCriteria = new SubscriptionTopicResourceTriggerQueryCriteriaComponent(); return this.queryCriteria; } else if (name.equals("fhirPathCriteria")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.fhirPathCriteria"); + "Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.fhirPathCriteria"); } else return super.addChild(name); } @@ -1814,19 +1814,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("previous")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.previous"); + "Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.queryCriteria.previous"); } else if (name.equals("resultForCreate")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.resultForCreate"); + "Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.queryCriteria.resultForCreate"); } else if (name.equals("current")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.current"); + "Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.queryCriteria.current"); } else if (name.equals("resultForDelete")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.resultForDelete"); + "Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.queryCriteria.resultForDelete"); } else if (name.equals("requireBoth")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.requireBoth"); + "Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.queryCriteria.requireBoth"); } else return super.addChild(name); } @@ -2214,12 +2214,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.eventTrigger.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.eventTrigger.description"); } else if (name.equals("event")) { this.event = new CodeableConcept(); return this.event; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.eventTrigger.resource"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.eventTrigger.resource"); } else return super.addChild(name); } @@ -2711,14 +2711,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.canFilterBy.description"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.resource"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.canFilterBy.resource"); } else if (name.equals("filterParameter")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.filterParameter"); + "Cannot call addChild on a singleton property SubscriptionTopic.canFilterBy.filterParameter"); } else if (name.equals("modifier")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.modifier"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.canFilterBy.modifier"); } else return super.addChild(name); } @@ -3167,12 +3167,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("resource")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.notificationShape.resource"); + "Cannot call addChild on a singleton property SubscriptionTopic.notificationShape.resource"); } else if (name.equals("include")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.notificationShape.include"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.notificationShape.include"); } else if (name.equals("revInclude")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubscriptionTopic.notificationShape.revInclude"); + "Cannot call addChild on a singleton property SubscriptionTopic.notificationShape.revInclude"); } else return super.addChild(name); } @@ -5187,39 +5187,39 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.url"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.version"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.version"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.title"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.title"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.derivedFrom"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.status"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.date"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Substance.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Substance.java index 5eae2c3a47..5329e84529 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Substance.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Substance.java @@ -446,7 +446,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.instance.expiry"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.instance.expiry"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); return this.quantity; @@ -1388,14 +1388,14 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.status"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.description"); } else if (name.equals("instance")) { return addInstance(); } else if (name.equals("ingredient")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubstanceAmount.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubstanceAmount.java index ba290f7713..d51dd3fb80 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubstanceAmount.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubstanceAmount.java @@ -676,7 +676,7 @@ public Base addChild(String name) throws FHIRException { this.amountType = new CodeableConcept(); return this.amountType; } else if (name.equals("amountText")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceAmount.amountText"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceAmount.amountText"); } else if (name.equals("referenceRange")) { this.referenceRange = new SubstanceAmountReferenceRangeComponent(); return this.referenceRange; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubstanceDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubstanceDefinition.java index 8be79dd2ab..43d9891bf6 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubstanceDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SubstanceDefinition.java @@ -614,7 +614,7 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.moiety.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.moiety.name"); } else if (name.equals("stereochemistry")) { this.stereochemistry = new CodeableConcept(); return this.stereochemistry; @@ -622,7 +622,7 @@ public Base addChild(String name) throws FHIRException { this.opticalActivity = new CodeableConcept(); return this.opticalActivity; } else if (name.equals("molecularFormula")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.moiety.molecularFormula"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.moiety.molecularFormula"); } else if (name.equals("amountQuantity")) { this.amount = new Quantity(); return this.amount; @@ -1957,10 +1957,10 @@ public Base addChild(String name) throws FHIRException { return this.opticalActivity; } else if (name.equals("molecularFormula")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubstanceDefinition.structure.molecularFormula"); + "Cannot call addChild on a singleton property SubstanceDefinition.structure.molecularFormula"); } else if (name.equals("molecularFormulaByMoiety")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubstanceDefinition.structure.molecularFormulaByMoiety"); + "Cannot call addChild on a singleton property SubstanceDefinition.structure.molecularFormulaByMoiety"); } else if (name.equals("molecularWeight")) { this.molecularWeight = new SubstanceDefinitionMolecularWeightComponent(); return this.molecularWeight; @@ -2373,7 +2373,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("representation")) { throw new FHIRException( - "Cannot call addChild on a primitive type SubstanceDefinition.structure.representation.representation"); + "Cannot call addChild on a singleton property SubstanceDefinition.structure.representation.representation"); } else if (name.equals("format")) { this.format = new CodeableConcept(); return this.format; @@ -2841,7 +2841,7 @@ public Base addChild(String name) throws FHIRException { this.status = new CodeableConcept(); return this.status; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.code.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.code.statusDate"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("source")) { @@ -3789,7 +3789,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.name.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.name.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -3797,7 +3797,7 @@ public Base addChild(String name) throws FHIRException { this.status = new CodeableConcept(); return this.status; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.name.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.name.preferred"); } else if (name.equals("language")) { return addLanguage(); } else if (name.equals("domain")) { @@ -4156,7 +4156,7 @@ public Base addChild(String name) throws FHIRException { this.status = new CodeableConcept(); return this.status; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.name.official.date"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.name.official.date"); } else return super.addChild(name); } @@ -4838,7 +4838,7 @@ public Base addChild(String name) throws FHIRException { this.type = new CodeableConcept(); return this.type; } else if (name.equals("isDefining")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.relationship.isDefining"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.relationship.isDefining"); } else if (name.equals("amountQuantity")) { this.amount = new Quantity(); return this.amount; @@ -6800,7 +6800,7 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.version"); } else if (name.equals("status")) { this.status = new CodeableConcept(); return this.status; @@ -6812,7 +6812,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("grade")) { return addGrade(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.description"); } else if (name.equals("informationSource")) { return addInformationSource(); } else if (name.equals("note")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SupplyDelivery.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SupplyDelivery.java index cf02361b60..2139373dcd 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SupplyDelivery.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SupplyDelivery.java @@ -1337,7 +1337,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyDelivery.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyDelivery.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SupplyRequest.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SupplyRequest.java index 5b108697cd..de63f909f1 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SupplyRequest.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/SupplyRequest.java @@ -1775,12 +1775,12 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.status"); } else if (name.equals("category")) { this.category = new CodeableConcept(); return this.category; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.priority"); } else if (name.equals("itemCodeableConcept")) { this.item = new CodeableConcept(); return this.item; @@ -1802,7 +1802,7 @@ public Base addChild(String name) throws FHIRException { this.occurrence = new Timing(); return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Task.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Task.java index 07dbd50ff1..73cf765cd0 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Task.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Task.java @@ -929,7 +929,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("repetitions")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.restriction.repetitions"); + throw new FHIRException("Cannot call addChild on a singleton property Task.restriction.repetitions"); } else if (name.equals("period")) { this.period = new Period(); return this.period; @@ -5903,9 +5903,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property Task.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Task.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("groupIdentifier")) { @@ -5914,7 +5914,7 @@ public Base addChild(String name) throws FHIRException { } else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.status"); + throw new FHIRException("Cannot call addChild on a singleton property Task.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; @@ -5922,14 +5922,14 @@ public Base addChild(String name) throws FHIRException { this.businessStatus = new CodeableConcept(); return this.businessStatus; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.intent"); + throw new FHIRException("Cannot call addChild on a singleton property Task.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Task.priority"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.description"); + throw new FHIRException("Cannot call addChild on a singleton property Task.description"); } else if (name.equals("focus")) { this.focus = new Reference(); return this.focus; @@ -5943,9 +5943,9 @@ public Base addChild(String name) throws FHIRException { this.executionPeriod = new Period(); return this.executionPeriod; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property Task.authoredOn"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Task.lastModified"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TerminologyCapabilities.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TerminologyCapabilities.java index 4a22837e13..de77e87e48 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TerminologyCapabilities.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TerminologyCapabilities.java @@ -404,9 +404,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.software.name"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.software.name"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.software.version"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.software.version"); } else return super.addChild(name); } @@ -689,9 +689,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.implementation.description"); + "Cannot call addChild on a singleton property TerminologyCapabilities.implementation.description"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.implementation.url"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.implementation.url"); } else return super.addChild(name); } @@ -1041,12 +1041,12 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.uri"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.uri"); } else if (name.equals("version")) { return addVersion(); } else if (name.equals("subsumption")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.subsumption"); + "Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.subsumption"); } else return super.addChild(name); } @@ -1655,21 +1655,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.code"); + "Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.code"); } else if (name.equals("isDefault")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.isDefault"); + "Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.isDefault"); } else if (name.equals("compositional")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.compositional"); + "Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.compositional"); } else if (name.equals("language")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.language"); + "Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.language"); } else if (name.equals("filter")) { return addFilter(); } else if (name.equals("property")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.property"); + "Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.property"); } else return super.addChild(name); } @@ -1977,10 +1977,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.filter.code"); + "Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.filter.code"); } else if (name.equals("op")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.filter.op"); + "Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.filter.op"); } else return super.addChild(name); } @@ -2481,17 +2481,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("hierarchical")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.expansion.hierarchical"); + "Cannot call addChild on a singleton property TerminologyCapabilities.expansion.hierarchical"); } else if (name.equals("paging")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.paging"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.expansion.paging"); } else if (name.equals("incomplete")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.expansion.incomplete"); + "Cannot call addChild on a singleton property TerminologyCapabilities.expansion.incomplete"); } else if (name.equals("parameter")) { return addParameter(); } else if (name.equals("textFilter")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.expansion.textFilter"); + "Cannot call addChild on a singleton property TerminologyCapabilities.expansion.textFilter"); } else return super.addChild(name); } @@ -2778,10 +2778,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("name")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.expansion.parameter.name"); + "Cannot call addChild on a singleton property TerminologyCapabilities.expansion.parameter.name"); } else if (name.equals("documentation")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.expansion.parameter.documentation"); + "Cannot call addChild on a singleton property TerminologyCapabilities.expansion.parameter.documentation"); } else return super.addChild(name); } @@ -2981,7 +2981,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("translations")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.validateCode.translations"); + "Cannot call addChild on a singleton property TerminologyCapabilities.validateCode.translations"); } else return super.addChild(name); } @@ -3180,7 +3180,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("needsMap")) { throw new FHIRException( - "Cannot call addChild on a primitive type TerminologyCapabilities.translation.needsMap"); + "Cannot call addChild on a singleton property TerminologyCapabilities.translation.needsMap"); } else return super.addChild(name); } @@ -3369,7 +3369,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("translation")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.closure.translation"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.closure.translation"); } else return super.addChild(name); } @@ -5411,35 +5411,35 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.url"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.version"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.name"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.title"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.status"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.date"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.description"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.copyright"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.kind"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.kind"); } else if (name.equals("software")) { this.software = new TerminologyCapabilitiesSoftwareComponent(); return this.software; @@ -5447,14 +5447,14 @@ public Base addChild(String name) throws FHIRException { this.implementation = new TerminologyCapabilitiesImplementationComponent(); return this.implementation; } else if (name.equals("lockedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.lockedDate"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.lockedDate"); } else if (name.equals("codeSystem")) { return addCodeSystem(); } else if (name.equals("expansion")) { this.expansion = new TerminologyCapabilitiesExpansionComponent(); return this.expansion; } else if (name.equals("codeSearch")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSearch"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSearch"); } else if (name.equals("validateCode")) { this.validateCode = new TerminologyCapabilitiesValidateCodeComponent(); return this.validateCode; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TestReport.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TestReport.java index 54b2bc56e4..d7fe862605 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TestReport.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TestReport.java @@ -992,11 +992,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.participant.type"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.participant.type"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.participant.uri"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.participant.uri"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.participant.display"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.participant.display"); } else return super.addChild(name); } @@ -1774,11 +1774,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.operation.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.operation.result"); } else if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.operation.message"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.operation.message"); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.operation.detail"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.operation.detail"); } else return super.addChild(name); } @@ -2133,11 +2133,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.assert.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.assert.result"); } else if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.assert.message"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.assert.message"); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.assert.detail"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.assert.detail"); } else return super.addChild(name); } @@ -2508,9 +2508,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.test.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.test.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.test.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.test.description"); } else if (name.equals("action")) { return addAction(); } else @@ -4111,20 +4111,20 @@ public Base addChild(String name) throws FHIRException { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.status"); } else if (name.equals("testScript")) { this.testScript = new Reference(); return this.testScript; } else if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.result"); } else if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.score"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.score"); } else if (name.equals("tester")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.tester"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.tester"); } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.issued"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.issued"); } else if (name.equals("participant")) { return addParticipant(); } else if (name.equals("setup")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TestScript.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TestScript.java index 1356bd934d..534a91e01d 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TestScript.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TestScript.java @@ -5780,7 +5780,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("index")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.origin.index"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.origin.index"); } else if (name.equals("profile")) { this.profile = new Coding(); return this.profile; @@ -6040,7 +6040,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("index")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination.index"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination.index"); } else if (name.equals("profile")) { this.profile = new Coding(); return this.profile; @@ -6619,9 +6619,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.link.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.link.url"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.link.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.link.description"); } else return super.addChild(name); } @@ -7340,19 +7340,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.required"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.required"); } else if (name.equals("validated")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.validated"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.validated"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.description"); } else if (name.equals("origin")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.origin"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.origin"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.destination"); } else if (name.equals("link")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.link"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.link"); } else if (name.equals("capabilities")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.capabilities"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.capabilities"); } else return super.addChild(name); } @@ -7737,9 +7737,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("autocreate")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.fixture.autocreate"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.fixture.autocreate"); } else if (name.equals("autodelete")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.fixture.autodelete"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.fixture.autodelete"); } else if (name.equals("resource")) { this.resource = new Reference(); return this.resource; @@ -8526,21 +8526,21 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.name"); } else if (name.equals("defaultValue")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.defaultValue"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.defaultValue"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.description"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.expression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.expression"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.headerField"); } else if (name.equals("hint")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.hint"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.hint"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.path"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.sourceId"); } else return super.addChild(name); } @@ -10454,42 +10454,42 @@ public Base addChild(String name) throws FHIRException { this.type = new Coding(); return this.type; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.resource"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.label"); } else if (name.equals("description")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.operation.description"); + "Cannot call addChild on a singleton property TestScript.setup.action.operation.description"); } else if (name.equals("accept")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.accept"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.accept"); } else if (name.equals("contentType")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.operation.contentType"); + "Cannot call addChild on a singleton property TestScript.setup.action.operation.contentType"); } else if (name.equals("destination")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.operation.destination"); + "Cannot call addChild on a singleton property TestScript.setup.action.operation.destination"); } else if (name.equals("encodeRequestUrl")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.operation.encodeRequestUrl"); + "Cannot call addChild on a singleton property TestScript.setup.action.operation.encodeRequestUrl"); } else if (name.equals("method")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.method"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.method"); } else if (name.equals("origin")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.origin"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.origin"); } else if (name.equals("params")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.params"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.params"); } else if (name.equals("requestHeader")) { return addRequestHeader(); } else if (name.equals("requestId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.requestId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.requestId"); } else if (name.equals("responseId")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.operation.responseId"); + "Cannot call addChild on a singleton property TestScript.setup.action.operation.responseId"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.sourceId"); } else if (name.equals("targetId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.targetId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.targetId"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.url"); } else return super.addChild(name); } @@ -10799,10 +10799,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("field")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.operation.requestHeader.field"); + "Cannot call addChild on a singleton property TestScript.setup.action.operation.requestHeader.field"); } else if (name.equals("value")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.operation.requestHeader.value"); + "Cannot call addChild on a singleton property TestScript.setup.action.operation.requestHeader.value"); } else return super.addChild(name); } @@ -12764,55 +12764,55 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.description"); } else if (name.equals("direction")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.direction"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.direction"); } else if (name.equals("compareToSourceId")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.assert.compareToSourceId"); + "Cannot call addChild on a singleton property TestScript.setup.action.assert.compareToSourceId"); } else if (name.equals("compareToSourceExpression")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.assert.compareToSourceExpression"); + "Cannot call addChild on a singleton property TestScript.setup.action.assert.compareToSourceExpression"); } else if (name.equals("compareToSourcePath")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.assert.compareToSourcePath"); + "Cannot call addChild on a singleton property TestScript.setup.action.assert.compareToSourcePath"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.contentType"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.expression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.expression"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.headerField"); } else if (name.equals("minimumId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.minimumId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.minimumId"); } else if (name.equals("navigationLinks")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.assert.navigationLinks"); + "Cannot call addChild on a singleton property TestScript.setup.action.assert.navigationLinks"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.operator"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.operator"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.path"); } else if (name.equals("requestMethod")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.assert.requestMethod"); + "Cannot call addChild on a singleton property TestScript.setup.action.assert.requestMethod"); } else if (name.equals("requestURL")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.requestURL"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.requestURL"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.resource"); } else if (name.equals("response")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.response"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.response"); } else if (name.equals("responseCode")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.responseCode"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.responseCode"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.sourceId"); } else if (name.equals("validateProfileId")) { throw new FHIRException( - "Cannot call addChild on a primitive type TestScript.setup.action.assert.validateProfileId"); + "Cannot call addChild on a singleton property TestScript.setup.action.assert.validateProfileId"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.value"); } else if (name.equals("warningOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.warningOnly"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.warningOnly"); } else return super.addChild(name); } @@ -13225,9 +13225,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.test.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.test.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.test.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.test.description"); } else if (name.equals("action")) { return addAction(); } else @@ -15926,36 +15926,36 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.version"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.title"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.date"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.copyright"); } else if (name.equals("origin")) { return addOrigin(); } else if (name.equals("destination")) { diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Timing.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Timing.java index 0e903fd871..d2b0e12e11 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Timing.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Timing.java @@ -2415,33 +2415,33 @@ public Base addChild(String name) throws FHIRException { this.bounds = new Period(); return this.bounds; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.count"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.count"); } else if (name.equals("countMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.countMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.countMax"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.duration"); } else if (name.equals("durationMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.durationMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.durationMax"); } else if (name.equals("durationUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.durationUnit"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.durationUnit"); } else if (name.equals("frequency")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.frequency"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.frequency"); } else if (name.equals("frequencyMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.frequencyMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.frequencyMax"); } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.period"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.period"); } else if (name.equals("periodMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.periodMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.periodMax"); } else if (name.equals("periodUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.periodUnit"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.periodUnit"); } else if (name.equals("dayOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.dayOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.dayOfWeek"); } else if (name.equals("timeOfDay")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.timeOfDay"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.timeOfDay"); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.when"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.when"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.offset"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.offset"); } else return super.addChild(name); } @@ -2804,7 +2804,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("event")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.event"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.event"); } else if (name.equals("repeat")) { this.repeat = new TimingRepeatComponent(); return this.repeat; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TriggerDefinition.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TriggerDefinition.java index b5c73a7b69..bfca932391 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TriggerDefinition.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/TriggerDefinition.java @@ -807,9 +807,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.name"); } else if (name.equals("timingTiming")) { this.timing = new Timing(); return this.timing; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ValueSet.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ValueSet.java index d24ae9b107..275a94b2dd 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ValueSet.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ValueSet.java @@ -491,9 +491,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("lockedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.lockedDate"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.lockedDate"); } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.inactive"); } else if (name.equals("include")) { return addInclude(); } else if (name.equals("exclude")) { @@ -1061,15 +1061,15 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.version"); } else if (name.equals("concept")) { return addConcept(); } else if (name.equals("filter")) { return addFilter(); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.valueSet"); } else return super.addChild(name); } @@ -1465,9 +1465,9 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.concept.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.concept.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.concept.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.concept.display"); } else if (name.equals("designation")) { return addDesignation(); } else @@ -1798,13 +1798,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("language")) { throw new FHIRException( - "Cannot call addChild on a primitive type ValueSet.compose.include.concept.designation.language"); + "Cannot call addChild on a singleton property ValueSet.compose.include.concept.designation.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; } else if (name.equals("value")) { throw new FHIRException( - "Cannot call addChild on a primitive type ValueSet.compose.include.concept.designation.value"); + "Cannot call addChild on a singleton property ValueSet.compose.include.concept.designation.value"); } else return super.addChild(name); } @@ -2188,11 +2188,11 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.filter.property"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.filter.property"); } else if (name.equals("op")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.filter.op"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.filter.op"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.filter.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.filter.value"); } else return super.addChild(name); } @@ -2839,13 +2839,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.identifier"); } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.timestamp"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.total"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.total"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.offset"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.offset"); } else if (name.equals("parameter")) { return addParameter(); } else if (name.equals("contains")) { @@ -3258,7 +3258,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.parameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.parameter.name"); } else if (name.equals("valueString")) { this.value = new StringType(); return this.value; @@ -4098,17 +4098,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.system"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.abstract"); } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.inactive"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.display"); } else if (name.equals("designation")) { return addDesignation(); } else if (name.equals("contains")) { @@ -5788,37 +5788,37 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.url"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.title"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.status"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.date"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.description"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("immutable")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.immutable"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.immutable"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.copyright"); } else if (name.equals("compose")) { this.compose = new ValueSetComposeComponent(); return this.compose; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/VerificationResult.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/VerificationResult.java index 1d9ddc1dec..668f3ffa33 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/VerificationResult.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/VerificationResult.java @@ -823,7 +823,7 @@ public Base addChild(String name) throws FHIRException { return this.validationStatus; } else if (name.equals("validationDate")) { throw new FHIRException( - "Cannot call addChild on a primitive type VerificationResult.primarySource.validationDate"); + "Cannot call addChild on a singleton property VerificationResult.primarySource.validationDate"); } else if (name.equals("canPushUpdates")) { this.canPushUpdates = new CodeableConcept(); return this.canPushUpdates; @@ -1488,13 +1488,13 @@ public Base addChild(String name) throws FHIRException { this.communicationMethod = new CodeableConcept(); return this.communicationMethod; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.attestation.date"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.attestation.date"); } else if (name.equals("sourceIdentityCertificate")) { throw new FHIRException( - "Cannot call addChild on a primitive type VerificationResult.attestation.sourceIdentityCertificate"); + "Cannot call addChild on a singleton property VerificationResult.attestation.sourceIdentityCertificate"); } else if (name.equals("proxyIdentityCertificate")) { throw new FHIRException( - "Cannot call addChild on a primitive type VerificationResult.attestation.proxyIdentityCertificate"); + "Cannot call addChild on a singleton property VerificationResult.attestation.proxyIdentityCertificate"); } else if (name.equals("proxySignature")) { this.proxySignature = new Signature(); return this.proxySignature; @@ -1825,7 +1825,7 @@ public Base addChild(String name) throws FHIRException { return this.organization; } else if (name.equals("identityCertificate")) { throw new FHIRException( - "Cannot call addChild on a primitive type VerificationResult.validator.identityCertificate"); + "Cannot call addChild on a singleton property VerificationResult.validator.identityCertificate"); } else if (name.equals("attestationSignature")) { this.attestationSignature = new Signature(); return this.attestationSignature; @@ -2941,14 +2941,14 @@ public Base addChild(String name) throws FHIRException { if (name.equals("target")) { return addTarget(); } else if (name.equals("targetLocation")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.targetLocation"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.targetLocation"); } else if (name.equals("need")) { this.need = new CodeableConcept(); return this.need; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.status"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.status"); } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.statusDate"); } else if (name.equals("validationType")) { this.validationType = new CodeableConcept(); return this.validationType; @@ -2958,9 +2958,9 @@ public Base addChild(String name) throws FHIRException { this.frequency = new Timing(); return this.frequency; } else if (name.equals("lastPerformed")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.lastPerformed"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.lastPerformed"); } else if (name.equals("nextScheduled")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.nextScheduled"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.nextScheduled"); } else if (name.equals("failureAction")) { this.failureAction = new CodeableConcept(); return this.failureAction; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/VisionPrescription.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/VisionPrescription.java index bd74efb8ad..932eb366af 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/VisionPrescription.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/VisionPrescription.java @@ -1549,33 +1549,33 @@ public Base addChild(String name) throws FHIRException { this.product = new CodeableConcept(); return this.product; } else if (name.equals("eye")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.eye"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.eye"); } else if (name.equals("sphere")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.sphere"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.sphere"); } else if (name.equals("cylinder")) { throw new FHIRException( - "Cannot call addChild on a primitive type VisionPrescription.lensSpecification.cylinder"); + "Cannot call addChild on a singleton property VisionPrescription.lensSpecification.cylinder"); } else if (name.equals("axis")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.axis"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.axis"); } else if (name.equals("prism")) { return addPrism(); } else if (name.equals("add")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.add"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.add"); } else if (name.equals("power")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.power"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.power"); } else if (name.equals("backCurve")) { throw new FHIRException( - "Cannot call addChild on a primitive type VisionPrescription.lensSpecification.backCurve"); + "Cannot call addChild on a singleton property VisionPrescription.lensSpecification.backCurve"); } else if (name.equals("diameter")) { throw new FHIRException( - "Cannot call addChild on a primitive type VisionPrescription.lensSpecification.diameter"); + "Cannot call addChild on a singleton property VisionPrescription.lensSpecification.diameter"); } else if (name.equals("duration")) { this.duration = new Quantity(); return this.duration; } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.color"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.color"); } else if (name.equals("brand")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.brand"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.brand"); } else if (name.equals("note")) { return addNote(); } else @@ -1908,10 +1908,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException public Base addChild(String name) throws FHIRException { if (name.equals("amount")) { throw new FHIRException( - "Cannot call addChild on a primitive type VisionPrescription.lensSpecification.prism.amount"); + "Cannot call addChild on a singleton property VisionPrescription.lensSpecification.prism.amount"); } else if (name.equals("base")) { throw new FHIRException( - "Cannot call addChild on a primitive type VisionPrescription.lensSpecification.prism.base"); + "Cannot call addChild on a singleton property VisionPrescription.lensSpecification.prism.base"); } else return super.addChild(name); } @@ -2579,9 +2579,9 @@ public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.status"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.status"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.created"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.created"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; @@ -2589,7 +2589,7 @@ public Base addChild(String name) throws FHIRException { this.encounter = new Reference(); return this.encounter; } else if (name.equals("dateWritten")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.dateWritten"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.dateWritten"); } else if (name.equals("prescriber")) { this.prescriber = new Reference(); return this.prescriber; 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 6ce96b0ddc..084c1fab01 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 @@ -383,7 +383,7 @@ public Base addChild(String name) throws FHIRException { return this.coverage; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.coverage.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Account.coverage.priority"); } else return super.addChild(name); @@ -653,7 +653,7 @@ public Base addChild(String name) throws FHIRException { return this.party; } else if (name.equals("onHold")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.guarantor.onHold"); + throw new FHIRException("Cannot call addChild on a singleton property Account.guarantor.onHold"); } else if (name.equals("period")) { this.period = new Period(); @@ -1154,20 +1154,20 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.diagnosis.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Account.diagnosis.sequence"); } else if (name.equals("condition")) { this.condition = new CodeableReference(); return this.condition; } else if (name.equals("dateOfDiagnosis")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.diagnosis.dateOfDiagnosis"); + throw new FHIRException("Cannot call addChild on a singleton property Account.diagnosis.dateOfDiagnosis"); } else if (name.equals("type")) { return addType(); } else if (name.equals("onAdmission")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.diagnosis.onAdmission"); + throw new FHIRException("Cannot call addChild on a singleton property Account.diagnosis.onAdmission"); } else if (name.equals("packageCode")) { return addPackageCode(); @@ -1688,14 +1688,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.procedure.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Account.procedure.sequence"); } else if (name.equals("code")) { this.code = new CodeableReference(); return this.code; } else if (name.equals("dateOfService")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.procedure.dateOfService"); + throw new FHIRException("Cannot call addChild on a singleton property Account.procedure.dateOfService"); } else if (name.equals("type")) { return addType(); @@ -2252,7 +2252,7 @@ else if (name.equals("term")) { return this.term; } else if (name.equals("estimate")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.balance.estimate"); + throw new FHIRException("Cannot call addChild on a singleton property Account.balance.estimate"); } else if (name.equals("amount")) { this.amount = new Money(); @@ -3414,7 +3414,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.status"); + throw new FHIRException("Cannot call addChild on a singleton property Account.status"); } else if (name.equals("billingStatus")) { this.billingStatus = new CodeableConcept(); @@ -3425,7 +3425,7 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.name"); + throw new FHIRException("Cannot call addChild on a singleton property Account.name"); } else if (name.equals("subject")) { return addSubject(); @@ -3442,7 +3442,7 @@ else if (name.equals("owner")) { return this.owner; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.description"); + throw new FHIRException("Cannot call addChild on a singleton property Account.description"); } else if (name.equals("guarantor")) { return addGuarantor(); @@ -3464,7 +3464,7 @@ else if (name.equals("balance")) { return addBalance(); } else if (name.equals("calculatedAt")) { - throw new FHIRException("Cannot call addChild on a primitive type Account.calculatedAt"); + throw new FHIRException("Cannot call addChild on a singleton property Account.calculatedAt"); } else return super.addChild(name); 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 0bfe2aea67..cda7516fcf 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 @@ -714,10 +714,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.participant.type"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.participant.type"); } else if (name.equals("typeCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.participant.typeCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.participant.typeCanonical"); } else if (name.equals("typeReference")) { this.typeReference = new Reference(); @@ -960,7 +960,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.dynamicValue.path"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.dynamicValue.path"); } else if (name.equals("expression")) { this.expression = new Expression(); @@ -4408,13 +4408,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -4425,19 +4425,19 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); @@ -4452,16 +4452,16 @@ else if (name.equals("subjectCanonical")) { return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -4470,22 +4470,22 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -4510,26 +4510,26 @@ else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.library"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.kind"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.profile"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.intent"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.priority"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.doNotPerform"); } else if (name.equals("timingTiming")) { this.timing = new Timing(); @@ -4581,16 +4581,16 @@ else if (name.equals("bodySite")) { return addBodySite(); } else if (name.equals("specimenRequirement")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.specimenRequirement"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.specimenRequirement"); } else if (name.equals("observationRequirement")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.observationRequirement"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.observationRequirement"); } else if (name.equals("observationResultRequirement")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.observationResultRequirement"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.observationResultRequirement"); } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.transform"); + throw new FHIRException("Cannot call addChild on a singleton property ActivityDefinition.transform"); } else if (name.equals("dynamicValue")) { return addDynamicValue(); 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 f352d6b76d..bf1ba4d639 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 @@ -1619,13 +1619,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -1636,28 +1636,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -1666,28 +1666,28 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.copyrightLabel"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.type"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.documentation"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.reference"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.reference"); } else if (name.equals("capabilities")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.capabilities"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.capabilities"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type ActorDefinition.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property ActorDefinition.derivedFrom"); } else return super.addChild(name); 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 050cb9a4a9..013cf192b5 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 @@ -1024,31 +1024,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.use"); + throw new FHIRException("Cannot call addChild on a singleton property Address.use"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.type"); + throw new FHIRException("Cannot call addChild on a singleton property Address.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.text"); + throw new FHIRException("Cannot call addChild on a singleton property Address.text"); } else if (name.equals("line")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.line"); + throw new FHIRException("Cannot call addChild on a singleton property Address.line"); } else if (name.equals("city")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.city"); + throw new FHIRException("Cannot call addChild on a singleton property Address.city"); } else if (name.equals("district")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.district"); + throw new FHIRException("Cannot call addChild on a singleton property Address.district"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.state"); + throw new FHIRException("Cannot call addChild on a singleton property Address.state"); } else if (name.equals("postalCode")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.postalCode"); + throw new FHIRException("Cannot call addChild on a singleton property Address.postalCode"); } else if (name.equals("country")) { - throw new FHIRException("Cannot call addChild on a primitive type Address.country"); + throw new FHIRException("Cannot call addChild on a singleton property Address.country"); } else if (name.equals("period")) { this.period = new Period(); 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 8bc7d16db0..215719c7f6 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 @@ -1396,7 +1396,7 @@ else if (name.equals("value")) { return this.value; } else if (name.equals("supportingInformation")) { - throw new FHIRException("Cannot call addChild on a primitive type AdministrableProductDefinition.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation"); + throw new FHIRException("Cannot call addChild on a singleton property AdministrableProductDefinition.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation"); } else return super.addChild(name); @@ -2200,7 +2200,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type AdministrableProductDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property AdministrableProductDefinition.status"); } else if (name.equals("formOf")) { return addFormOf(); @@ -2224,7 +2224,7 @@ else if (name.equals("device")) { return this.device; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AdministrableProductDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property AdministrableProductDefinition.description"); } else if (name.equals("property")) { return addProperty(); 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 d6bf0e1f3d..b346f13734 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 @@ -3356,10 +3356,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.status"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.status"); } else if (name.equals("actuality")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.actuality"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.actuality"); } else if (name.equals("category")) { return addCategory(); @@ -3389,10 +3389,10 @@ else if (name.equals("occurrenceTiming")) { return this.occurrence; } else if (name.equals("detected")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.detected"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.detected"); } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.recordedDate"); } else if (name.equals("resultingEffect")) { return addResultingEffect(); @@ -3419,7 +3419,7 @@ else if (name.equals("study")) { return addStudy(); } else if (name.equals("expectedInResearchStudy")) { - throw new FHIRException("Cannot call addChild on a primitive type AdverseEvent.expectedInResearchStudy"); + throw new FHIRException("Cannot call addChild on a singleton property AdverseEvent.expectedInResearchStudy"); } else if (name.equals("suspectEntity")) { return addSuspectEntity(); 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 c138f4009a..630735e83d 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 @@ -1121,13 +1121,13 @@ else if (name.equals("manifestation")) { return addManifestation(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.reaction.description"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.reaction.description"); } else if (name.equals("onset")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.reaction.onset"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.reaction.onset"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.reaction.severity"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.reaction.severity"); } else if (name.equals("exposureRoute")) { this.exposureRoute = new CodeableConcept(); @@ -2218,10 +2218,10 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.category"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.category"); } else if (name.equals("criticality")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.criticality"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.criticality"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -2256,13 +2256,13 @@ else if (name.equals("onsetString")) { return this.onset; } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.recordedDate"); } else if (name.equals("participant")) { return addParticipant(); } else if (name.equals("lastOccurrence")) { - throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.lastOccurrence"); + throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.lastOccurrence"); } else if (name.equals("note")) { return addNote(); 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 40067194dc..649267ed25 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 @@ -329,10 +329,10 @@ else if (name.equals("authorString")) { return this.author; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.time"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.time"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Annotation.text"); + throw new FHIRException("Cannot call addChild on a singleton property Annotation.text"); } else return super.addChild(name); 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 eec06d81e8..3194fffb54 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 @@ -769,10 +769,10 @@ else if (name.equals("actor")) { return this.actor; } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.participant.required"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.participant.required"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.participant.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.participant.status"); } else return super.addChild(name); @@ -1480,13 +1480,13 @@ else if (name.equals("recurrenceType")) { return this.recurrenceType; } else if (name.equals("lastOccurrenceDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.lastOccurrenceDate"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.lastOccurrenceDate"); } else if (name.equals("occurrenceCount")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.occurrenceCount"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.occurrenceCount"); } else if (name.equals("occurrenceDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.occurrenceDate"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.occurrenceDate"); } else if (name.equals("weeklyTemplate")) { this.weeklyTemplate = new AppointmentRecurrenceTemplateWeeklyTemplateComponent(); @@ -1501,10 +1501,10 @@ else if (name.equals("yearlyTemplate")) { return this.yearlyTemplate; } else if (name.equals("excludingDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.excludingDate"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.excludingDate"); } else if (name.equals("excludingRecurrenceId")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.excludingRecurrenceId"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.excludingRecurrenceId"); } else return super.addChild(name); @@ -2143,28 +2143,28 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("monday")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.weeklyTemplate.monday"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.weeklyTemplate.monday"); } else if (name.equals("tuesday")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.weeklyTemplate.tuesday"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.weeklyTemplate.tuesday"); } else if (name.equals("wednesday")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.weeklyTemplate.wednesday"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.weeklyTemplate.wednesday"); } else if (name.equals("thursday")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.weeklyTemplate.thursday"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.weeklyTemplate.thursday"); } else if (name.equals("friday")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.weeklyTemplate.friday"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.weeklyTemplate.friday"); } else if (name.equals("saturday")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.weeklyTemplate.saturday"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.weeklyTemplate.saturday"); } else if (name.equals("sunday")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.weeklyTemplate.sunday"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.weeklyTemplate.sunday"); } else if (name.equals("weekInterval")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.weeklyTemplate.weekInterval"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.weeklyTemplate.weekInterval"); } else return super.addChild(name); @@ -2505,7 +2505,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("dayOfMonth")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.monthlyTemplate.dayOfMonth"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.monthlyTemplate.dayOfMonth"); } else if (name.equals("nthWeekOfMonth")) { this.nthWeekOfMonth = new Coding(); @@ -2516,7 +2516,7 @@ else if (name.equals("dayOfWeek")) { return this.dayOfWeek; } else if (name.equals("monthInterval")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.monthlyTemplate.monthInterval"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.monthlyTemplate.monthInterval"); } else return super.addChild(name); @@ -2706,7 +2706,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("yearInterval")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceTemplate.yearlyTemplate.yearInterval"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceTemplate.yearlyTemplate.yearInterval"); } else return super.addChild(name); @@ -4858,7 +4858,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.status"); } else if (name.equals("cancellationReason")) { this.cancellationReason = new CodeableConcept(); @@ -4888,7 +4888,7 @@ else if (name.equals("priority")) { return this.priority; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.description"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.description"); } else if (name.equals("replaces")) { return addReplaces(); @@ -4908,13 +4908,13 @@ else if (name.equals("originatingAppointment")) { return this.originatingAppointment; } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.start"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.end"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.end"); } else if (name.equals("minutesDuration")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.minutesDuration"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.minutesDuration"); } else if (name.equals("requestedPeriod")) { return addRequestedPeriod(); @@ -4926,10 +4926,10 @@ else if (name.equals("account")) { return addAccount(); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.created"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.created"); } else if (name.equals("cancellationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.cancellationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.cancellationDate"); } else if (name.equals("note")) { return addNote(); @@ -4948,10 +4948,10 @@ else if (name.equals("participant")) { return addParticipant(); } else if (name.equals("recurrenceId")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.recurrenceId"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.recurrenceId"); } else if (name.equals("occurrenceChanged")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.occurrenceChanged"); + throw new FHIRException("Cannot call addChild on a singleton property Appointment.occurrenceChanged"); } else if (name.equals("recurrenceTemplate")) { return addRecurrenceTemplate(); 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 d6fcec23b4..8275ed6b8e 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 @@ -1014,13 +1014,13 @@ else if (name.equals("appointment")) { return this.appointment; } else if (name.equals("proposedNewTime")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.proposedNewTime"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.proposedNewTime"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.start"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.end"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.end"); } else if (name.equals("participantType")) { return addParticipantType(); @@ -1030,19 +1030,19 @@ else if (name.equals("actor")) { return this.actor; } else if (name.equals("participantStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.participantStatus"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.participantStatus"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.comment"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.comment"); } else if (name.equals("recurring")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.recurring"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.recurring"); } else if (name.equals("occurrenceDate")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.occurrenceDate"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.occurrenceDate"); } else if (name.equals("recurrenceId")) { - throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.recurrenceId"); + throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.recurrenceId"); } else return super.addChild(name); 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 64831a6c2e..238abe714e 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 @@ -1256,10 +1256,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("informationType")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.content.informationType"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.content.informationType"); } else if (name.equals("summary")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.content.summary"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.content.summary"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -1277,13 +1277,13 @@ else if (name.equals("author")) { return this.author; } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.content.path"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.content.path"); } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("freeToShare")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.content.freeToShare"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.content.freeToShare"); } else if (name.equals("component")) { return addComponent(); @@ -2207,7 +2207,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.title"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.title"); } else if (name.equals("citeAsReference")) { this.citeAs = new Reference(); @@ -2218,16 +2218,16 @@ else if (name.equals("citeAsMarkdown")) { return this.citeAs; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.date"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.date"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.copyright"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.lastReviewDate"); } else if (name.equals("artifactReference")) { this.artifact = new Reference(); @@ -2245,10 +2245,10 @@ else if (name.equals("content")) { return addContent(); } else if (name.equals("workflowStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.workflowStatus"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.workflowStatus"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ArtifactAssessment.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ArtifactAssessment.disposition"); } else return super.addChild(name); 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 97dbef8d9f..a699451d49 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 @@ -972,43 +972,43 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.contentType"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.language"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.language"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.data"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.data"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.url"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.url"); } else if (name.equals("size")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.size"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.size"); } else if (name.equals("hash")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.hash"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.hash"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.title"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.title"); } else if (name.equals("creation")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.creation"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.creation"); } else if (name.equals("height")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.height"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.height"); } else if (name.equals("width")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.width"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.width"); } else if (name.equals("frames")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.frames"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.frames"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.duration"); } else if (name.equals("pages")) { - throw new FHIRException("Cannot call addChild on a primitive type Attachment.pages"); + throw new FHIRException("Cannot call addChild on a singleton property Attachment.pages"); } else return super.addChild(name); 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 bd02b7b29c..1d8b9d78a6 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 @@ -1210,14 +1210,14 @@ else if (name.equals("who")) { return this.who; } else if (name.equals("requestor")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.agent.requestor"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.agent.requestor"); } else if (name.equals("location")) { this.location = new Reference(); return this.location; } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.agent.policy"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.agent.policy"); } else if (name.equals("networkReference")) { this.network = new Reference(); @@ -2027,7 +2027,7 @@ else if (name.equals("securityLabel")) { return addSecurityLabel(); } else if (name.equals("query")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.entity.query"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.entity.query"); } else if (name.equals("detail")) { return addDetail(); @@ -3438,10 +3438,10 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("action")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.action"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.action"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.severity"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.severity"); } else if (name.equals("occurredPeriod")) { this.occurred = new Period(); @@ -3452,7 +3452,7 @@ else if (name.equals("occurredDateTime")) { return this.occurred; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.recorded"); } else if (name.equals("outcome")) { this.outcome = new AuditEventOutcomeComponent(); 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 fb9684ad0f..513488f4f7 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 @@ -391,16 +391,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("daysOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type Availability.availableTime.daysOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property Availability.availableTime.daysOfWeek"); } else if (name.equals("allDay")) { - throw new FHIRException("Cannot call addChild on a primitive type Availability.availableTime.allDay"); + throw new FHIRException("Cannot call addChild on a singleton property Availability.availableTime.allDay"); } else if (name.equals("availableStartTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Availability.availableTime.availableStartTime"); + throw new FHIRException("Cannot call addChild on a singleton property Availability.availableTime.availableStartTime"); } else if (name.equals("availableEndTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Availability.availableTime.availableEndTime"); + throw new FHIRException("Cannot call addChild on a singleton property Availability.availableTime.availableEndTime"); } else return super.addChild(name); @@ -630,7 +630,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Availability.notAvailableTime.description"); + throw new FHIRException("Cannot call addChild on a singleton property Availability.notAvailableTime.description"); } else if (name.equals("during")) { this.during = new Period(); 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 3b622874fe..d8c16149bc 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 @@ -394,7 +394,7 @@ else if (name.equals("subject")) { return this.subject; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Basic.created"); + throw new FHIRException("Cannot call addChild on a singleton property Basic.created"); } else if (name.equals("author")) { this.author = new Reference(); 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 d0d9609c96..59cb6946db 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 @@ -295,14 +295,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.contentType"); } else if (name.equals("securityContext")) { this.securityContext = new Reference(); return this.securityContext; } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Binary.data"); + throw new FHIRException("Cannot call addChild on a singleton property Binary.data"); } else return super.addChild(name); 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 25eb7456c6..8e40bee1da 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 @@ -1541,14 +1541,14 @@ else if (name.equals("processingFacility")) { return addProcessingFacility(); } else if (name.equals("division")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.division"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.division"); } else if (name.equals("productStatus")) { this.productStatus = new Coding(); return this.productStatus; } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProduct.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProduct.expirationDate"); } else if (name.equals("collection")) { this.collection = new BiologicallyDerivedProductCollectionComponent(); 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 0b95fa7191..2193ec7a7c 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 @@ -1439,7 +1439,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProductDispense.status"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProductDispense.status"); } else if (name.equals("originRelationshipType")) { this.originRelationshipType = new CodeableConcept(); @@ -1469,10 +1469,10 @@ else if (name.equals("quantity")) { return this.quantity; } else if (name.equals("preparedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProductDispense.preparedDate"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProductDispense.preparedDate"); } else if (name.equals("whenHandedOver")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProductDispense.whenHandedOver"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProductDispense.whenHandedOver"); } else if (name.equals("destination")) { this.destination = new Reference(); @@ -1482,7 +1482,7 @@ else if (name.equals("note")) { return addNote(); } else if (name.equals("usageInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type BiologicallyDerivedProductDispense.usageInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property BiologicallyDerivedProductDispense.usageInstruction"); } else return super.addChild(name); 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 75c64c8879..b9f46144ff 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 @@ -1761,7 +1761,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type BodyStructure.active"); + throw new FHIRException("Cannot call addChild on a singleton property BodyStructure.active"); } else if (name.equals("morphology")) { this.morphology = new CodeableConcept(); @@ -1774,7 +1774,7 @@ else if (name.equals("excludedStructure")) { return addExcludedStructure(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type BodyStructure.description"); + throw new FHIRException("Cannot call addChild on a singleton property BodyStructure.description"); } else if (name.equals("image")) { return addImage(); 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 e76a3c60ee..58c803abdb 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 @@ -2736,10 +2736,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("relation")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.link.relation"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.link.relation"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.link.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.link.url"); } else return super.addChild(name); @@ -3166,7 +3166,7 @@ public Base addChild(String name) throws FHIRException { return addLink(); } else if (name.equals("fullUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.fullUrl"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.fullUrl"); } else if (name.equals("resource")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.entry.resource"); @@ -3508,10 +3508,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.search.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.search.mode"); } else if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.search.score"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.search.score"); } else return super.addChild(name); @@ -4025,22 +4025,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("method")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.method"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.method"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.url"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.url"); } else if (name.equals("ifNoneMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.ifNoneMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.ifNoneMatch"); } else if (name.equals("ifModifiedSince")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.ifModifiedSince"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.ifModifiedSince"); } else if (name.equals("ifMatch")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.ifMatch"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.ifMatch"); } else if (name.equals("ifNoneExist")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.request.ifNoneExist"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.request.ifNoneExist"); } else return super.addChild(name); @@ -4467,16 +4467,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.response.status"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.response.status"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.response.location"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.response.location"); } else if (name.equals("etag")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.response.etag"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.response.etag"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.entry.response.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.entry.response.lastModified"); } else if (name.equals("outcome")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.entry.response.outcome"); @@ -5060,13 +5060,13 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.type"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.type"); } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.timestamp"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type Bundle.total"); + throw new FHIRException("Cannot call addChild on a singleton property Bundle.total"); } else if (name.equals("link")) { return addLink(); 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 c061abc455..e9a2c3d23c 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 @@ -1441,13 +1441,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.software.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.software.name"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.software.version"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.software.version"); } else if (name.equals("releaseDate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.software.releaseDate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.software.releaseDate"); } else return super.addChild(name); @@ -1742,10 +1742,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.implementation.description"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.implementation.description"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.implementation.url"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.implementation.url"); } else if (name.equals("custodian")) { this.custodian = new Reference(); @@ -2404,10 +2404,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.documentation"); } else if (name.equals("security")) { this.security = new CapabilityStatementRestSecurityComponent(); @@ -2426,7 +2426,7 @@ else if (name.equals("operation")) { return addOperation(); } else if (name.equals("compartment")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.compartment"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.compartment"); } else return super.addChild(name); @@ -2769,13 +2769,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("cors")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.security.cors"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.security.cors"); } else if (name.equals("service")) { return addService(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.security.description"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.security.description"); } else return super.addChild(name); @@ -4141,52 +4141,52 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.type"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.profile"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.profile"); } else if (name.equals("supportedProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.supportedProfile"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.supportedProfile"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.documentation"); } else if (name.equals("interaction")) { return addInteraction(); } else if (name.equals("versioning")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.versioning"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.versioning"); } else if (name.equals("readHistory")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.readHistory"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.readHistory"); } else if (name.equals("updateCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.updateCreate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.updateCreate"); } else if (name.equals("conditionalCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.conditionalCreate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.conditionalCreate"); } else if (name.equals("conditionalRead")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.conditionalRead"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.conditionalRead"); } else if (name.equals("conditionalUpdate")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.conditionalUpdate"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.conditionalUpdate"); } else if (name.equals("conditionalPatch")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.conditionalPatch"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.conditionalPatch"); } else if (name.equals("conditionalDelete")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.conditionalDelete"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.conditionalDelete"); } else if (name.equals("referencePolicy")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.referencePolicy"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.referencePolicy"); } else if (name.equals("searchInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchInclude"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchInclude"); } else if (name.equals("searchRevInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchRevInclude"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchRevInclude"); } else if (name.equals("searchParam")) { return addSearchParam(); @@ -4507,10 +4507,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.interaction.code"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.interaction.code"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.interaction.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.interaction.documentation"); } else return super.addChild(name); @@ -4892,16 +4892,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchParam.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchParam.name"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchParam.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchParam.definition"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchParam.type"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchParam.type"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.searchParam.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.searchParam.documentation"); } else return super.addChild(name); @@ -5219,13 +5219,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.operation.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.operation.name"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.operation.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.operation.definition"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.resource.operation.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.resource.operation.documentation"); } else return super.addChild(name); @@ -5482,10 +5482,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.interaction.code"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.interaction.code"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.rest.interaction.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.rest.interaction.documentation"); } else return super.addChild(name); @@ -5870,10 +5870,10 @@ public Base addChild(String name) throws FHIRException { return addEndpoint(); } else if (name.equals("reliableCache")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.messaging.reliableCache"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.messaging.reliableCache"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.messaging.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.messaging.documentation"); } else if (name.equals("supportedMessage")) { return addSupportedMessage(); @@ -6121,7 +6121,7 @@ public Base addChild(String name) throws FHIRException { return this.protocol; } else if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.messaging.endpoint.address"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.messaging.endpoint.address"); } else return super.addChild(name); @@ -6371,10 +6371,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.messaging.supportedMessage.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.messaging.supportedMessage.mode"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.messaging.supportedMessage.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.messaging.supportedMessage.definition"); } else return super.addChild(name); @@ -6690,13 +6690,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.document.mode"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.document.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.document.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.document.documentation"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.document.profile"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.document.profile"); } else return super.addChild(name); @@ -8854,13 +8854,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.url"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.version"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -8871,28 +8871,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.name"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.title"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.date"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.description"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -8901,22 +8901,22 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.copyrightLabel"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.kind"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.kind"); } else if (name.equals("instantiates")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.instantiates"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.instantiates"); } else if (name.equals("imports")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.imports"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.imports"); } else if (name.equals("software")) { this.software = new CapabilityStatementSoftwareComponent(); @@ -8927,19 +8927,19 @@ else if (name.equals("implementation")) { return this.implementation; } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.fhirVersion"); } else if (name.equals("format")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.format"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.format"); } else if (name.equals("patchFormat")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.patchFormat"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.patchFormat"); } else if (name.equals("acceptLanguage")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.acceptLanguage"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.acceptLanguage"); } else if (name.equals("implementationGuide")) { - throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement.implementationGuide"); + throw new FHIRException("Cannot call addChild on a singleton property CapabilityStatement.implementationGuide"); } else if (name.equals("rest")) { return addRest(); 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 174f32ccb7..1e04c12f63 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 @@ -2077,10 +2077,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -2092,19 +2092,19 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.intent"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.title"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -2119,7 +2119,7 @@ else if (name.equals("period")) { return this.period; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.created"); + throw new FHIRException("Cannot call addChild on a singleton property CarePlan.created"); } else if (name.equals("custodian")) { this.custodian = new Reference(); 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 dd50cc9244..1f608d39a6 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 @@ -1303,13 +1303,13 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CareTeam.status"); + throw new FHIRException("Cannot call addChild on a singleton property CareTeam.status"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CareTeam.name"); + throw new FHIRException("Cannot call addChild on a singleton property CareTeam.name"); } else if (name.equals("subject")) { this.subject = new Reference(); 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 80796fd171..a9882e8ae1 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 @@ -2045,13 +2045,13 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("definitionUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.definitionUri"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.definitionUri"); } else if (name.equals("definitionCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.definitionCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.definitionCanonical"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.status"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.status"); } else if (name.equals("partOf")) { return addPartOf(); @@ -2119,7 +2119,7 @@ else if (name.equals("enterer")) { return this.enterer; } else if (name.equals("enteredDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItem.enteredDate"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItem.enteredDate"); } else if (name.equals("reason")) { return addReason(); 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 662db0fa49..927972c0f5 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 @@ -2632,13 +2632,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -2649,37 +2649,37 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.title"); } else if (name.equals("derivedFromUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.derivedFromUri"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.derivedFromUri"); } else if (name.equals("partOf")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.partOf"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.partOf"); } else if (name.equals("replaces")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.replaces"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.replaces"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -2688,19 +2688,19 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ChargeItemDefinition.lastReviewDate"); } else if (name.equals("code")) { this.code = new CodeableConcept(); 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 c393f8b6d5..71e060efa5 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 @@ -906,7 +906,7 @@ public Base addChild(String name) throws FHIRException { return this.style; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.summary.text"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.summary.text"); } else return super.addChild(name); @@ -1413,7 +1413,7 @@ public Base addChild(String name) throws FHIRException { return this.activity; } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.statusDate.actual"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.statusDate.actual"); } else if (name.equals("period")) { this.period = new Period(); @@ -2500,7 +2500,7 @@ else if (name.equals("relatedIdentifier")) { return addRelatedIdentifier(); } else if (name.equals("dateAccessed")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.dateAccessed"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.dateAccessed"); } else if (name.equals("version")) { this.version = new CitationCitedArtifactVersionComponent(); @@ -2828,7 +2828,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.version.value"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.version.value"); } else if (name.equals("baseCitation")) { this.baseCitation = new Reference(); @@ -3104,7 +3104,7 @@ public Base addChild(String name) throws FHIRException { return this.activity; } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.statusDate.actual"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.statusDate.actual"); } else if (name.equals("period")) { this.period = new Period(); @@ -3415,7 +3415,7 @@ else if (name.equals("language")) { return this.language; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.title.text"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.title.text"); } else return super.addChild(name); @@ -3763,10 +3763,10 @@ else if (name.equals("language")) { return this.language; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.abstract.text"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.abstract.text"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.abstract.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.abstract.copyright"); } else return super.addChild(name); @@ -4037,7 +4037,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.part.value"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.part.value"); } else if (name.equals("baseCitation")) { this.baseCitation = new Reference(); @@ -4648,26 +4648,26 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.relatesTo.type"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.relatesTo.type"); } else if (name.equals("classifier")) { return addClassifier(); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.relatesTo.label"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.relatesTo.label"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.relatesTo.display"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.relatesTo.display"); } else if (name.equals("citation")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.relatesTo.citation"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.relatesTo.citation"); } else if (name.equals("document")) { this.document = new Attachment(); return this.document; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.relatesTo.resource"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.relatesTo.resource"); } else if (name.equals("resourceReference")) { this.resourceReference = new Reference(); @@ -5754,43 +5754,43 @@ else if (name.equals("citedMedium")) { return this.citedMedium; } else if (name.equals("volume")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.volume"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.volume"); } else if (name.equals("issue")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.issue"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.issue"); } else if (name.equals("articleDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.articleDate"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.articleDate"); } else if (name.equals("publicationDateText")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.publicationDateText"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.publicationDateText"); } else if (name.equals("publicationDateSeason")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.publicationDateSeason"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.publicationDateSeason"); } else if (name.equals("lastRevisionDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.lastRevisionDate"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.lastRevisionDate"); } else if (name.equals("language")) { return addLanguage(); } else if (name.equals("accessionNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.accessionNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.accessionNumber"); } else if (name.equals("pageString")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.pageString"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.pageString"); } else if (name.equals("firstPage")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.firstPage"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.firstPage"); } else if (name.equals("lastPage")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.lastPage"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.lastPage"); } else if (name.equals("pageCount")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.pageCount"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.pageCount"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.copyright"); } else return super.addChild(name); @@ -6226,14 +6226,14 @@ else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.publishedIn.title"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.publishedIn.title"); } else if (name.equals("publisher")) { this.publisher = new Reference(); return this.publisher; } else if (name.equals("publisherLocation")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.publishedIn.publisherLocation"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.publicationForm.publishedIn.publisherLocation"); } else return super.addChild(name); @@ -6498,7 +6498,7 @@ public Base addChild(String name) throws FHIRException { return addClassifier(); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.webLocation.url"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.webLocation.url"); } else return super.addChild(name); @@ -7133,7 +7133,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("complete")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.complete"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.complete"); } else if (name.equals("entry")) { return addEntry(); @@ -7760,7 +7760,7 @@ public Base addChild(String name) throws FHIRException { return this.contributor; } else if (name.equals("forenameInitials")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.forenameInitials"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.forenameInitials"); } else if (name.equals("affiliation")) { return addAffiliation(); @@ -7776,10 +7776,10 @@ else if (name.equals("contributionInstance")) { return addContributionInstance(); } else if (name.equals("correspondingContact")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.correspondingContact"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.correspondingContact"); } else if (name.equals("rankingOrder")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.rankingOrder"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.rankingOrder"); } else return super.addChild(name); @@ -8038,7 +8038,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.contributionInstance.time"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.entry.contributionInstance.time"); } else return super.addChild(name); @@ -8360,7 +8360,7 @@ else if (name.equals("source")) { return this.source; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.summary.value"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.citedArtifact.contributorship.summary.value"); } else return super.addChild(name); @@ -10575,13 +10575,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.url"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.version"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -10592,28 +10592,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.name"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.title"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.status"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.date"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.description"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -10622,19 +10622,19 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Citation.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); 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 728c2e1306..e587277409 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 @@ -1083,14 +1083,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.careTeam.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.careTeam.sequence"); } else if (name.equals("provider")) { this.provider = new Reference(); return this.provider; } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.careTeam.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.careTeam.responsible"); } else if (name.equals("role")) { this.role = new CodeableConcept(); @@ -1623,7 +1623,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.supportingInfo.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.supportingInfo.sequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); @@ -2045,7 +2045,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.diagnosis.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.diagnosis.sequence"); } else if (name.equals("diagnosisCodeableConcept")) { this.diagnosis = new CodeableConcept(); @@ -2533,13 +2533,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.procedure.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.procedure.sequence"); } else if (name.equals("type")) { return addType(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.procedure.date"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.procedure.date"); } else if (name.equals("procedureCodeableConcept")) { this.procedure = new CodeableConcept(); @@ -3078,10 +3078,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.insurance.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.insurance.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.insurance.focal"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.insurance.focal"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); @@ -3092,10 +3092,10 @@ else if (name.equals("coverage")) { return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.insurance.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.insurance.businessArrangement"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.insurance.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.insurance.preAuthRef"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); @@ -3411,7 +3411,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.accident.date"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.accident.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -5101,22 +5101,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.sequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); } else if (name.equals("careTeamSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.careTeamSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.careTeamSequence"); } else if (name.equals("diagnosisSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.diagnosisSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.diagnosisSequence"); } else if (name.equals("procedureSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.procedureSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.procedureSequence"); } else if (name.equals("informationSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.informationSequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.informationSequence"); } else if (name.equals("revenue")) { this.revenue = new CodeableConcept(); @@ -5176,7 +5176,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -6551,7 +6551,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.detail.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.detail.sequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); @@ -6591,7 +6591,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.detail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.detail.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -7570,7 +7570,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.detail.subDetail.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.detail.subDetail.sequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); @@ -7610,7 +7610,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.item.detail.subDetail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.item.detail.subDetail.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -9493,7 +9493,7 @@ else if (name.equals("traceNumber")) { return addTraceNumber(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.status"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -9504,7 +9504,7 @@ else if (name.equals("subType")) { return this.subType; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.use"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.use"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -9515,7 +9515,7 @@ else if (name.equals("billablePeriod")) { return this.billablePeriod; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type Claim.created"); + throw new FHIRException("Cannot call addChild on a singleton property Claim.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); 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 91b95cf01c..652676bf83 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 @@ -764,13 +764,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.itemSequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ReviewOutcomeComponent(); @@ -1145,7 +1145,7 @@ else if (name.equals("reason")) { return addReason(); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.reviewOutcome.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.reviewOutcome.preAuthRef"); } else if (name.equals("preAuthPeriod")) { this.preAuthPeriod = new Period(); @@ -1975,13 +1975,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.detail.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.detail.detailSequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.detail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.detail.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ReviewOutcomeComponent(); @@ -2459,13 +2459,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("subDetailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.detail.subDetail.subDetailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.detail.subDetail.subDetailSequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.item.detail.subDetail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.item.detail.subDetail.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ReviewOutcomeComponent(); @@ -4055,13 +4055,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.itemSequence"); } else if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.detailSequence"); } else if (name.equals("subdetailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.subdetailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.subdetailSequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); @@ -4119,7 +4119,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -4133,7 +4133,7 @@ else if (name.equals("bodySite")) { return addBodySite(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ReviewOutcomeComponent(); @@ -5414,7 +5414,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.detail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.detail.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -5425,7 +5425,7 @@ else if (name.equals("net")) { return this.net; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.detail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.detail.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ReviewOutcomeComponent(); @@ -6318,7 +6318,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.detail.subDetail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.detail.subDetail.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -6329,7 +6329,7 @@ else if (name.equals("net")) { return this.net; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.addItem.detail.subDetail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.addItem.detail.subDetail.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ReviewOutcomeComponent(); @@ -6989,7 +6989,7 @@ else if (name.equals("adjustmentReason")) { return this.adjustmentReason; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.payment.date"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.payment.date"); } else if (name.equals("amount")) { this.amount = new Money(); @@ -7334,14 +7334,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.processNote.number"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.processNote.number"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.processNote.text"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.processNote.text"); } else if (name.equals("language")) { this.language = new CodeableConcept(); @@ -7745,17 +7745,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.insurance.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.insurance.sequence"); } else if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.insurance.focal"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.insurance.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.insurance.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.insurance.businessArrangement"); } else if (name.equals("claimResponse")) { this.claimResponse = new Reference(); @@ -8194,20 +8194,20 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.error.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.error.itemSequence"); } else if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.error.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.error.detailSequence"); } else if (name.equals("subDetailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.error.subDetailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.error.subDetailSequence"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.error.expression"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.error.expression"); } else return super.addChild(name); @@ -10160,7 +10160,7 @@ else if (name.equals("traceNumber")) { return addTraceNumber(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -10171,14 +10171,14 @@ else if (name.equals("subType")) { return this.subType; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.use"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.use"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.created"); } else if (name.equals("insurer")) { this.insurer = new Reference(); @@ -10193,17 +10193,17 @@ else if (name.equals("request")) { return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.outcome"); } else if (name.equals("decision")) { this.decision = new CodeableConcept(); return this.decision; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.disposition"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.preAuthRef"); } else if (name.equals("preAuthPeriod")) { this.preAuthPeriod = new Period(); 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 90a18b335d..7c74a865c9 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 @@ -230,7 +230,7 @@ public Base addChild(String name) throws FHIRException { return this.item; } else if (name.equals("basis")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.finding.basis"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.finding.basis"); } else return super.addChild(name); @@ -1506,14 +1506,14 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.status"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.description"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.description"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -1532,7 +1532,7 @@ else if (name.equals("effectivePeriod")) { return this.effective; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.date"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.date"); } else if (name.equals("performer")) { this.performer = new Reference(); @@ -1550,10 +1550,10 @@ else if (name.equals("changePattern")) { return this.changePattern; } else if (name.equals("protocol")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.protocol"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.protocol"); } else if (name.equals("summary")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.summary"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.summary"); } else if (name.equals("finding")) { return addFinding(); 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 00b8a2f7e5..fe9229a2d5 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 @@ -2550,7 +2550,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalUseDefinition.warning.description"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalUseDefinition.warning.description"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -3348,7 +3348,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalUseDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalUseDefinition.type"); } else if (name.equals("category")) { return addCategory(); @@ -3376,7 +3376,7 @@ else if (name.equals("population")) { return addPopulation(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type ClinicalUseDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property ClinicalUseDefinition.library"); } else if (name.equals("undesirableEffect")) { this.undesirableEffect = new ClinicalUseDefinitionUndesirableEffectComponent(); 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 9de46ee3bd..a5277910ea 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 @@ -703,16 +703,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.filter.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.filter.code"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.filter.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.filter.description"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.filter.operator"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.filter.operator"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.filter.value"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.filter.value"); } else return super.addChild(name); @@ -1103,16 +1103,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.property.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.property.code"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.property.uri"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.property.uri"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.property.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.property.description"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.property.type"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.property.type"); } else return super.addChild(name); @@ -1643,13 +1643,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.display"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.display"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.definition"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.definition"); } else if (name.equals("designation")) { return addDesignation(); @@ -2048,7 +2048,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.designation.language"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.designation.language"); } else if (name.equals("use")) { this.use = new Coding(); @@ -2058,7 +2058,7 @@ else if (name.equals("additionalUse")) { return addAdditionalUse(); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.designation.value"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.designation.value"); } else return super.addChild(name); @@ -2403,7 +2403,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.concept.property.code"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.concept.property.code"); } else if (name.equals("valueCode")) { this.value = new CodeType(); @@ -5011,13 +5011,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.url"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.version"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -5028,28 +5028,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.title"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -5058,19 +5058,19 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -5095,28 +5095,28 @@ else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("caseSensitive")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.caseSensitive"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.caseSensitive"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.valueSet"); } else if (name.equals("hierarchyMeaning")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.hierarchyMeaning"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.hierarchyMeaning"); } else if (name.equals("compositional")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.compositional"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.compositional"); } else if (name.equals("versionNeeded")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.versionNeeded"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.versionNeeded"); } else if (name.equals("content")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.content"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.content"); } else if (name.equals("supplements")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.supplements"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.supplements"); } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.count"); + throw new FHIRException("Cannot call addChild on a singleton property CodeSystem.count"); } else if (name.equals("filter")) { return addFilter(); 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 b0263f1786..2994ba3f89 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 @@ -253,7 +253,7 @@ public Base addChild(String name) throws FHIRException { return addCoding(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type CodeableConcept.text"); + throw new FHIRException("Cannot call addChild on a singleton property CodeableConcept.text"); } else return super.addChild(name); 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 0a8333d04f..77f611191c 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 @@ -453,19 +453,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.system"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.version"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.code"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.display"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.display"); } else if (name.equals("userSelected")) { - throw new FHIRException("Cannot call addChild on a primitive type Coding.userSelected"); + throw new FHIRException("Cannot call addChild on a singleton property Coding.userSelected"); } else return super.addChild(name); 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 8614a11d31..a31b88bfc9 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 @@ -1747,10 +1747,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -1762,7 +1762,7 @@ else if (name.equals("inResponseTo")) { return addInResponseTo(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.status"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); @@ -1772,7 +1772,7 @@ else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.priority"); } else if (name.equals("medium")) { return addMedium(); @@ -1793,10 +1793,10 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("sent")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.sent"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.sent"); } else if (name.equals("received")) { - throw new FHIRException("Cannot call addChild on a primitive type Communication.received"); + throw new FHIRException("Cannot call addChild on a singleton property Communication.received"); } else if (name.equals("recipient")) { return addRecipient(); 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 3242bf99fb..483b3a4450 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 @@ -1734,23 +1734,23 @@ else if (name.equals("groupIdentifier")) { return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.doNotPerform"); } else if (name.equals("medium")) { return addMedium(); @@ -1778,7 +1778,7 @@ else if (name.equals("occurrencePeriod")) { return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); 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 2c1f945585..89cc596a10 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 @@ -465,19 +465,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.resource.code"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.resource.code"); } else if (name.equals("param")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.resource.param"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.resource.param"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.resource.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.resource.documentation"); } else if (name.equals("startParam")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.resource.startParam"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.resource.startParam"); } else if (name.equals("endParam")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.resource.endParam"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.resource.endParam"); } else return super.addChild(name); @@ -1810,10 +1810,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -1824,40 +1824,40 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.purpose"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.code"); } else if (name.equals("search")) { - throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.search"); + throw new FHIRException("Cannot call addChild on a singleton property CompartmentDefinition.search"); } else if (name.equals("resource")) { return addResource(); 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 ccb6b4966e..34ade6b962 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 @@ -279,7 +279,7 @@ public Base addChild(String name) throws FHIRException { return this.mode; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.attester.time"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.attester.time"); } else if (name.equals("party")) { this.party = new Reference(); @@ -1117,7 +1117,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.section.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.section.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -2505,16 +2505,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.url"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.version"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.version"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.status"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -2531,7 +2531,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.date"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.date"); } else if (name.equals("useContext")) { return addUseContext(); @@ -2540,10 +2540,10 @@ else if (name.equals("author")) { return addAuthor(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.name"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); + throw new FHIRException("Cannot call addChild on a singleton property Composition.title"); } else if (name.equals("note")) { return addNote(); 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 ce895d0996..14774c6c6d 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 @@ -884,19 +884,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.property.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.property.code"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.property.uri"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.property.uri"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.property.description"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.property.description"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.property.type"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.property.type"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.property.system"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.property.system"); } else return super.addChild(name); @@ -1284,16 +1284,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.additionalAttribute.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.additionalAttribute.code"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.additionalAttribute.uri"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.additionalAttribute.uri"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.additionalAttribute.description"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.additionalAttribute.description"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.additionalAttribute.type"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.additionalAttribute.type"); } else return super.addChild(name); @@ -1663,10 +1663,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.source"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.source"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.target"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.target"); } else if (name.equals("element")) { return addElement(); @@ -2125,16 +2125,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.display"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.valueSet"); } else if (name.equals("noMap")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.noMap"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.noMap"); } else if (name.equals("target")) { return addTarget(); @@ -2808,19 +2808,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.display"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.valueSet"); } else if (name.equals("relationship")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.relationship"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.relationship"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.comment"); } else if (name.equals("property")) { return addProperty(); @@ -3188,7 +3188,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.property.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.property.code"); } else if (name.equals("valueCoding")) { this.value = new Coding(); @@ -3586,7 +3586,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("attribute")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.dependsOn.attribute"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.dependsOn.attribute"); } else if (name.equals("valueCode")) { this.value = new CodeType(); @@ -3609,7 +3609,7 @@ else if (name.equals("valueQuantity")) { return this.value; } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.element.target.dependsOn.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.element.target.dependsOn.valueSet"); } else return super.addChild(name); @@ -4132,22 +4132,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.unmapped.mode"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.unmapped.mode"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.unmapped.code"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.unmapped.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.unmapped.display"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.unmapped.display"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.unmapped.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.unmapped.valueSet"); } else if (name.equals("relationship")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.unmapped.relationship"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.unmapped.relationship"); } else if (name.equals("otherMap")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.unmapped.otherMap"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.group.unmapped.otherMap"); } else return super.addChild(name); @@ -6365,13 +6365,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -6382,28 +6382,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.title"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -6412,19 +6412,19 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); 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 a94d0f4e13..aebfba4efe 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 @@ -1739,7 +1739,7 @@ else if (name.equals("abatementString")) { return this.abatement; } else if (name.equals("recordedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Condition.recordedDate"); + throw new FHIRException("Cannot call addChild on a singleton property Condition.recordedDate"); } else if (name.equals("participant")) { return addParticipant(); 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 76abf7f5eb..0675890e18 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 @@ -920,7 +920,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.precondition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.precondition.type"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -1163,7 +1163,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.questionnaire.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.questionnaire.purpose"); } else if (name.equals("reference")) { this.reference = new Reference(); @@ -3771,13 +3771,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -3788,31 +3788,31 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -3837,16 +3837,16 @@ else if (name.equals("stage")) { return this.stage; } else if (name.equals("hasSeverity")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.hasSeverity"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.hasSeverity"); } else if (name.equals("hasBodySite")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.hasBodySite"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.hasBodySite"); } else if (name.equals("hasStage")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.hasStage"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.hasStage"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type ConditionDefinition.definition"); + throw new FHIRException("Cannot call addChild on a singleton property ConditionDefinition.definition"); } else if (name.equals("observation")) { return addObservation(); 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 977231c4b7..3bc48a16e6 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 @@ -389,7 +389,7 @@ public Base addChild(String name) throws FHIRException { return this.reference; } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.policyBasis.url"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.policyBasis.url"); } else return super.addChild(name); @@ -775,7 +775,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("verified")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.verification.verified"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.verification.verified"); } else if (name.equals("verificationType")) { this.verificationType = new CodeableConcept(); @@ -790,7 +790,7 @@ else if (name.equals("verifiedWith")) { return this.verifiedWith; } else if (name.equals("verificationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.verification.verificationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.verification.verificationDate"); } else return super.addChild(name); @@ -2193,7 +2193,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("meaning")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.provision.data.meaning"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.provision.data.meaning"); } else if (name.equals("reference")) { this.reference = new Reference(); @@ -3485,7 +3485,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.status"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.status"); } else if (name.equals("category")) { return addCategory(); @@ -3495,7 +3495,7 @@ else if (name.equals("subject")) { return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.date"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.date"); } else if (name.equals("period")) { this.period = new Period(); @@ -3533,7 +3533,7 @@ else if (name.equals("verification")) { return addVerification(); } else if (name.equals("decision")) { - throw new FHIRException("Cannot call addChild on a primitive type Consent.decision"); + throw new FHIRException("Cannot call addChild on a singleton property Consent.decision"); } else if (name.equals("provision")) { return addProvision(); 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 c794149cd5..24b68910d9 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 @@ -251,7 +251,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactDetail.name"); + throw new FHIRException("Cannot call addChild on a singleton property ContactDetail.name"); } else if (name.equals("telecom")) { return addTelecom(); 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 56602ca75d..b6f3268538 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 @@ -741,16 +741,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.system"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.value"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.value"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.use"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.use"); } else if (name.equals("rank")) { - throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.rank"); + throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.rank"); } else if (name.equals("period")) { this.period = new Period(); 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 7732ce45d5..2590dcbac2 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 @@ -1070,13 +1070,13 @@ else if (name.equals("publisher")) { return this.publisher; } else if (name.equals("publicationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.contentDefinition.publicationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.contentDefinition.publicationDate"); } else if (name.equals("publicationStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.contentDefinition.publicationStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.contentDefinition.publicationStatus"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.contentDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.contentDefinition.copyright"); } else return super.addChild(name); @@ -1901,7 +1901,7 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.issued"); } else if (name.equals("applies")) { this.applies = new Period(); @@ -1924,7 +1924,7 @@ else if (name.equals("subType")) { return this.subType; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.text"); } else if (name.equals("securityLabel")) { return addSecurityLabel(); @@ -2355,7 +2355,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.securityLabel.number"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.securityLabel.number"); } else if (name.equals("classification")) { this.classification = new Coding(); @@ -3147,13 +3147,13 @@ else if (name.equals("answer")) { return addAnswer(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.offer.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.offer.text"); } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.offer.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.offer.linkId"); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.offer.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.offer.securityLabelNumber"); } else return super.addChild(name); @@ -4970,7 +4970,7 @@ else if (name.equals("context")) { return addContext(); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.condition"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.condition"); } else if (name.equals("periodType")) { return addPeriodType(); @@ -4982,16 +4982,16 @@ else if (name.equals("usePeriod")) { return addUsePeriod(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.text"); } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.linkId"); } else if (name.equals("answer")) { return addAnswer(); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.securityLabelNumber"); } else if (name.equals("valuedItem")) { return addValuedItem(); @@ -5358,7 +5358,7 @@ else if (name.equals("code")) { return addCode(); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.context.text"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.context.text"); } else return super.addChild(name); @@ -6330,7 +6330,7 @@ else if (name.equals("identifier")) { return this.identifier; } else if (name.equals("effectiveTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.effectiveTime"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.effectiveTime"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); @@ -6341,20 +6341,20 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.factor"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.factor"); } else if (name.equals("points")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.points"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.points"); } else if (name.equals("net")) { this.net = new Money(); return this.net; } else if (name.equals("payment")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.payment"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.payment"); } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.paymentDate"); } else if (name.equals("responsible")) { this.responsible = new Reference(); @@ -6365,10 +6365,10 @@ else if (name.equals("recipient")) { return this.recipient; } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.linkId"); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.asset.valuedItem.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.asset.valuedItem.securityLabelNumber"); } else return super.addChild(name); @@ -7742,7 +7742,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.doNotPerform"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -7756,7 +7756,7 @@ else if (name.equals("intent")) { return this.intent; } else if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.linkId"); } else if (name.equals("status")) { this.status = new CodeableConcept(); @@ -7767,7 +7767,7 @@ else if (name.equals("context")) { return this.context; } else if (name.equals("contextLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.contextLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.contextLinkId"); } else if (name.equals("occurrenceDateTime")) { this.occurrence = new DateTimeType(); @@ -7785,7 +7785,7 @@ else if (name.equals("requester")) { return addRequester(); } else if (name.equals("requesterLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.requesterLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.requesterLinkId"); } else if (name.equals("performerType")) { return addPerformerType(); @@ -7799,19 +7799,19 @@ else if (name.equals("performer")) { return this.performer; } else if (name.equals("performerLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.performerLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.performerLinkId"); } else if (name.equals("reason")) { return addReason(); } else if (name.equals("reasonLinkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.reasonLinkId"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.reasonLinkId"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("securityLabelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.securityLabelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.term.action.securityLabelNumber"); } else return super.addChild(name); @@ -11165,13 +11165,13 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.url"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.url"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.version"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.version"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.status"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.status"); } else if (name.equals("legalState")) { this.legalState = new CodeableConcept(); @@ -11182,14 +11182,14 @@ else if (name.equals("instantiatesCanonical")) { return this.instantiatesCanonical; } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.instantiatesUri"); } else if (name.equals("contentDerivative")) { this.contentDerivative = new CodeableConcept(); return this.contentDerivative; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.issued"); } else if (name.equals("applies")) { this.applies = new Period(); @@ -11212,16 +11212,16 @@ else if (name.equals("site")) { return addSite(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.name"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.title"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.subtitle"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Contract.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Contract.alias"); } else if (name.equals("author")) { this.author = new Reference(); 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 dfde07dca7..44befd511e 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 @@ -448,10 +448,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Contributor.type"); + throw new FHIRException("Cannot call addChild on a singleton property Contributor.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Contributor.name"); + throw new FHIRException("Cannot call addChild on a singleton property Contributor.name"); } else if (name.equals("contact")) { return addContact(); 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 488630c1c5..2ab981407a 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 @@ -349,7 +349,7 @@ public Base addChild(String name) throws FHIRException { return this.party; } else if (name.equals("responsibility")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.paymentBy.responsibility"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.paymentBy.responsibility"); } else return super.addChild(name); @@ -630,7 +630,7 @@ else if (name.equals("value")) { return this.value; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.class.name"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.class.name"); } else return super.addChild(name); @@ -2609,10 +2609,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.status"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.kind"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.kind"); } else if (name.equals("paymentBy")) { return addPaymentBy(); @@ -2637,7 +2637,7 @@ else if (name.equals("beneficiary")) { return this.beneficiary; } else if (name.equals("dependent")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.dependent"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.dependent"); } else if (name.equals("relationship")) { this.relationship = new CodeableConcept(); @@ -2655,16 +2655,16 @@ else if (name.equals("class")) { return addClass_(); } else if (name.equals("order")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.order"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.order"); } else if (name.equals("network")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.network"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.network"); } else if (name.equals("costToBeneficiary")) { return addCostToBeneficiary(); } else if (name.equals("subrogation")) { - throw new FHIRException("Cannot call addChild on a primitive type Coverage.subrogation"); + throw new FHIRException("Cannot call addChild on a singleton property Coverage.subrogation"); } else if (name.equals("contract")) { return addContract(); 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 3e8bc401d7..0eacfad810 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 @@ -666,14 +666,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.supportingInfo.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.supportingInfo.sequence"); } else if (name.equals("information")) { this.information = new Reference(); return this.information; } else if (name.equals("appliesToAll")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.supportingInfo.appliesToAll"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.supportingInfo.appliesToAll"); } else return super.addChild(name); @@ -968,14 +968,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.insurance.focal"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.insurance.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("businessArrangement")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.insurance.businessArrangement"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.insurance.businessArrangement"); } else return super.addChild(name); @@ -1630,7 +1630,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("supportingInfoSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.item.supportingInfoSequence"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.item.supportingInfoSequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); @@ -2888,14 +2888,14 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.status"); } else if (name.equals("priority")) { this.priority = new CodeableConcept(); return this.priority; } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.purpose"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -2913,7 +2913,7 @@ else if (name.equals("servicedPeriod")) { return this.serviced; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityRequest.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); 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 1e2acf07bd..2c7a37e86d 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 @@ -846,7 +846,7 @@ public Base addChild(String name) throws FHIRException { return this.coverage; } else if (name.equals("inforce")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.inforce"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.inforce"); } else if (name.equals("benefitPeriod")) { this.benefitPeriod = new Period(); @@ -1775,13 +1775,13 @@ else if (name.equals("provider")) { return this.provider; } else if (name.equals("excluded")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.excluded"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.item.excluded"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.name"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.item.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.description"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.item.description"); } else if (name.equals("network")) { this.network = new CodeableConcept(); @@ -1799,13 +1799,13 @@ else if (name.equals("benefit")) { return addBenefit(); } else if (name.equals("authorizationRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.authorizationRequired"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.item.authorizationRequired"); } else if (name.equals("authorizationSupporting")) { return addAuthorizationSupporting(); } else if (name.equals("authorizationUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.authorizationUrl"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.insurance.item.authorizationUrl"); } else return super.addChild(name); @@ -2451,7 +2451,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.error.expression"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.error.expression"); } else return super.addChild(name); @@ -3547,10 +3547,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.status"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.purpose"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -3568,7 +3568,7 @@ else if (name.equals("servicedPeriod")) { return this.serviced; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.created"); } else if (name.equals("requestor")) { this.requestor = new Reference(); @@ -3579,10 +3579,10 @@ else if (name.equals("request")) { return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.disposition"); } else if (name.equals("insurer")) { this.insurer = new Reference(); @@ -3592,7 +3592,7 @@ else if (name.equals("insurance")) { return addInsurance(); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property CoverageEligibilityResponse.preAuthRef"); } else if (name.equals("form")) { this.form = new CodeableConcept(); 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 6c8fb40eee..567c60d7b2 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 @@ -656,13 +656,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.codeFilter.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.codeFilter.path"); } else if (name.equals("searchParam")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.codeFilter.searchParam"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.codeFilter.searchParam"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.codeFilter.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.codeFilter.valueSet"); } else if (name.equals("code")) { return addCode(); @@ -1008,10 +1008,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.dateFilter.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.dateFilter.path"); } else if (name.equals("searchParam")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.dateFilter.searchParam"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.dateFilter.searchParam"); } else if (name.equals("valueDateTime")) { this.value = new DateTimeType(); @@ -1429,13 +1429,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.valueFilter.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.valueFilter.path"); } else if (name.equals("searchParam")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.valueFilter.searchParam"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.valueFilter.searchParam"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.valueFilter.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.valueFilter.comparator"); } else if (name.equals("valueDateTime")) { this.value = new DateTimeType(); @@ -1702,10 +1702,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.sort.path"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.sort.path"); } else if (name.equals("direction")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.sort.direction"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.sort.direction"); } else return super.addChild(name); @@ -2471,10 +2471,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.type"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.profile"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.profile"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); @@ -2485,7 +2485,7 @@ else if (name.equals("subjectReference")) { return this.subject; } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.mustSupport"); } else if (name.equals("codeFilter")) { return addCodeFilter(); @@ -2497,7 +2497,7 @@ else if (name.equals("valueFilter")) { return addValueFilter(); } else if (name.equals("limit")) { - throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.limit"); + throw new FHIRException("Cannot call addChild on a singleton property DataRequirement.limit"); } else if (name.equals("sort")) { return addSort(); 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 a20b2fe17b..55a9b29ea6 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 @@ -855,7 +855,7 @@ public Base addChild(String name) throws FHIRException { return this.action; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.mitigation.date"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.mitigation.date"); } else if (name.equals("author")) { this.author = new Reference(); @@ -1847,7 +1847,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.status"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.status"); } else if (name.equals("category")) { return addCategory(); @@ -1857,7 +1857,7 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.severity"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.severity"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -1886,10 +1886,10 @@ else if (name.equals("evidence")) { return addEvidence(); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.detail"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.detail"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.reference"); + throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.reference"); } else if (name.equals("mitigation")) { return addMitigation(); 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 7865d5e888..21724cb99f 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 @@ -826,22 +826,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("deviceIdentifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.deviceIdentifier"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.deviceIdentifier"); } else if (name.equals("issuer")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.issuer"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.issuer"); } else if (name.equals("jurisdiction")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.jurisdiction"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.jurisdiction"); } else if (name.equals("carrierAIDC")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.carrierAIDC"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.carrierAIDC"); } else if (name.equals("carrierHRF")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.carrierHRF"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.carrierHRF"); } else if (name.equals("entryType")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.udiCarrier.entryType"); + throw new FHIRException("Cannot call addChild on a singleton property Device.udiCarrier.entryType"); } else return super.addChild(name); @@ -1162,13 +1162,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.name.value"); + throw new FHIRException("Cannot call addChild on a singleton property Device.name.value"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.name.type"); + throw new FHIRException("Cannot call addChild on a singleton property Device.name.type"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.name.display"); + throw new FHIRException("Cannot call addChild on a singleton property Device.name.display"); } else return super.addChild(name); @@ -1512,10 +1512,10 @@ else if (name.equals("component")) { return this.component; } else if (name.equals("installDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.version.installDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.version.installDate"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.version.value"); + throw new FHIRException("Cannot call addChild on a singleton property Device.version.value"); } else return super.addChild(name); @@ -1799,7 +1799,7 @@ else if (name.equals("specification")) { return this.specification; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.conformsTo.version"); + throw new FHIRException("Cannot call addChild on a singleton property Device.conformsTo.version"); } else return super.addChild(name); @@ -4210,7 +4210,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("displayName")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.displayName"); + throw new FHIRException("Cannot call addChild on a singleton property Device.displayName"); } else if (name.equals("definition")) { this.definition = new CodeableReference(); @@ -4220,7 +4220,7 @@ else if (name.equals("udiCarrier")) { return addUdiCarrier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.status"); + throw new FHIRException("Cannot call addChild on a singleton property Device.status"); } else if (name.equals("availabilityStatus")) { this.availabilityStatus = new CodeableConcept(); @@ -4231,28 +4231,28 @@ else if (name.equals("biologicalSourceEvent")) { return this.biologicalSourceEvent; } else if (name.equals("manufacturer")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufacturer"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufacturer"); } else if (name.equals("manufactureDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.manufactureDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.manufactureDate"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Device.expirationDate"); } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.lotNumber"); } else if (name.equals("serialNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.serialNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.serialNumber"); } else if (name.equals("name")) { return addName(); } else if (name.equals("modelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.modelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.modelNumber"); } else if (name.equals("partNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.partNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Device.partNumber"); } else if (name.equals("category")) { return addCategory(); @@ -4293,7 +4293,7 @@ else if (name.equals("location")) { return this.location; } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Device.url"); + throw new FHIRException("Cannot call addChild on a singleton property Device.url"); } else if (name.equals("endpoint")) { return addEndpoint(); 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 33526c6da0..a74cc5fb4a 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 @@ -768,13 +768,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("deviceIdentifier")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.udiDeviceIdentifier.deviceIdentifier"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.udiDeviceIdentifier.deviceIdentifier"); } else if (name.equals("issuer")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.udiDeviceIdentifier.issuer"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.udiDeviceIdentifier.issuer"); } else if (name.equals("jurisdiction")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.udiDeviceIdentifier.jurisdiction"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.udiDeviceIdentifier.jurisdiction"); } else if (name.equals("marketDistribution")) { return addMarketDistribution(); @@ -1017,7 +1017,7 @@ public Base addChild(String name) throws FHIRException { return this.marketPeriod; } else if (name.equals("subJurisdiction")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.udiDeviceIdentifier.marketDistribution.subJurisdiction"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.udiDeviceIdentifier.marketDistribution.subJurisdiction"); } else return super.addChild(name); @@ -1395,16 +1395,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.regulatoryIdentifier.type"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.regulatoryIdentifier.type"); } else if (name.equals("deviceIdentifier")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.regulatoryIdentifier.deviceIdentifier"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.regulatoryIdentifier.deviceIdentifier"); } else if (name.equals("issuer")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.regulatoryIdentifier.issuer"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.regulatoryIdentifier.issuer"); } else if (name.equals("jurisdiction")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.regulatoryIdentifier.jurisdiction"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.regulatoryIdentifier.jurisdiction"); } else return super.addChild(name); @@ -1664,10 +1664,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.deviceName.name"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.deviceName.name"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.deviceName.type"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.deviceName.type"); } else return super.addChild(name); @@ -2271,7 +2271,7 @@ else if (name.equals("specification")) { return this.specification; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.conformsTo.version"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.conformsTo.version"); } else if (name.equals("source")) { return addSource(); @@ -2515,7 +2515,7 @@ public Base addChild(String name) throws FHIRException { return this.reference; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.hasPart.count"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.hasPart.count"); } else return super.addChild(name); @@ -2991,7 +2991,7 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.packaging.count"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.packaging.count"); } else if (name.equals("distributor")) { return addDistributor(); @@ -3269,7 +3269,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.packaging.distributor.name"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.packaging.distributor.name"); } else if (name.equals("organizationReference")) { return addOrganizationReference(); @@ -3552,7 +3552,7 @@ else if (name.equals("component")) { return this.component; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.version.value"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.version.value"); } else return super.addChild(name); @@ -4403,10 +4403,10 @@ public Base addChild(String name) throws FHIRException { return this.substance; } else if (name.equals("alternate")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.material.alternate"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.material.alternate"); } else if (name.equals("allergenicIndicator")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.material.allergenicIndicator"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.material.allergenicIndicator"); } else return super.addChild(name); @@ -5009,7 +5009,7 @@ public Base addChild(String name) throws FHIRException { return addUseContext(); } else if (name.equals("usageInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.guideline.usageInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.guideline.usageInstruction"); } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); @@ -5024,7 +5024,7 @@ else if (name.equals("warning")) { return addWarning(); } else if (name.equals("intendedUse")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.guideline.intendedUse"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.guideline.intendedUse"); } else return super.addChild(name); @@ -5349,10 +5349,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("recall")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.correctiveAction.recall"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.correctiveAction.recall"); } else if (name.equals("scope")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.correctiveAction.scope"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.correctiveAction.scope"); } else if (name.equals("period")) { this.period = new Period(); @@ -7511,7 +7511,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.description"); } else if (name.equals("identifier")) { return addIdentifier(); @@ -7523,7 +7523,7 @@ else if (name.equals("regulatoryIdentifier")) { return addRegulatoryIdentifier(); } else if (name.equals("partNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.partNumber"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.partNumber"); } else if (name.equals("manufacturer")) { this.manufacturer = new Reference(); @@ -7533,7 +7533,7 @@ else if (name.equals("deviceName")) { return addDeviceName(); } else if (name.equals("modelNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.modelNumber"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.modelNumber"); } else if (name.equals("classification")) { return addClassification(); @@ -7579,7 +7579,7 @@ else if (name.equals("material")) { return addMaterial(); } else if (name.equals("productionIdentifierInUDI")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.productionIdentifierInUDI"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDefinition.productionIdentifierInUDI"); } else if (name.equals("guideline")) { this.guideline = new DeviceDefinitionGuidelineComponent(); 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 67bafbac56..95420432b2 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 @@ -1745,7 +1745,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDispense.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDispense.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableReference(); @@ -1789,10 +1789,10 @@ else if (name.equals("quantity")) { return this.quantity; } else if (name.equals("preparedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDispense.preparedDate"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDispense.preparedDate"); } else if (name.equals("whenHandedOver")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDispense.whenHandedOver"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDispense.whenHandedOver"); } else if (name.equals("destination")) { this.destination = new Reference(); @@ -1802,7 +1802,7 @@ else if (name.equals("note")) { return addNote(); } else if (name.equals("usageInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDispense.usageInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceDispense.usageInstruction"); } else if (name.equals("eventHistory")) { return addEventHistory(); 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 cd6e78ab21..9fac4e9985 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 @@ -834,13 +834,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.calibration.type"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.calibration.type"); } else if (name.equals("state")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.calibration.state"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.calibration.state"); } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.calibration.time"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.calibration.time"); } else return super.addChild(name); @@ -1487,13 +1487,13 @@ else if (name.equals("device")) { return this.device; } else if (name.equals("operationalStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.operationalStatus"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.operationalStatus"); } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.color"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.color"); } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.category"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.category"); } else if (name.equals("measurementFrequency")) { this.measurementFrequency = new Quantity(); 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 86abccf607..b4c05ee026 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 @@ -2023,10 +2023,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -2039,23 +2039,23 @@ else if (name.equals("groupIdentifier")) { return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.doNotPerform"); } else if (name.equals("code")) { this.code = new CodeableReference(); return this.code; } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.quantity"); } else if (name.equals("parameter")) { return addParameter(); @@ -2081,7 +2081,7 @@ else if (name.equals("occurrenceTiming")) { return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); @@ -2095,7 +2095,7 @@ else if (name.equals("reason")) { return addReason(); } else if (name.equals("asNeeded")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.asNeeded"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceRequest.asNeeded"); } else if (name.equals("asNeededFor")) { this.asNeededFor = new CodeableConcept(); 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 916818f148..db8dfb1038 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 @@ -1550,7 +1550,7 @@ else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUsage.status"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUsage.status"); } else if (name.equals("category")) { return addCategory(); @@ -1579,7 +1579,7 @@ else if (name.equals("timingDateTime")) { return this.timing; } else if (name.equals("dateAsserted")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUsage.dateAsserted"); + throw new FHIRException("Cannot call addChild on a singleton property DeviceUsage.dateAsserted"); } else if (name.equals("usageStatus")) { this.usageStatus = new CodeableConcept(); 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 2ad9caae90..2c0b7f9a20 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 @@ -684,7 +684,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.media.comment"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.media.comment"); } else if (name.equals("link")) { this.link = new Reference(); @@ -2161,7 +2161,7 @@ else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.status"); } else if (name.equals("category")) { return addCategory(); @@ -2187,7 +2187,7 @@ else if (name.equals("effectivePeriod")) { return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.issued"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.issued"); } else if (name.equals("performer")) { return addPerformer(); @@ -2218,7 +2218,7 @@ else if (name.equals("composition")) { return this.composition; } else if (name.equals("conclusion")) { - throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.conclusion"); + throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.conclusion"); } else if (name.equals("conclusionCode")) { return addConclusionCode(); 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 90de36c7e2..f538d2579e 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 @@ -391,7 +391,7 @@ public Base addChild(String name) throws FHIRException { return this.mode; } else if (name.equals("time")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.attester.time"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.attester.time"); } else if (name.equals("party")) { this.party = new Reference(); @@ -2618,16 +2618,16 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.version"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.version"); } else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.status"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.status"); } else if (name.equals("docStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.docStatus"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.docStatus"); } else if (name.equals("modality")) { return addModality(); @@ -2665,7 +2665,7 @@ else if (name.equals("period")) { return this.period; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.date"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.date"); } else if (name.equals("author")) { return addAuthor(); @@ -2681,7 +2681,7 @@ else if (name.equals("relatesTo")) { return addRelatesTo(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.description"); + throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.description"); } else if (name.equals("securityLabel")) { return addSecurityLabel(); 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 8ec0b6b10f..f669919314 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 @@ -1240,23 +1240,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.sequence"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.text"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.text"); } else if (name.equals("additionalInstruction")) { return addAdditionalInstruction(); } else if (name.equals("patientInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.patientInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.patientInstruction"); } else if (name.equals("timing")) { this.timing = new Timing(); return this.timing; } else if (name.equals("asNeeded")) { - throw new FHIRException("Cannot call addChild on a primitive type Dosage.asNeeded"); + throw new FHIRException("Cannot call addChild on a singleton property Dosage.asNeeded"); } else if (name.equals("asNeededFor")) { return addAsNeededFor(); 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 0df5a05323..d9876dbe85 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 @@ -254,7 +254,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Element.id"); + throw new FHIRException("Cannot call addChild on a singleton property Element.id"); } else if (name.equals("extension")) { return addExtension(); 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 0f1556cf45..4b6a5eb7ac 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 @@ -1356,13 +1356,13 @@ public Base addChild(String name) throws FHIRException { return addDiscriminator(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.slicing.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.slicing.description"); } else if (name.equals("ordered")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.slicing.ordered"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.slicing.ordered"); } else if (name.equals("rules")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.slicing.rules"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.slicing.rules"); } else return super.addChild(name); @@ -1626,10 +1626,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.slicing.discriminator.type"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.slicing.discriminator.type"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.slicing.discriminator.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.slicing.discriminator.path"); } else return super.addChild(name); @@ -1944,13 +1944,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.base.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.base.path"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.base.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.base.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.base.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.base.max"); } else return super.addChild(name); @@ -2444,19 +2444,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type.code"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type.code"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type.profile"); } else if (name.equals("targetProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type.targetProfile"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type.targetProfile"); } else if (name.equals("aggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type.aggregation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type.aggregation"); } else if (name.equals("versioning")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.type.versioning"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.type.versioning"); } else return super.addChild(name); @@ -3648,7 +3648,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.example.label"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.example.label"); } else if (name.equals("valueBase64Binary")) { this.value = new Base64BinaryType(); @@ -4437,25 +4437,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("key")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.key"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.key"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.requirements"); } else if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.severity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.severity"); } else if (name.equals("suppress")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.suppress"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.suppress"); } else if (name.equals("human")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.human"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.human"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.expression"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.expression"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.constraint.source"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.constraint.source"); } else return super.addChild(name); @@ -4854,13 +4854,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.strength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.strength"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.description"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.description"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.valueSet"); } else if (name.equals("additional")) { return addAdditional(); @@ -5397,22 +5397,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.additional.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.additional.purpose"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.additional.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.additional.valueSet"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.additional.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.additional.documentation"); } else if (name.equals("shortDoco")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.additional.shortDoco"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.additional.shortDoco"); } else if (name.equals("usage")) { return addUsage(); } else if (name.equals("any")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.binding.additional.any"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.binding.additional.any"); } else return super.addChild(name); @@ -5804,16 +5804,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mapping.identity"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mapping.identity"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mapping.language"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mapping.language"); } else if (name.equals("map")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mapping.map"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mapping.map"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mapping.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mapping.comment"); } else return super.addChild(name); @@ -11745,19 +11745,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path"); } else if (name.equals("representation")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.representation"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.representation"); } else if (name.equals("sliceName")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.sliceName"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.sliceName"); } else if (name.equals("sliceIsConstraining")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.sliceIsConstraining"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.sliceIsConstraining"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.label"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.label"); } else if (name.equals("code")) { return addCode(); @@ -11767,32 +11767,32 @@ else if (name.equals("slicing")) { return this.slicing; } else if (name.equals("short")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.short"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.short"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.definition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.definition"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.comment"); } else if (name.equals("requirements")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.alias"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.alias"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max"); } else if (name.equals("base")) { this.base = new ElementDefinitionBaseComponent(); return this.base; } else if (name.equals("contentReference")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.contentReference"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.contentReference"); } else if (name.equals("type")) { return addType(); @@ -12014,10 +12014,10 @@ else if (name.equals("defaultValueMeta")) { return this.defaultValue; } else if (name.equals("meaningWhenMissing")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.meaningWhenMissing"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.meaningWhenMissing"); } else if (name.equals("orderMeaning")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.orderMeaning"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.orderMeaning"); } else if (name.equals("fixedBase64Binary")) { this.fixed = new Base64BinaryType(); @@ -12535,31 +12535,31 @@ else if (name.equals("maxValueQuantity")) { return this.maxValue; } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.maxLength"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.condition"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.condition"); } else if (name.equals("constraint")) { return addConstraint(); } else if (name.equals("mustHaveValue")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mustHaveValue"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mustHaveValue"); } else if (name.equals("valueAlternatives")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.valueAlternatives"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.valueAlternatives"); } else if (name.equals("mustSupport")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mustSupport"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mustSupport"); } else if (name.equals("isModifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isModifier"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isModifier"); } else if (name.equals("isModifierReason")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isModifierReason"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isModifierReason"); } else if (name.equals("isSummary")) { - throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isSummary"); + throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isSummary"); } else if (name.equals("binding")) { this.binding = new ElementDefinitionBindingComponent(); 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 4ceb8b601b..808cfa9116 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 @@ -1658,7 +1658,7 @@ public Base addChild(String name) throws FHIRException { return this.location; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.location.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.location.status"); } else if (name.equals("form")) { this.form = new CodeableConcept(); @@ -3516,7 +3516,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.status"); } else if (name.equals("class")) { return addClass_(); @@ -3570,10 +3570,10 @@ else if (name.equals("actualPeriod")) { return this.actualPeriod; } else if (name.equals("plannedStartDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.plannedStartDate"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.plannedStartDate"); } else if (name.equals("plannedEndDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Encounter.plannedEndDate"); + throw new FHIRException("Cannot call addChild on a singleton property Encounter.plannedEndDate"); } else if (name.equals("length")) { this.length = new Duration(); 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 23dc0af898..2bbbebff06 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 @@ -1069,7 +1069,7 @@ else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EncounterHistory.status"); + throw new FHIRException("Cannot call addChild on a singleton property EncounterHistory.status"); } else if (name.equals("class")) { this.class_ = new CodeableConcept(); @@ -1094,10 +1094,10 @@ else if (name.equals("actualPeriod")) { return this.actualPeriod; } else if (name.equals("plannedStartDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EncounterHistory.plannedStartDate"); + throw new FHIRException("Cannot call addChild on a singleton property EncounterHistory.plannedStartDate"); } else if (name.equals("plannedEndDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EncounterHistory.plannedEndDate"); + throw new FHIRException("Cannot call addChild on a singleton property EncounterHistory.plannedEndDate"); } else if (name.equals("length")) { this.length = new Duration(); 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 3e152bebbc..a949febc41 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 @@ -415,7 +415,7 @@ public Base addChild(String name) throws FHIRException { return addType(); } else if (name.equals("mimeType")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.payload.mimeType"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.payload.mimeType"); } else return super.addChild(name); @@ -1319,16 +1319,16 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.status"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.status"); } else if (name.equals("connectionType")) { return addConnectionType(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.name"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.description"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.description"); } else if (name.equals("environmentType")) { return addEnvironmentType(); @@ -1348,10 +1348,10 @@ else if (name.equals("payload")) { return addPayload(); } else if (name.equals("address")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.address"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.address"); } else if (name.equals("header")) { - throw new FHIRException("Cannot call addChild on a primitive type Endpoint.header"); + throw new FHIRException("Cannot call addChild on a singleton property Endpoint.header"); } else return super.addChild(name); 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 9c4a689832..385a766cbc 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 @@ -488,10 +488,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.status"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.created"); } else if (name.equals("insurer")) { this.insurer = new Reference(); 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 8480482b23..7d62cdb581 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 @@ -710,20 +710,20 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.status"); } else if (name.equals("request")) { this.request = new Reference(); return this.request; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.disposition"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.created"); + throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.created"); } else if (name.equals("organization")) { this.organization = new Reference(); 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 c23943d5ff..e8c70022ae 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 @@ -409,7 +409,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.statusHistory.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.statusHistory.status"); } else if (name.equals("period")) { this.period = new Period(); @@ -1797,7 +1797,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); + throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status"); } else if (name.equals("statusHistory")) { return addStatusHistory(); 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 c0ec8fd82d..abc8913976 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 @@ -2135,13 +2135,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -2152,19 +2152,19 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); @@ -2175,16 +2175,16 @@ else if (name.equals("subjectReference")) { return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -2193,22 +2193,22 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EventDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property EventDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); 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 afa9a76d7b..8c00c7576a 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 @@ -429,7 +429,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.variableDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.variableDefinition.description"); } else if (name.equals("note")) { return addNote(); @@ -1138,7 +1138,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.description"); } else if (name.equals("note")) { return addNote(); @@ -1156,10 +1156,10 @@ else if (name.equals("quantity")) { return this.quantity; } else if (name.equals("numberOfEvents")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.numberOfEvents"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.numberOfEvents"); } else if (name.equals("numberAffected")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.numberAffected"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.numberAffected"); } else if (name.equals("sampleSize")) { this.sampleSize = new EvidenceStatisticSampleSizeComponent(); @@ -1632,19 +1632,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.sampleSize.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.sampleSize.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("numberOfStudies")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.sampleSize.numberOfStudies"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.sampleSize.numberOfStudies"); } else if (name.equals("numberOfParticipants")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.sampleSize.numberOfParticipants"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.sampleSize.numberOfParticipants"); } else if (name.equals("knownDataCount")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.sampleSize.knownDataCount"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.sampleSize.knownDataCount"); } else return super.addChild(name); @@ -2184,7 +2184,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.attributeEstimate.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.attributeEstimate.description"); } else if (name.equals("note")) { return addNote(); @@ -2198,7 +2198,7 @@ else if (name.equals("quantity")) { return this.quantity; } else if (name.equals("level")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.attributeEstimate.level"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.attributeEstimate.level"); } else if (name.equals("range")) { this.range = new Range(); @@ -3035,7 +3035,7 @@ public Base addChild(String name) throws FHIRException { return this.variableDefinition; } else if (name.equals("handling")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.statistic.modelCharacteristic.variable.handling"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.statistic.modelCharacteristic.variable.handling"); } else if (name.equals("valueCategory")) { return addValueCategory(); @@ -3532,7 +3532,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.certainty.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.certainty.description"); } else if (name.equals("note")) { return addNote(); @@ -3546,7 +3546,7 @@ else if (name.equals("rating")) { return this.rating; } else if (name.equals("rater")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.certainty.rater"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.certainty.rater"); } else if (name.equals("subcomponent")) { return addSubcomponent(); @@ -5861,13 +5861,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.url"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.version"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -5878,10 +5878,10 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.name"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.title"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.title"); } else if (name.equals("citeAsReference")) { this.citeAs = new Reference(); @@ -5892,22 +5892,22 @@ else if (name.equals("citeAsMarkdown")) { return this.citeAs; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.status"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.date"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.date"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.lastReviewDate"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.publisher"); } else if (name.equals("contact")) { return addContact(); @@ -5928,22 +5928,22 @@ else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.copyrightLabel"); } else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.description"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.description"); } else if (name.equals("assertion")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.assertion"); + throw new FHIRException("Cannot call addChild on a singleton property Evidence.assertion"); } else if (name.equals("note")) { return addNote(); 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 4b53336ffc..59533f0c8c 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 @@ -873,7 +873,7 @@ else if (name.equals("valueRange")) { return this.value; } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.subject.characteristic.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.subject.characteristic.exclude"); } else if (name.equals("period")) { this.period = new Period(); @@ -1110,7 +1110,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.relatesTo.code"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.relatesTo.code"); } else if (name.equals("target")) { this.target = new EvidenceReportRelatesToTargetComponent(); @@ -1442,14 +1442,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.relatesTo.target.url"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.relatesTo.target.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.relatesTo.target.display"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.relatesTo.target.display"); } else if (name.equals("resource")) { this.resource = new Reference(); @@ -2265,7 +2265,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.section.title"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.section.title"); } else if (name.equals("focus")) { this.focus = new CodeableConcept(); @@ -2283,7 +2283,7 @@ else if (name.equals("text")) { return this.text; } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.section.mode"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.section.mode"); } else if (name.equals("orderedBy")) { this.orderedBy = new CodeableConcept(); @@ -4182,10 +4182,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.url"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.url"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.status"); } else if (name.equals("useContext")) { return addUseContext(); @@ -4219,7 +4219,7 @@ else if (name.equals("subject")) { return this.subject; } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceReport.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceReport.publisher"); } else if (name.equals("contact")) { return addContact(); 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 bf0e1db317..5a8c2b7f77 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 @@ -1109,23 +1109,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristic.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristic.linkId"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristic.description"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristic.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristic.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristic.exclude"); } else if (name.equals("definitionReference")) { this.definitionReference = new Reference(); return this.definitionReference; } else if (name.equals("definitionCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristic.definitionCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristic.definitionCanonical"); } else if (name.equals("definitionCodeableConcept")) { this.definitionCodeableConcept = new CodeableConcept(); @@ -1136,7 +1136,7 @@ else if (name.equals("definitionExpression")) { return this.definitionExpression; } else if (name.equals("definitionId")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristic.definitionId"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristic.definitionId"); } else if (name.equals("definitionByTypeAndValue")) { this.definitionByTypeAndValue = new EvidenceVariableCharacteristicDefinitionByTypeAndValueComponent(); @@ -2014,10 +2014,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristic.definitionByCombination.code"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristic.definitionByCombination.code"); } else if (name.equals("threshold")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristic.definitionByCombination.threshold"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristic.definitionByCombination.threshold"); } else if (name.equals("characteristic")) { return addCharacteristic(); @@ -2464,7 +2464,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.characteristic.timeFromEvent.description"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.characteristic.timeFromEvent.description"); } else if (name.equals("note")) { return addNote(); @@ -2768,7 +2768,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.category.name"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.category.name"); } else if (name.equals("valueCodeableConcept")) { this.value = new CodeableConcept(); @@ -4980,13 +4980,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.url"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.version"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -4997,31 +4997,31 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.name"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.title"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.title"); } else if (name.equals("shortTitle")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.shortTitle"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.shortTitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.status"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.date"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.description"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.description"); } else if (name.equals("note")) { return addNote(); @@ -5030,19 +5030,19 @@ else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -5064,13 +5064,13 @@ else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.actual"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.actual"); } else if (name.equals("characteristic")) { return addCharacteristic(); } else if (name.equals("handling")) { - throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.handling"); + throw new FHIRException("Cannot call addChild on a singleton property EvidenceVariable.handling"); } else if (name.equals("category")) { return addCategory(); 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 948150222c..ec2f52a359 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 @@ -383,16 +383,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("key")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.key"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.actor.key"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.type"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.actor.type"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.title"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.actor.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.actor.description"); } else return super.addChild(name); @@ -1072,14 +1072,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("key")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.key"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.key"); } else if (name.equals("structureType")) { this.structureType = new Coding(); return this.structureType; } else if (name.equals("structureVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.structureVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.structureVersion"); } else if (name.equals("structureProfileCanonical")) { this.structureProfile = new CanonicalType(); @@ -1090,10 +1090,10 @@ else if (name.equals("structureProfileUri")) { return this.structureProfile; } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.title"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.description"); } else if (name.equals("content")) { this.content = new Reference(); @@ -1477,13 +1477,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("key")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.version.key"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.version.key"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.version.title"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.version.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.version.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.version.description"); } else if (name.equals("content")) { this.content = new Reference(); @@ -1742,10 +1742,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("instanceReference")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.containedInstance.instanceReference"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.containedInstance.instanceReference"); } else if (name.equals("versionReference")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.containedInstance.versionReference"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.instance.containedInstance.versionReference"); } else return super.addChild(name); @@ -2200,16 +2200,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.title"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.description"); } else if (name.equals("preConditions")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.preConditions"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.preConditions"); } else if (name.equals("postConditions")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.postConditions"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.postConditions"); } else if (name.equals("step")) { return addStep(); @@ -2682,14 +2682,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.number"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.number"); } else if (name.equals("process")) { this.process = new ExampleScenarioProcessComponent(); return this.process; } else if (name.equals("workflow")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.workflow"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.workflow"); } else if (name.equals("operation")) { this.operation = new ExampleScenarioProcessStepOperationComponent(); @@ -2699,7 +2699,7 @@ else if (name.equals("alternative")) { return addAlternative(); } else if (name.equals("pause")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.pause"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.pause"); } else return super.addChild(name); @@ -3345,22 +3345,22 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.operation.title"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.operation.title"); } else if (name.equals("initiator")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.operation.initiator"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.operation.initiator"); } else if (name.equals("receiver")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.operation.receiver"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.operation.receiver"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.operation.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.operation.description"); } else if (name.equals("initiatorActive")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.operation.initiatorActive"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.operation.initiatorActive"); } else if (name.equals("receiverActive")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.operation.receiverActive"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.operation.receiverActive"); } else if (name.equals("request")) { this.request = new ExampleScenarioInstanceContainedInstanceComponent(); @@ -3701,10 +3701,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.alternative.title"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.alternative.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.alternative.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.process.step.alternative.description"); } else if (name.equals("step")) { return addStep(); @@ -5185,13 +5185,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.url"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.version"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -5202,28 +5202,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.title"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.status"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -5232,13 +5232,13 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property ExampleScenario.copyrightLabel"); } else if (name.equals("actor")) { return addActor(); 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 106f1c69de..cc89b67836 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 @@ -1203,14 +1203,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.careTeam.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.careTeam.sequence"); } else if (name.equals("provider")) { this.provider = new Reference(); return this.provider; } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.careTeam.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.careTeam.responsible"); } else if (name.equals("role")) { this.role = new CodeableConcept(); @@ -1743,7 +1743,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.supportingInfo.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.supportingInfo.sequence"); } else if (name.equals("category")) { this.category = new CodeableConcept(); @@ -2165,7 +2165,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.diagnosis.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.diagnosis.sequence"); } else if (name.equals("diagnosisCodeableConcept")) { this.diagnosis = new CodeableConcept(); @@ -2653,13 +2653,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.procedure.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.procedure.sequence"); } else if (name.equals("type")) { return addType(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.procedure.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.procedure.date"); } else if (name.equals("procedureCodeableConcept")) { this.procedure = new CodeableConcept(); @@ -2987,14 +2987,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("focal")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.insurance.focal"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.insurance.focal"); } else if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.insurance.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.insurance.preAuthRef"); } else return super.addChild(name); @@ -3295,7 +3295,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.accident.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.accident.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -5174,19 +5174,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.sequence"); } else if (name.equals("careTeamSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.careTeamSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.careTeamSequence"); } else if (name.equals("diagnosisSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.diagnosisSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.diagnosisSequence"); } else if (name.equals("procedureSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.procedureSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.procedureSequence"); } else if (name.equals("informationSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.informationSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.informationSequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); @@ -5249,7 +5249,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -5269,7 +5269,7 @@ else if (name.equals("encounter")) { return addEncounter(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ItemReviewOutcomeComponent(); @@ -5994,7 +5994,7 @@ else if (name.equals("reason")) { return addReason(); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.reviewOutcome.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.reviewOutcome.preAuthRef"); } else if (name.equals("preAuthPeriod")) { this.preAuthPeriod = new Period(); @@ -7493,7 +7493,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.sequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); @@ -7533,7 +7533,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -7547,7 +7547,7 @@ else if (name.equals("udi")) { return addUdi(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ItemReviewOutcomeComponent(); @@ -8726,7 +8726,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.subDetail.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.subDetail.sequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); @@ -8766,7 +8766,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.subDetail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.subDetail.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -8780,7 +8780,7 @@ else if (name.equals("udi")) { return addUdi(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.item.detail.subDetail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.item.detail.subDetail.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ItemReviewOutcomeComponent(); @@ -10443,13 +10443,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("itemSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.itemSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.itemSequence"); } else if (name.equals("detailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.detailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.detailSequence"); } else if (name.equals("subDetailSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.subDetailSequence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.subDetailSequence"); } else if (name.equals("traceNumber")) { return addTraceNumber(); @@ -10511,7 +10511,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -10525,7 +10525,7 @@ else if (name.equals("bodySite")) { return addBodySite(); } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ItemReviewOutcomeComponent(); @@ -11854,7 +11854,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.detail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.detail.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -11865,7 +11865,7 @@ else if (name.equals("net")) { return this.net; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.detail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.detail.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ItemReviewOutcomeComponent(); @@ -12805,7 +12805,7 @@ else if (name.equals("unitPrice")) { return this.unitPrice; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.detail.subDetail.factor"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.detail.subDetail.factor"); } else if (name.equals("tax")) { this.tax = new Money(); @@ -12816,7 +12816,7 @@ else if (name.equals("net")) { return this.net; } else if (name.equals("noteNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.addItem.detail.subDetail.noteNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.addItem.detail.subDetail.noteNumber"); } else if (name.equals("reviewOutcome")) { this.reviewOutcome = new ItemReviewOutcomeComponent(); @@ -13468,7 +13468,7 @@ else if (name.equals("adjustmentReason")) { return this.adjustmentReason; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.payment.date"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.payment.date"); } else if (name.equals("amount")) { this.amount = new Money(); @@ -13809,14 +13809,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.processNote.number"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.processNote.number"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.processNote.text"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.processNote.text"); } else if (name.equals("language")) { this.language = new CodeableConcept(); @@ -14382,13 +14382,13 @@ public Base addChild(String name) throws FHIRException { return this.category; } else if (name.equals("excluded")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.benefitBalance.excluded"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.benefitBalance.excluded"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.benefitBalance.name"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.benefitBalance.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.benefitBalance.description"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.benefitBalance.description"); } else if (name.equals("network")) { this.network = new CodeableConcept(); @@ -17581,7 +17581,7 @@ else if (name.equals("traceNumber")) { return addTraceNumber(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.status"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -17592,7 +17592,7 @@ else if (name.equals("subType")) { return this.subType; } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.use"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.use"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -17603,7 +17603,7 @@ else if (name.equals("billablePeriod")) { return this.billablePeriod; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.created"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); @@ -17667,17 +17667,17 @@ else if (name.equals("claimResponse")) { return this.claimResponse; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.outcome"); } else if (name.equals("decision")) { this.decision = new CodeableConcept(); return this.decision; } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.disposition"); } else if (name.equals("preAuthRef")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.preAuthRef"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.preAuthRef"); } else if (name.equals("preAuthRefPeriod")) { return addPreAuthRefPeriod(); @@ -17699,7 +17699,7 @@ else if (name.equals("procedure")) { return addProcedure(); } else if (name.equals("precedence")) { - throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.precedence"); + throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.precedence"); } else if (name.equals("insurance")) { return addInsurance(); 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 faabfebb74..44e42a8000 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 @@ -445,19 +445,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.description"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.description"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.name"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.name"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.language"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.language"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.expression"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.expression"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Expression.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Expression.reference"); } else return super.addChild(name); 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 62807a278b..57ceebd9d7 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 @@ -1104,7 +1104,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Extension.url"); + throw new FHIRException("Cannot call addChild on a singleton property Extension.url"); } else if (name.equals("valueBase64Binary")) { this.value = new Base64BinaryType(); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FamilyMemberHistory.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FamilyMemberHistory.java index 3a9fc9f2e7..6372d06550 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FamilyMemberHistory.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FamilyMemberHistory.java @@ -792,7 +792,7 @@ else if (name.equals("outcome")) { return this.outcome; } else if (name.equals("contributedToDeath")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.condition.contributedToDeath"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.condition.contributedToDeath"); } else if (name.equals("onsetAge")) { this.onset = new Age(); @@ -1286,7 +1286,7 @@ else if (name.equals("outcome")) { return this.outcome; } else if (name.equals("contributedToDeath")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.procedure.contributedToDeath"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.procedure.contributedToDeath"); } else if (name.equals("performedAge")) { this.performed = new Age(); @@ -2742,13 +2742,13 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.instantiatesUri"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.status"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.status"); } else if (name.equals("dataAbsentReason")) { this.dataAbsentReason = new CodeableConcept(); @@ -2759,13 +2759,13 @@ else if (name.equals("patient")) { return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.date"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.date"); } else if (name.equals("participant")) { return addParticipant(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.name"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.name"); } else if (name.equals("relationship")) { this.relationship = new CodeableConcept(); @@ -2800,7 +2800,7 @@ else if (name.equals("ageString")) { return this.age; } else if (name.equals("estimatedAge")) { - throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.estimatedAge"); + throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.estimatedAge"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); 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 86839885bf..46dbe7bad4 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 @@ -653,7 +653,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Flag.status"); + throw new FHIRException("Cannot call addChild on a singleton property Flag.status"); } else if (name.equals("category")) { return addCategory(); 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 8d88379f8a..d097e1ecaa 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 @@ -416,7 +416,7 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type FormularyItem.status"); + throw new FHIRException("Cannot call addChild on a singleton property FormularyItem.status"); } else return super.addChild(name); 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 af5732e046..2d2c151558 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 @@ -1464,13 +1464,13 @@ else if (name.equals("genomeBuild")) { return this.genomeBuild; } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type GenomicStudy.analysis.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property GenomicStudy.analysis.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type GenomicStudy.analysis.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property GenomicStudy.analysis.instantiatesUri"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type GenomicStudy.analysis.title"); + throw new FHIRException("Cannot call addChild on a singleton property GenomicStudy.analysis.title"); } else if (name.equals("focus")) { return addFocus(); @@ -1479,7 +1479,7 @@ else if (name.equals("specimen")) { return addSpecimen(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type GenomicStudy.analysis.date"); + throw new FHIRException("Cannot call addChild on a singleton property GenomicStudy.analysis.date"); } else if (name.equals("note")) { return addNote(); @@ -3535,7 +3535,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type GenomicStudy.status"); + throw new FHIRException("Cannot call addChild on a singleton property GenomicStudy.status"); } else if (name.equals("type")) { return addType(); @@ -3549,7 +3549,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("startDate")) { - throw new FHIRException("Cannot call addChild on a primitive type GenomicStudy.startDate"); + throw new FHIRException("Cannot call addChild on a singleton property GenomicStudy.startDate"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -3565,16 +3565,16 @@ else if (name.equals("reason")) { return addReason(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type GenomicStudy.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property GenomicStudy.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type GenomicStudy.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property GenomicStudy.instantiatesUri"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GenomicStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property GenomicStudy.description"); } else if (name.equals("analysis")) { return addAnalysis(); 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 b2e868c6fc..472bab2998 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 @@ -1718,7 +1718,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("lifecycleStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.lifecycleStatus"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.lifecycleStatus"); } else if (name.equals("achievementStatus")) { this.achievementStatus = new CodeableConcept(); @@ -1728,7 +1728,7 @@ else if (name.equals("category")) { return addCategory(); } else if (name.equals("continuous")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.continuous"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.continuous"); } else if (name.equals("priority")) { this.priority = new CodeableConcept(); @@ -1754,10 +1754,10 @@ else if (name.equals("target")) { return addTarget(); } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.statusDate"); } else if (name.equals("statusReason")) { - throw new FHIRException("Cannot call addChild on a primitive type Goal.statusReason"); + throw new FHIRException("Cannot call addChild on a singleton property Goal.statusReason"); } else if (name.equals("source")) { this.source = new Reference(); 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 a8e5863b9d..7e9ccafa1e 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 @@ -610,16 +610,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("nodeId")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.node.nodeId"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.node.nodeId"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.node.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.node.description"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.node.type"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.node.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.node.profile"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.node.profile"); } else return super.addChild(name); @@ -1333,28 +1333,28 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.description"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.min"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.max"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.max"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.sourceId"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.path"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.path"); } else if (name.equals("sliceName")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.sliceName"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.sliceName"); } else if (name.equals("targetId")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.targetId"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.targetId"); } else if (name.equals("params")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.params"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.params"); } else if (name.equals("compartment")) { return addCompartment(); @@ -1825,19 +1825,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.compartment.use"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.compartment.use"); } else if (name.equals("rule")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.compartment.rule"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.compartment.rule"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.compartment.code"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.compartment.code"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.compartment.expression"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.compartment.expression"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.link.compartment.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.link.compartment.description"); } else return super.addChild(name); @@ -3309,13 +3309,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -3326,28 +3326,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -3356,16 +3356,16 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.copyrightLabel"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type GraphDefinition.start"); + throw new FHIRException("Cannot call addChild on a singleton property GraphDefinition.start"); } else if (name.equals("node")) { return addNode(); 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 990ddddea7..66f672a12e 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 @@ -736,7 +736,7 @@ else if (name.equals("valueReference")) { return this.value; } else if (name.equals("exclude")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.characteristic.exclude"); + throw new FHIRException("Cannot call addChild on a singleton property Group.characteristic.exclude"); } else if (name.equals("period")) { this.period = new Period(); @@ -1018,7 +1018,7 @@ else if (name.equals("period")) { return this.period; } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.member.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property Group.member.inactive"); } else return super.addChild(name); @@ -1838,26 +1838,26 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.active"); + throw new FHIRException("Cannot call addChild on a singleton property Group.active"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.type"); + throw new FHIRException("Cannot call addChild on a singleton property Group.type"); } else if (name.equals("membership")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.membership"); + throw new FHIRException("Cannot call addChild on a singleton property Group.membership"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.name"); + throw new FHIRException("Cannot call addChild on a singleton property Group.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.description"); + throw new FHIRException("Cannot call addChild on a singleton property Group.description"); } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type Group.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property Group.quantity"); } else if (name.equals("managingEntity")) { this.managingEntity = new Reference(); 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 3e9785e1e2..425dd41c22 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 @@ -1120,7 +1120,7 @@ else if (name.equals("moduleCodeableConcept")) { return this.module; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.status"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -1131,7 +1131,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("occurrenceDateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type GuidanceResponse.occurrenceDateTime"); + throw new FHIRException("Cannot call addChild on a singleton property GuidanceResponse.occurrenceDateTime"); } else if (name.equals("performer")) { this.performer = new Reference(); 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 6e6f3bd6a9..e69ddaf840 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 @@ -229,7 +229,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.eligibility.comment"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.eligibility.comment"); } else return super.addChild(name); @@ -1876,7 +1876,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.active"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.active"); } else if (name.equals("providedBy")) { this.providedBy = new Reference(); @@ -1898,13 +1898,13 @@ else if (name.equals("location")) { return addLocation(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.name"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.name"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.comment"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.comment"); } else if (name.equals("extraDetails")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.extraDetails"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.extraDetails"); } else if (name.equals("photo")) { this.photo = new Attachment(); @@ -1935,7 +1935,7 @@ else if (name.equals("referralMethod")) { return addReferralMethod(); } else if (name.equals("appointmentRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.appointmentRequired"); + throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.appointmentRequired"); } else if (name.equals("availability")) { return addAvailability(); 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 24bcf39644..ccbfcb7358 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 @@ -768,22 +768,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.use"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.use"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.text"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.text"); } else if (name.equals("family")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.family"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.family"); } else if (name.equals("given")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.given"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.given"); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.prefix"); } else if (name.equals("suffix")) { - throw new FHIRException("Cannot call addChild on a primitive type HumanName.suffix"); + throw new FHIRException("Cannot call addChild on a singleton property HumanName.suffix"); } else if (name.equals("period")) { this.period = new Period(); 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 e702b9b58b..52e586937a 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 @@ -583,17 +583,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.use"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.use"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.system"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.system"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Identifier.value"); + throw new FHIRException("Cannot call addChild on a singleton property Identifier.value"); } else if (name.equals("period")) { this.period = new Period(); 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 8774feaa92..4b11069fad 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 @@ -1156,17 +1156,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.instance.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.instance.uid"); } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.instance.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.instance.number"); } else if (name.equals("sopClass")) { this.sopClass = new Coding(); return this.sopClass; } else if (name.equals("subset")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.instance.subset"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.instance.subset"); } else if (name.equals("imageRegion2D")) { return addImageRegion2D(); @@ -1463,10 +1463,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("regionType")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.instance.imageRegion2D.regionType"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.instance.imageRegion2D.regionType"); } else if (name.equals("coordinate")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.instance.imageRegion2D.coordinate"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.instance.imageRegion2D.coordinate"); } else return super.addChild(name); @@ -1738,10 +1738,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("regionType")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.instance.imageRegion3D.regionType"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.instance.imageRegion3D.regionType"); } else if (name.equals("coordinate")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.instance.imageRegion3D.coordinate"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.instance.imageRegion3D.coordinate"); } else return super.addChild(name); @@ -2948,14 +2948,14 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.status"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.issued"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.issued"); } else if (name.equals("performer")) { return addPerformer(); @@ -2971,7 +2971,7 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("studyUid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.studyUid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.studyUid"); } else if (name.equals("derivedFrom")) { return addDerivedFrom(); @@ -2980,13 +2980,13 @@ else if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("seriesUid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.seriesUid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.seriesUid"); } else if (name.equals("seriesNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.seriesNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.seriesNumber"); } else if (name.equals("frameOfReferenceUid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingSelection.frameOfReferenceUid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingSelection.frameOfReferenceUid"); } else if (name.equals("bodySite")) { this.bodySite = new CodeableReference(); 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 a535eabb04..9cd74d6b0c 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 @@ -995,20 +995,20 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.uid"); } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.number"); } else if (name.equals("modality")) { this.modality = new CodeableConcept(); return this.modality; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.description"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.numberOfInstances"); } else if (name.equals("endpoint")) { return addEndpoint(); @@ -1025,7 +1025,7 @@ else if (name.equals("specimen")) { return addSpecimen(); } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.started"); } else if (name.equals("performer")) { return addPerformer(); @@ -1630,17 +1630,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uid")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.instance.uid"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.instance.uid"); } else if (name.equals("sopClass")) { this.sopClass = new Coding(); return this.sopClass; } else if (name.equals("number")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.instance.number"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.instance.number"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.instance.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.series.instance.title"); } else return super.addChild(name); @@ -2887,7 +2887,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.status"); } else if (name.equals("modality")) { return addModality(); @@ -2901,7 +2901,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("started")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -2917,10 +2917,10 @@ else if (name.equals("endpoint")) { return addEndpoint(); } else if (name.equals("numberOfSeries")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfSeries"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfSeries"); } else if (name.equals("numberOfInstances")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances"); } else if (name.equals("procedure")) { return addProcedure(); @@ -2936,7 +2936,7 @@ else if (name.equals("note")) { return addNote(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description"); } else if (name.equals("series")) { return addSeries(); 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 38564f7a23..f44458ecb8 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 @@ -822,14 +822,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reaction.date"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reaction.date"); } else if (name.equals("manifestation")) { this.manifestation = new CodeableReference(); return this.manifestation; } else if (name.equals("reported")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.reaction.reported"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.reaction.reported"); } else return super.addChild(name); @@ -1260,7 +1260,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.protocolApplied.series"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.protocolApplied.series"); } else if (name.equals("authority")) { this.authority = new Reference(); @@ -1270,10 +1270,10 @@ else if (name.equals("targetDisease")) { return addTargetDisease(); } else if (name.equals("doseNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.protocolApplied.doseNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.protocolApplied.doseNumber"); } else if (name.equals("seriesDoses")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.protocolApplied.seriesDoses"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.protocolApplied.seriesDoses"); } else return super.addChild(name); @@ -3006,7 +3006,7 @@ else if (name.equals("basedOn")) { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.status"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); @@ -3025,10 +3025,10 @@ else if (name.equals("manufacturer")) { return this.manufacturer; } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.expirationDate"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -3050,7 +3050,7 @@ else if (name.equals("occurrenceString")) { return this.occurrence; } else if (name.equals("primarySource")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.primarySource"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.primarySource"); } else if (name.equals("informationSource")) { this.informationSource = new CodeableReference(); @@ -3082,7 +3082,7 @@ else if (name.equals("reason")) { return addReason(); } else if (name.equals("isSubpotent")) { - throw new FHIRException("Cannot call addChild on a primitive type Immunization.isSubpotent"); + throw new FHIRException("Cannot call addChild on a singleton property Immunization.isSubpotent"); } else if (name.equals("subpotentReason")) { return addSubpotentReason(); 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 3e093e92ab..1d5a6be93f 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 @@ -970,14 +970,14 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.status"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.date"); } else if (name.equals("authority")) { this.authority = new Reference(); @@ -999,16 +999,16 @@ else if (name.equals("doseStatusReason")) { return addDoseStatusReason(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.description"); } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.series"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.series"); } else if (name.equals("doseNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.doseNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.doseNumber"); } else if (name.equals("seriesDoses")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.seriesDoses"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationEvaluation.seriesDoses"); } else return super.addChild(name); 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 723a59da1f..2337b150ed 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 @@ -945,16 +945,16 @@ else if (name.equals("dateCriterion")) { return addDateCriterion(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.recommendation.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.recommendation.description"); } else if (name.equals("series")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.recommendation.series"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.recommendation.series"); } else if (name.equals("doseNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.recommendation.doseNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.recommendation.doseNumber"); } else if (name.equals("seriesDoses")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.recommendation.seriesDoses"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.recommendation.seriesDoses"); } else if (name.equals("supportingImmunization")) { return addSupportingImmunization(); @@ -1238,7 +1238,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.recommendation.dateCriterion.value"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.recommendation.dateCriterion.value"); } else return super.addChild(name); @@ -1651,7 +1651,7 @@ else if (name.equals("patient")) { return this.patient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.date"); } else if (name.equals("authority")) { this.authority = new Reference(); 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 f326035369..6ffb943e3a 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 @@ -9511,16 +9511,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.dependsOn.uri"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.dependsOn.uri"); } else if (name.equals("packageId")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.dependsOn.packageId"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.dependsOn.packageId"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.dependsOn.version"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.dependsOn.version"); } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.dependsOn.reason"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.dependsOn.reason"); } else return super.addChild(name); @@ -9773,10 +9773,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.global.type"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.global.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.global.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.global.profile"); } else return super.addChild(name); @@ -10495,10 +10495,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.grouping.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.grouping.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.grouping.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.grouping.description"); } else return super.addChild(name); @@ -11090,22 +11090,22 @@ public Base addChild(String name) throws FHIRException { return this.reference; } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.resource.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.resource.fhirVersion"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.resource.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.resource.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.resource.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.resource.description"); } else if (name.equals("isExample")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.resource.isExample"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.resource.isExample"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.resource.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.resource.profile"); } else if (name.equals("groupingId")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.resource.groupingId"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.resource.groupingId"); } else return super.addChild(name); @@ -11609,13 +11609,13 @@ else if (name.equals("sourceMarkdown")) { return this.source; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.page.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.page.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.page.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.page.title"); } else if (name.equals("generation")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.page.generation"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.page.generation"); } else if (name.equals("page")) { return addPage(); @@ -11859,7 +11859,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.parameter.value"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.parameter.value"); } else return super.addChild(name); @@ -12172,13 +12172,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.template.code"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.template.code"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.template.source"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.template.source"); } else if (name.equals("scope")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.definition.template.scope"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.definition.template.scope"); } else return super.addChild(name); @@ -12665,7 +12665,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("rendering")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.rendering"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.rendering"); } else if (name.equals("resource")) { return addResource(); @@ -12674,10 +12674,10 @@ else if (name.equals("page")) { return addPage(); } else if (name.equals("image")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.image"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.image"); } else if (name.equals("other")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.other"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.other"); } else return super.addChild(name); @@ -13072,13 +13072,13 @@ public Base addChild(String name) throws FHIRException { return this.reference; } else if (name.equals("isExample")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.resource.isExample"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.resource.isExample"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.resource.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.resource.profile"); } else if (name.equals("relativePath")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.resource.relativePath"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.resource.relativePath"); } else return super.addChild(name); @@ -13418,13 +13418,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.page.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.page.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.page.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.page.title"); } else if (name.equals("anchor")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.manifest.page.anchor"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.manifest.page.anchor"); } else return super.addChild(name); @@ -15122,13 +15122,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.url"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.version"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -15139,28 +15139,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.status"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.date"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -15169,22 +15169,22 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.copyrightLabel"); } else if (name.equals("packageId")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.packageId"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.packageId"); } else if (name.equals("license")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.license"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.license"); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.fhirVersion"); } else if (name.equals("dependsOn")) { return addDependsOn(); 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 c016a7590e..2dd981167b 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 @@ -348,7 +348,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("role")) { - throw new FHIRException("Cannot call addChild on a primitive type Ingredient.manufacturer.role"); + throw new FHIRException("Cannot call addChild on a singleton property Ingredient.manufacturer.role"); } else if (name.equals("manufacturer")) { this.manufacturer = new Reference(); @@ -1312,7 +1312,7 @@ else if (name.equals("presentationQuantity")) { return this.presentation; } else if (name.equals("textPresentation")) { - throw new FHIRException("Cannot call addChild on a primitive type Ingredient.substance.strength.textPresentation"); + throw new FHIRException("Cannot call addChild on a singleton property Ingredient.substance.strength.textPresentation"); } else if (name.equals("concentrationRatio")) { this.concentration = new Ratio(); @@ -1331,14 +1331,14 @@ else if (name.equals("concentrationQuantity")) { return this.concentration; } else if (name.equals("textConcentration")) { - throw new FHIRException("Cannot call addChild on a primitive type Ingredient.substance.strength.textConcentration"); + throw new FHIRException("Cannot call addChild on a singleton property Ingredient.substance.strength.textConcentration"); } else if (name.equals("basis")) { this.basis = new CodeableConcept(); return this.basis; } else if (name.equals("measurementPoint")) { - throw new FHIRException("Cannot call addChild on a primitive type Ingredient.substance.strength.measurementPoint"); + throw new FHIRException("Cannot call addChild on a singleton property Ingredient.substance.strength.measurementPoint"); } else if (name.equals("country")) { return addCountry(); @@ -1771,7 +1771,7 @@ else if (name.equals("strengthQuantity")) { return this.strength; } else if (name.equals("measurementPoint")) { - throw new FHIRException("Cannot call addChild on a primitive type Ingredient.substance.strength.referenceStrength.measurementPoint"); + throw new FHIRException("Cannot call addChild on a singleton property Ingredient.substance.strength.referenceStrength.measurementPoint"); } else if (name.equals("country")) { return addCountry(); @@ -2477,7 +2477,7 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Ingredient.status"); + throw new FHIRException("Cannot call addChild on a singleton property Ingredient.status"); } else if (name.equals("for")) { return addFor(); @@ -2494,10 +2494,10 @@ else if (name.equals("group")) { return this.group; } else if (name.equals("allergenicIndicator")) { - throw new FHIRException("Cannot call addChild on a primitive type Ingredient.allergenicIndicator"); + throw new FHIRException("Cannot call addChild on a singleton property Ingredient.allergenicIndicator"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Ingredient.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Ingredient.comment"); } else if (name.equals("manufacturer")) { return addManufacturer(); 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 4a6f6deba1..c88a86f7d1 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 @@ -628,7 +628,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("requirement")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.coverage.benefit.requirement"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.coverage.benefit.requirement"); } else if (name.equals("limit")) { return addLimit(); @@ -1715,14 +1715,14 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("groupSize")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.plan.generalCost.groupSize"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.plan.generalCost.groupSize"); } else if (name.equals("cost")) { this.cost = new Money(); return this.cost; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.plan.generalCost.comment"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.plan.generalCost.comment"); } else return super.addChild(name); @@ -3556,16 +3556,16 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.status"); } else if (name.equals("type")) { return addType(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.name"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type InsurancePlan.alias"); + throw new FHIRException("Cannot call addChild on a singleton property InsurancePlan.alias"); } else if (name.equals("period")) { this.period = new Period(); 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 07120ae65d..250bc8f0f6 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 @@ -429,10 +429,10 @@ public Base addChild(String name) throws FHIRException { return this.nameType; } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryItem.name.language"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryItem.name.language"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryItem.name.name"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryItem.name.name"); } else return super.addChild(name); @@ -894,10 +894,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryItem.description.language"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryItem.description.language"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryItem.description.description"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryItem.description.description"); } else return super.addChild(name); @@ -2026,10 +2026,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryItem.instance.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryItem.instance.lotNumber"); } else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryItem.instance.expiry"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryItem.instance.expiry"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -3000,7 +3000,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryItem.status"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryItem.status"); } else if (name.equals("category")) { return addCategory(); 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 c5e3df5ff5..7bd71c6dd6 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 @@ -568,7 +568,7 @@ else if (name.equals("itemStatus")) { return this.itemStatus; } else if (name.equals("countingDateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.inventoryListing.countingDateTime"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryReport.inventoryListing.countingDateTime"); } else if (name.equals("item")) { return addItem(); @@ -1528,10 +1528,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryReport.status"); } else if (name.equals("countType")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.countType"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryReport.countType"); } else if (name.equals("operationType")) { this.operationType = new CodeableConcept(); @@ -1542,7 +1542,7 @@ else if (name.equals("operationTypeReason")) { return this.operationTypeReason; } else if (name.equals("reportedDateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.reportedDateTime"); + throw new FHIRException("Cannot call addChild on a singleton property InventoryReport.reportedDateTime"); } else if (name.equals("reporter")) { this.reporter = new Reference(); 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 ff495b8f57..9c5bb30f40 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 @@ -755,7 +755,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.lineItem.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.lineItem.sequence"); } else if (name.equals("servicedDate")) { this.serviced = new DateType(); @@ -1943,10 +1943,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.status"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.status"); } else if (name.equals("cancelledReason")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.cancelledReason"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.cancelledReason"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -1961,10 +1961,10 @@ else if (name.equals("recipient")) { return this.recipient; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.date"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.date"); } else if (name.equals("creation")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.creation"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.creation"); } else if (name.equals("periodDate")) { this.period = new DateType(); @@ -2000,7 +2000,7 @@ else if (name.equals("totalGross")) { return this.totalGross; } else if (name.equals("paymentTerms")) { - throw new FHIRException("Cannot call addChild on a primitive type Invoice.paymentTerms"); + throw new FHIRException("Cannot call addChild on a singleton property Invoice.paymentTerms"); } else if (name.equals("note")) { return addNote(); 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 e975bb3e0f..aba015e54e 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 @@ -2317,13 +2317,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.url"); + throw new FHIRException("Cannot call addChild on a singleton property Library.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.version"); + throw new FHIRException("Cannot call addChild on a singleton property Library.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -2334,19 +2334,19 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.name"); + throw new FHIRException("Cannot call addChild on a singleton property Library.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.title"); + throw new FHIRException("Cannot call addChild on a singleton property Library.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property Library.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.status"); + throw new FHIRException("Cannot call addChild on a singleton property Library.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Library.experimental"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -2361,16 +2361,16 @@ else if (name.equals("subjectReference")) { return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.date"); + throw new FHIRException("Cannot call addChild on a singleton property Library.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Library.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.description"); + throw new FHIRException("Cannot call addChild on a singleton property Library.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -2379,22 +2379,22 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Library.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.usage"); + throw new FHIRException("Cannot call addChild on a singleton property Library.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Library.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property Library.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Library.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Library.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Library.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); 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 9e243bb6ee..5635cadd45 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 @@ -345,7 +345,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Linkage.item.type"); + throw new FHIRException("Cannot call addChild on a singleton property Linkage.item.type"); } else if (name.equals("resource")) { this.resource = new Reference(); @@ -642,7 +642,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Linkage.active"); + throw new FHIRException("Cannot call addChild on a singleton property Linkage.active"); } else if (name.equals("author")) { this.author = new Reference(); 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 bedb488168..68e1c69da3 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 @@ -453,10 +453,10 @@ public Base addChild(String name) throws FHIRException { return this.flag; } else if (name.equals("deleted")) { - throw new FHIRException("Cannot call addChild on a primitive type List.entry.deleted"); + throw new FHIRException("Cannot call addChild on a singleton property List.entry.deleted"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List.entry.date"); + throw new FHIRException("Cannot call addChild on a singleton property List.entry.date"); } else if (name.equals("item")) { this.item = new Reference(); @@ -1338,13 +1338,13 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type List.status"); + throw new FHIRException("Cannot call addChild on a singleton property List.status"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type List.mode"); + throw new FHIRException("Cannot call addChild on a singleton property List.mode"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type List.title"); + throw new FHIRException("Cannot call addChild on a singleton property List.title"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -1358,7 +1358,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type List.date"); + throw new FHIRException("Cannot call addChild on a singleton property List.date"); } else if (name.equals("source")) { this.source = new Reference(); 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 e6f5488319..23ecf94907 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 @@ -580,13 +580,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("longitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.position.longitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.position.longitude"); } else if (name.equals("latitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.position.latitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.position.latitude"); } else if (name.equals("altitude")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.position.altitude"); + throw new FHIRException("Cannot call addChild on a singleton property Location.position.altitude"); } else return super.addChild(name); @@ -1793,23 +1793,23 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.status"); + throw new FHIRException("Cannot call addChild on a singleton property Location.status"); } else if (name.equals("operationalStatus")) { this.operationalStatus = new Coding(); return this.operationalStatus; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.name"); + throw new FHIRException("Cannot call addChild on a singleton property Location.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Location.alias"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.description"); + throw new FHIRException("Cannot call addChild on a singleton property Location.description"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type Location.mode"); + throw new FHIRException("Cannot call addChild on a singleton property Location.mode"); } else if (name.equals("type")) { return addType(); 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 71413e0f35..06259ea8f4 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 @@ -2088,10 +2088,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ManufacturedItemDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ManufacturedItemDefinition.status"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ManufacturedItemDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ManufacturedItemDefinition.name"); } else if (name.equals("manufacturedDoseForm")) { this.manufacturedDoseForm = new CodeableConcept(); 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 37ea8cf43e..4746fe0e28 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 @@ -367,7 +367,7 @@ else if (name.equals("dateRange")) { return this.dateRange; } else if (name.equals("restoreDate")) { - throw new FHIRException("Cannot call addChild on a primitive type MarketingStatus.restoreDate"); + throw new FHIRException("Cannot call addChild on a singleton property MarketingStatus.restoreDate"); } else return super.addChild(name); 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 d93da761b7..88a98db2c4 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 @@ -230,7 +230,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.term.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.term.definition"); } else return super.addChild(name); @@ -1141,14 +1141,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.linkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.description"); } else if (name.equals("type")) { return addType(); @@ -1162,7 +1162,7 @@ else if (name.equals("subjectReference")) { return this.subject; } else if (name.equals("basis")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.basis"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.basis"); } else if (name.equals("scoring")) { this.scoring = new CodeableConcept(); @@ -1173,14 +1173,14 @@ else if (name.equals("scoringUnit")) { return this.scoringUnit; } else if (name.equals("rateAggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.rateAggregation"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.rateAggregation"); } else if (name.equals("improvementNotation")) { this.improvementNotation = new CodeableConcept(); return this.improvementNotation; } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.library"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.library"); } else if (name.equals("population")) { return addPopulation(); @@ -1699,14 +1699,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.population.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.population.linkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.population.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.population.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); @@ -1717,7 +1717,7 @@ else if (name.equals("groupDefinition")) { return this.groupDefinition; } else if (name.equals("inputPopulationId")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.population.inputPopulationId"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.population.inputPopulationId"); } else if (name.equals("aggregateMethod")) { this.aggregateMethod = new CodeableConcept(); @@ -2171,14 +2171,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.stratifier.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.stratifier.linkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.stratifier.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.stratifier.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); @@ -2570,14 +2570,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.stratifier.component.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.stratifier.component.linkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.group.stratifier.component.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.group.stratifier.component.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); @@ -2999,7 +2999,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.supplementalData.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.supplementalData.linkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -3009,7 +3009,7 @@ else if (name.equals("usage")) { return addUsage(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.supplementalData.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.supplementalData.description"); } else if (name.equals("criteria")) { this.criteria = new Expression(); @@ -6074,13 +6074,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.url"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.version"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -6091,19 +6091,19 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.name"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.title"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.subtitle"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.status"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); @@ -6114,19 +6114,19 @@ else if (name.equals("subjectReference")) { return this.subject; } else if (name.equals("basis")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.basis"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.basis"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.date"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.description"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -6135,22 +6135,22 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.usage"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -6175,10 +6175,10 @@ else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.library"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.library"); } else if (name.equals("disclaimer")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.disclaimer"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.disclaimer"); } else if (name.equals("scoring")) { this.scoring = new CodeableConcept(); @@ -6196,16 +6196,16 @@ else if (name.equals("type")) { return addType(); } else if (name.equals("riskAdjustment")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.riskAdjustment"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.riskAdjustment"); } else if (name.equals("rateAggregation")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.rateAggregation"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.rateAggregation"); } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.rationale"); } else if (name.equals("clinicalRecommendationStatement")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.clinicalRecommendationStatement"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.clinicalRecommendationStatement"); } else if (name.equals("improvementNotation")) { this.improvementNotation = new CodeableConcept(); @@ -6215,7 +6215,7 @@ else if (name.equals("term")) { return addTerm(); } else if (name.equals("guidance")) { - throw new FHIRException("Cannot call addChild on a primitive type Measure.guidance"); + throw new FHIRException("Cannot call addChild on a singleton property Measure.guidance"); } else if (name.equals("group")) { return addGroup(); 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 0bce075c91..2b82daa784 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 @@ -879,7 +879,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.group.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.group.linkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -1368,14 +1368,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.group.population.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.group.population.linkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.group.population.count"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.group.population.count"); } else if (name.equals("subjectResults")) { this.subjectResults = new Reference(); @@ -1689,7 +1689,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.group.stratifier.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.group.stratifier.linkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -2624,7 +2624,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.group.stratifier.stratum.component.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.group.stratifier.stratum.component.linkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -3086,14 +3086,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.group.stratifier.stratum.population.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.group.stratifier.stratum.population.linkId"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.group.stratifier.stratum.population.count"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.group.stratifier.stratum.population.count"); } else if (name.equals("subjectResults")) { this.subjectResults = new Reference(); @@ -4181,23 +4181,23 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.status"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.type"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.type"); } else if (name.equals("dataUpdateType")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.dataUpdateType"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.dataUpdateType"); } else if (name.equals("measure")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.measure"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.measure"); } else if (name.equals("subject")) { this.subject = new Reference(); return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.date"); + throw new FHIRException("Cannot call addChild on a singleton property MeasureReport.date"); } else if (name.equals("reporter")) { this.reporter = new Reference(); 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 1926ac5867..7b7c319ea0 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 @@ -435,7 +435,7 @@ public Base addChild(String name) throws FHIRException { return this.item; } else if (name.equals("isActive")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.ingredient.isActive"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.ingredient.isActive"); } else if (name.equals("strengthRatio")) { this.strength = new Ratio(); @@ -696,10 +696,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.batch.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.batch.lotNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.batch.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.batch.expirationDate"); } else return super.addChild(name); @@ -1278,7 +1278,7 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Medication.status"); + throw new FHIRException("Cannot call addChild on a singleton property Medication.status"); } else if (name.equals("marketingAuthorizationHolder")) { this.marketingAuthorizationHolder = new Reference(); 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 4a950b3ec3..4064a1255d 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 @@ -809,7 +809,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.dosage.text"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.dosage.text"); } else if (name.equals("site")) { this.site = new CodeableConcept(); @@ -2303,7 +2303,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.status"); } else if (name.equals("statusReason")) { return addStatusReason(); @@ -2339,10 +2339,10 @@ else if (name.equals("occurenceTiming")) { return this.occurence; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.recorded"); } else if (name.equals("isSubPotent")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.isSubPotent"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.isSubPotent"); } else if (name.equals("subPotentReason")) { return addSubPotentReason(); 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 bac2ff2f01..a86de73562 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 @@ -760,7 +760,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("wasSubstituted")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.substitution.wasSubstituted"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.substitution.wasSubstituted"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -2489,14 +2489,14 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.status"); } else if (name.equals("notPerformedReason")) { this.notPerformedReason = new CodeableReference(); return this.notPerformedReason; } else if (name.equals("statusChanged")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.statusChanged"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.statusChanged"); } else if (name.equals("category")) { return addCategory(); @@ -2539,13 +2539,13 @@ else if (name.equals("daysSupply")) { return this.daysSupply; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.recorded"); } else if (name.equals("whenPrepared")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenPrepared"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenPrepared"); } else if (name.equals("whenHandedOver")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenHandedOver"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenHandedOver"); } else if (name.equals("destination")) { this.destination = new Reference(); @@ -2558,7 +2558,7 @@ else if (name.equals("note")) { return addNote(); } else if (name.equals("renderedDosageInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.renderedDosageInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.renderedDosageInstruction"); } else if (name.equals("dosageInstruction")) { return addDosageInstruction(); 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 afe31e607d..527c53bb49 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 @@ -939,7 +939,7 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.cost.source"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.cost.source"); } else if (name.equals("costMoney")) { this.cost = new Money(); @@ -1180,7 +1180,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.monitoringProgram.name"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.monitoringProgram.name"); } else return super.addChild(name); @@ -3232,7 +3232,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.storageGuideline.reference"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.storageGuideline.reference"); } else if (name.equals("note")) { return addNote(); @@ -4116,7 +4116,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("allowed")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.regulatory.substitution.allowed"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.regulatory.substitution.allowed"); } else return super.addChild(name); @@ -6843,7 +6843,7 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.status"); } else if (name.equals("author")) { this.author = new Reference(); @@ -6853,7 +6853,7 @@ else if (name.equals("intendedJurisdiction")) { return addIntendedJurisdiction(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.name"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.name"); } else if (name.equals("relatedMedicationKnowledge")) { return addRelatedMedicationKnowledge(); @@ -6868,7 +6868,7 @@ else if (name.equals("monograph")) { return addMonograph(); } else if (name.equals("preparationInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.preparationInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationKnowledge.preparationInstruction"); } else if (name.equals("cost")) { return addCost(); 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 82264263dd..6658a6c1ef 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 @@ -950,7 +950,7 @@ else if (name.equals("validityPeriod")) { return this.validityPeriod; } else if (name.equals("numberOfRepeatsAllowed")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.dispenseRequest.numberOfRepeatsAllowed"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.dispenseRequest.numberOfRepeatsAllowed"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); @@ -3470,26 +3470,26 @@ else if (name.equals("groupIdentifier")) { return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("statusChanged")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.statusChanged"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.statusChanged"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.doNotPerform"); } else if (name.equals("medication")) { this.medication = new CodeableReference(); @@ -3510,14 +3510,14 @@ else if (name.equals("supportingInformation")) { return addSupportingInformation(); } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); return this.requester; } else if (name.equals("reported")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.reported"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.reported"); } else if (name.equals("performerType")) { this.performerType = new CodeableConcept(); @@ -3547,7 +3547,7 @@ else if (name.equals("note")) { return addNote(); } else if (name.equals("renderedDosageInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationRequest.renderedDosageInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationRequest.renderedDosageInstruction"); } else if (name.equals("effectiveDosePeriod")) { this.effectiveDosePeriod = new Period(); 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 d35fcef3f0..0a359d6d76 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 @@ -1539,7 +1539,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.status"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.status"); } else if (name.equals("category")) { return addCategory(); @@ -1569,7 +1569,7 @@ else if (name.equals("effectiveTiming")) { return this.effective; } else if (name.equals("dateAsserted")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.dateAsserted"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.dateAsserted"); } else if (name.equals("informationSource")) { return addInformationSource(); @@ -1587,7 +1587,7 @@ else if (name.equals("relatedClinicalInformation")) { return addRelatedClinicalInformation(); } else if (name.equals("renderedDosageInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.renderedDosageInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.renderedDosageInstruction"); } else if (name.equals("dosage")) { return addDosage(); 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 4da4bc56c3..f051e39779 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 @@ -580,7 +580,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("productName")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.name.productName"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.name.productName"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -829,7 +829,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("part")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.name.part.part"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.name.part.part"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -3933,17 +3933,17 @@ else if (name.equals("domain")) { return this.domain; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.version"); } else if (name.equals("status")) { this.status = new CodeableConcept(); return this.status; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.statusDate"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.description"); } else if (name.equals("combinedPharmaceuticalDoseForm")) { this.combinedPharmaceuticalDoseForm = new CodeableConcept(); @@ -3953,7 +3953,7 @@ else if (name.equals("route")) { return addRoute(); } else if (name.equals("indication")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicinalProductDefinition.indication"); + throw new FHIRException("Cannot call addChild on a singleton property MedicinalProductDefinition.indication"); } else if (name.equals("legalStatusOfSupply")) { this.legalStatusOfSupply = new CodeableConcept(); 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 4dcd7be56a..d2103c2d23 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 @@ -624,16 +624,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.focus.code"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.focus.code"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.focus.profile"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.focus.profile"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.focus.min"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.focus.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.focus.max"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.focus.max"); } else return super.addChild(name); @@ -888,10 +888,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.allowedResponse.message"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.allowedResponse.message"); } else if (name.equals("situation")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.allowedResponse.situation"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.allowedResponse.situation"); } else return super.addChild(name); @@ -2789,13 +2789,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -2806,31 +2806,31 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.title"); } else if (name.equals("replaces")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.replaces"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.replaces"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -2839,19 +2839,19 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.copyrightLabel"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.base"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.base"); } else if (name.equals("parent")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.parent"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.parent"); } else if (name.equals("eventCoding")) { this.event = new Coding(); @@ -2862,19 +2862,19 @@ else if (name.equals("eventUri")) { return this.event; } else if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.category"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.category"); } else if (name.equals("focus")) { return addFocus(); } else if (name.equals("responseRequired")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.responseRequired"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.responseRequired"); } else if (name.equals("allowedResponse")) { return addAllowedResponse(); } else if (name.equals("graph")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageDefinition.graph"); + throw new FHIRException("Cannot call addChild on a singleton property MessageDefinition.graph"); } else return super.addChild(name); 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 36208ea876..dfcfc4c663 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 @@ -458,7 +458,7 @@ else if (name.equals("endpointReference")) { return this.endpoint; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.destination.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.destination.name"); } else if (name.equals("target")) { this.target = new Reference(); @@ -903,13 +903,13 @@ else if (name.equals("endpointReference")) { return this.endpoint; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.source.name"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.source.name"); } else if (name.equals("software")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.source.software"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.source.software"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.source.version"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.source.version"); } else if (name.equals("contact")) { this.contact = new ContactPoint(); @@ -1193,7 +1193,7 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.response.code"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.response.code"); } else if (name.equals("details")) { this.details = new Reference(); @@ -1884,7 +1884,7 @@ else if (name.equals("focus")) { return addFocus(); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.definition"); + throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.definition"); } else return super.addChild(name); 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 ccbe119e5f..9b6eb37224 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 @@ -533,16 +533,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("versionId")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.versionId"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.versionId"); } else if (name.equals("lastUpdated")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.lastUpdated"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.lastUpdated"); } else if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.source"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.source"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type Meta.profile"); + throw new FHIRException("Cannot call addChild on a singleton property Meta.profile"); } else if (name.equals("security")) { return addSecurity(); 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 631f75fd00..830ab38fa1 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 @@ -690,7 +690,7 @@ public Base addChild(String name) throws FHIRException { return this.coordinateSystem; } else if (name.equals("ordinalPosition")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.relative.ordinalPosition"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.relative.ordinalPosition"); } else if (name.equals("sequenceRange")) { this.sequenceRange = new Range(); @@ -1279,16 +1279,16 @@ else if (name.equals("sequenceReference")) { return this.sequence; } else if (name.equals("windowStart")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.relative.startingSequence.windowStart"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.relative.startingSequence.windowStart"); } else if (name.equals("windowEnd")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.relative.startingSequence.windowEnd"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.relative.startingSequence.windowEnd"); } else if (name.equals("orientation")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.relative.startingSequence.orientation"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.relative.startingSequence.orientation"); } else if (name.equals("strand")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.relative.startingSequence.strand"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.relative.startingSequence.strand"); } else return super.addChild(name); @@ -1667,16 +1667,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.relative.edit.start"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.relative.edit.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.relative.edit.end"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.relative.edit.end"); } else if (name.equals("replacementSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.relative.edit.replacementSequence"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.relative.edit.replacementSequence"); } else if (name.equals("replacedSequence")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.relative.edit.replacedSequence"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.relative.edit.replacedSequence"); } else return super.addChild(name); @@ -2375,7 +2375,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.type"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.type"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -2397,7 +2397,7 @@ else if (name.equals("performer")) { return this.performer; } else if (name.equals("literal")) { - throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.literal"); + throw new FHIRException("Cannot call addChild on a singleton property MolecularSequence.literal"); } else if (name.equals("formatted")) { return addFormatted(); 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 1282d9ca48..85bd2a6889 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 @@ -514,14 +514,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type MonetaryComponent.type"); + throw new FHIRException("Cannot call addChild on a singleton property MonetaryComponent.type"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type MonetaryComponent.factor"); + throw new FHIRException("Cannot call addChild on a singleton property MonetaryComponent.factor"); } else if (name.equals("amount")) { this.amount = new Money(); 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 70bbbce2c4..a0bcdbbd1d 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 @@ -266,10 +266,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Money.value"); + throw new FHIRException("Cannot call addChild on a singleton property Money.value"); } else if (name.equals("currency")) { - throw new FHIRException("Cannot call addChild on a primitive type Money.currency"); + throw new FHIRException("Cannot call addChild on a singleton property Money.currency"); } else return super.addChild(name); 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 8b7e930cd4..0fbe2a6629 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 @@ -757,23 +757,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.uniqueId.type"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.uniqueId.type"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.uniqueId.value"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.uniqueId.value"); } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.uniqueId.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.uniqueId.preferred"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.uniqueId.comment"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.uniqueId.comment"); } else if (name.equals("period")) { this.period = new Period(); return this.period; } else if (name.equals("authoritative")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.uniqueId.authoritative"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.uniqueId.authoritative"); } else return super.addChild(name); @@ -2941,13 +2941,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.url"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.version"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -2958,38 +2958,38 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.title"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.status"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.kind"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.kind"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.date"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("responsible")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.responsible"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.responsible"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.description"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -2998,19 +2998,19 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -3035,7 +3035,7 @@ else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.usage"); + throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.usage"); } else if (name.equals("uniqueId")) { return addUniqueId(); 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 ea3c3b7b12..e90d3298bc 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 @@ -363,7 +363,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Narrative.status"); + throw new FHIRException("Cannot call addChild on a singleton property Narrative.status"); } else return super.addChild(name); 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 5961c82283..cf8e49f3b6 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 @@ -458,7 +458,7 @@ else if (name.equals("rate")) { return this.rate; } else if (name.equals("notConsumed")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionIntake.consumedItem.notConsumed"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionIntake.consumedItem.notConsumed"); } else if (name.equals("notConsumedReason")) { this.notConsumedReason = new CodeableConcept(); @@ -2315,10 +2315,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionIntake.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionIntake.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionIntake.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionIntake.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -2327,7 +2327,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionIntake.status"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionIntake.status"); } else if (name.equals("statusReason")) { return addStatusReason(); @@ -2353,7 +2353,7 @@ else if (name.equals("occurrencePeriod")) { return this.occurrence; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionIntake.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionIntake.recorded"); } else if (name.equals("reportedBoolean")) { this.reported = new BooleanType(); 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 a568658196..2a65036a33 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 @@ -523,7 +523,7 @@ else if (name.equals("fluidConsistencyType")) { return addFluidConsistencyType(); } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.oralDiet.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.oralDiet.instruction"); } else return super.addChild(name); @@ -837,7 +837,7 @@ public Base addChild(String name) throws FHIRException { return addTiming(); } else if (name.equals("asNeeded")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.oralDiet.schedule.asNeeded"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.oralDiet.schedule.asNeeded"); } else if (name.equals("asNeededFor")) { this.asNeededFor = new CodeableConcept(); @@ -1627,7 +1627,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("productName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.supplement.productName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.supplement.productName"); } else if (name.equals("schedule")) { this.schedule = new SupplementScheduleComponent(); @@ -1638,7 +1638,7 @@ else if (name.equals("quantity")) { return this.quantity; } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.supplement.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.supplement.instruction"); } else return super.addChild(name); @@ -1935,7 +1935,7 @@ public Base addChild(String name) throws FHIRException { return addTiming(); } else if (name.equals("asNeeded")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.supplement.schedule.asNeeded"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.supplement.schedule.asNeeded"); } else if (name.equals("asNeededFor")) { this.asNeededFor = new CodeableConcept(); @@ -2572,7 +2572,7 @@ public Base addChild(String name) throws FHIRException { return this.baseFormulaType; } else if (name.equals("baseFormulaProductName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.enteralFormula.baseFormulaProductName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.enteralFormula.baseFormulaProductName"); } else if (name.equals("deliveryDevice")) { return addDeliveryDevice(); @@ -2596,7 +2596,7 @@ else if (name.equals("maxVolumeToDeliver")) { return this.maxVolumeToDeliver; } else if (name.equals("administrationInstruction")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.enteralFormula.administrationInstruction"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.enteralFormula.administrationInstruction"); } else return super.addChild(name); @@ -2889,7 +2889,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("productName")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.enteralFormula.additive.productName"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.enteralFormula.additive.productName"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); @@ -3471,7 +3471,7 @@ public Base addChild(String name) throws FHIRException { return addTiming(); } else if (name.equals("asNeeded")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.enteralFormula.administration.schedule.asNeeded"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.enteralFormula.administration.schedule.asNeeded"); } else if (name.equals("asNeededFor")) { this.asNeededFor = new CodeableConcept(); @@ -5043,13 +5043,13 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instantiatesUri"); } else if (name.equals("instantiates")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instantiates"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instantiates"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -5059,13 +5059,13 @@ else if (name.equals("groupIdentifier")) { return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.status"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.intent"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.priority"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.priority"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -5079,7 +5079,7 @@ else if (name.equals("supportingInformation")) { return addSupportingInformation(); } else if (name.equals("dateTime")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.dateTime"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.dateTime"); } else if (name.equals("orderer")) { this.orderer = new Reference(); @@ -5098,7 +5098,7 @@ else if (name.equals("excludeFoodModifier")) { return addExcludeFoodModifier(); } else if (name.equals("outsideFoodAllowed")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.outsideFoodAllowed"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.outsideFoodAllowed"); } else if (name.equals("oralDiet")) { this.oralDiet = new NutritionOrderOralDietComponent(); 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 2fc5ce3cf4..562ac652c3 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 @@ -1454,16 +1454,16 @@ else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionProduct.instance.name"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionProduct.instance.name"); } else if (name.equals("lotNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionProduct.instance.lotNumber"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionProduct.instance.lotNumber"); } else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionProduct.instance.expiry"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionProduct.instance.expiry"); } else if (name.equals("useBy")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionProduct.instance.useBy"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionProduct.instance.useBy"); } else if (name.equals("biologicalSourceEvent")) { this.biologicalSourceEvent = new Identifier(); @@ -2273,7 +2273,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type NutritionProduct.status"); + throw new FHIRException("Cannot call addChild on a singleton property NutritionProduct.status"); } else if (name.equals("category")) { return addCategory(); 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 30d28891ad..8b22384cde 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 @@ -420,10 +420,10 @@ public Base addChild(String name) throws FHIRException { return this.observation; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.triggeredBy.type"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.triggeredBy.type"); } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.triggeredBy.reason"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.triggeredBy.reason"); } else return super.addChild(name); @@ -907,7 +907,7 @@ else if (name.equals("age")) { return this.age; } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.referenceRange.text"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.referenceRange.text"); } else return super.addChild(name); @@ -3572,7 +3572,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.status"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.status"); } else if (name.equals("category")) { return addCategory(); @@ -3609,7 +3609,7 @@ else if (name.equals("effectiveInstant")) { return this.effective; } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type Observation.issued"); + throw new FHIRException("Cannot call addChild on a singleton property Observation.issued"); } else if (name.equals("performer")) { return addPerformer(); 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 9a51923ef8..9b140cfe4b 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 @@ -1181,7 +1181,7 @@ else if (name.equals("appliesTo")) { return addAppliesTo(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.gender"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.qualifiedValue.gender"); } else if (name.equals("age")) { this.age = new Range(); @@ -1192,26 +1192,26 @@ else if (name.equals("gestationalAge")) { return this.gestationalAge; } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.condition"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.qualifiedValue.condition"); } else if (name.equals("rangeCategory")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.rangeCategory"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.qualifiedValue.rangeCategory"); } else if (name.equals("range")) { this.range = new Range(); return this.range; } else if (name.equals("validCodedValueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.validCodedValueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.qualifiedValue.validCodedValueSet"); } else if (name.equals("normalCodedValueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.normalCodedValueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.qualifiedValue.normalCodedValueSet"); } else if (name.equals("abnormalCodedValueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.abnormalCodedValueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.qualifiedValue.abnormalCodedValueSet"); } else if (name.equals("criticalCodedValueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.criticalCodedValueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.qualifiedValue.criticalCodedValueSet"); } else return super.addChild(name); @@ -1624,7 +1624,7 @@ public Base addChild(String name) throws FHIRException { return this.code; } else if (name.equals("permittedDataType")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.component.permittedDataType"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.component.permittedDataType"); } else if (name.equals("permittedUnit")) { return addPermittedUnit(); @@ -4147,14 +4147,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -4165,28 +4165,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -4195,29 +4195,29 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); return this.effectivePeriod; } else if (name.equals("derivedFromCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.derivedFromCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.derivedFromCanonical"); } else if (name.equals("derivedFromUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.derivedFromUri"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.derivedFromUri"); } else if (name.equals("subject")) { return addSubject(); @@ -4234,10 +4234,10 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("permittedDataType")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.permittedDataType"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.permittedDataType"); } else if (name.equals("multipleResultsAllowed")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.multipleResultsAllowed"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.multipleResultsAllowed"); } else if (name.equals("bodySite")) { this.bodySite = new CodeableConcept(); @@ -4254,7 +4254,7 @@ else if (name.equals("device")) { return addDevice(); } else if (name.equals("preferredReportName")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.preferredReportName"); + throw new FHIRException("Cannot call addChild on a singleton property ObservationDefinition.preferredReportName"); } else if (name.equals("permittedUnit")) { return addPermittedUnit(); 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 b96de06c80..8f81a3b66d 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 @@ -1213,34 +1213,34 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.use"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.use"); } else if (name.equals("scope")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.scope"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.scope"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.min"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.max"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.type"); } else if (name.equals("allowedType")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.allowedType"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.allowedType"); } else if (name.equals("targetProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.targetProfile"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.targetProfile"); } else if (name.equals("searchType")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.searchType"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.searchType"); } else if (name.equals("binding")) { this.binding = new OperationDefinitionParameterBindingComponent(); @@ -1540,10 +1540,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("strength")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.binding.strength"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.binding.strength"); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.binding.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.binding.valueSet"); } else return super.addChild(name); @@ -1793,10 +1793,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.referencedFrom.source"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.referencedFrom.source"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameter.referencedFrom.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.parameter.referencedFrom.sourceId"); } else return super.addChild(name); @@ -2054,10 +2054,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("parameterName")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.overload.parameterName"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.overload.parameterName"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.overload.comment"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.overload.comment"); } else return super.addChild(name); @@ -4186,13 +4186,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -4203,31 +4203,31 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.status"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.kind"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -4236,43 +4236,43 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.copyrightLabel"); } else if (name.equals("affectsState")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.affectsState"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.affectsState"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.code"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.comment"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.comment"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.base"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.base"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.resource"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.resource"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.system"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.system"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type"); } else if (name.equals("instance")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.instance"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.instance"); } else if (name.equals("inputProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.inputProfile"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.inputProfile"); } else if (name.equals("outputProfile")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.outputProfile"); + throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.outputProfile"); } else if (name.equals("parameter")) { return addParameter(); 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 f7fbe9e467..b0ce78edeb 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 @@ -1268,23 +1268,23 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("severity")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.issue.severity"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.issue.severity"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.issue.code"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.issue.code"); } else if (name.equals("details")) { this.details = new CodeableConcept(); return this.details; } else if (name.equals("diagnostics")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.issue.diagnostics"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.issue.diagnostics"); } else if (name.equals("location")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.issue.location"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.issue.location"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.issue.expression"); + throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.issue.expression"); } else return super.addChild(name); 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 dcb095ce15..a1cacfea7a 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 @@ -256,7 +256,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("rankOrder")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderedDistribution.interval.rankOrder"); + throw new FHIRException("Cannot call addChild on a singleton property OrderedDistribution.interval.rankOrder"); } else if (name.equals("intervalStatistic")) { return addIntervalStatistic(); @@ -736,13 +736,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderedDistribution.description"); + throw new FHIRException("Cannot call addChild on a singleton property OrderedDistribution.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("numberOfIntervals")) { - throw new FHIRException("Cannot call addChild on a primitive type OrderedDistribution.numberOfIntervals"); + throw new FHIRException("Cannot call addChild on a singleton property OrderedDistribution.numberOfIntervals"); } else if (name.equals("bottomOfFirstInterval")) { this.bottomOfFirstInterval = new Quantity(); 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 4dbdccfbf9..a23fbe526f 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 @@ -1118,19 +1118,19 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.active"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.active"); } else if (name.equals("type")) { return addType(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.name"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.name"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.alias"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.alias"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Organization.description"); + throw new FHIRException("Cannot call addChild on a singleton property Organization.description"); } else if (name.equals("contact")) { return addContact(); 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 023946d792..ead555824d 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 @@ -865,7 +865,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type OrganizationAffiliation.active"); + throw new FHIRException("Cannot call addChild on a singleton property OrganizationAffiliation.active"); } else if (name.equals("period")) { this.period = new Period(); 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 feac11676d..005b449c86 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 @@ -1056,10 +1056,10 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("componentPart")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.packaging.componentPart"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.packaging.componentPart"); } else if (name.equals("quantity")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.packaging.quantity"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.packaging.quantity"); } else if (name.equals("material")) { return addMaterial(); @@ -2702,7 +2702,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -2716,13 +2716,13 @@ else if (name.equals("status")) { return this.status; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.statusDate"); } else if (name.equals("containedItemQuantity")) { return addContainedItemQuantity(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.description"); } else if (name.equals("legalStatusOfSupply")) { return addLegalStatusOfSupply(); @@ -2731,7 +2731,7 @@ else if (name.equals("marketingStatus")) { return addMarketingStatus(); } else if (name.equals("copackagedIndicator")) { - throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.copackagedIndicator"); + throw new FHIRException("Cannot call addChild on a singleton property PackagedProductDefinition.copackagedIndicator"); } else if (name.equals("manufacturer")) { return addManufacturer(); 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 0bd365add7..dc230ec6aa 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 @@ -579,25 +579,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.name"); } else if (name.equals("use")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.use"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.use"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.min"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.max"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.max"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.documentation"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.type"); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type ParameterDefinition.profile"); + throw new FHIRException("Cannot call addChild on a singleton property ParameterDefinition.profile"); } else return super.addChild(name); 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 0d673f2e54..12516e2cc0 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 @@ -1200,7 +1200,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Parameters.parameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property Parameters.parameter.name"); } else if (name.equals("valueBase64Binary")) { this.value = new Base64BinaryType(); 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 0359518b63..b30dffd490 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 @@ -634,7 +634,7 @@ else if (name.equals("address")) { return this.address; } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.contact.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.contact.gender"); } else if (name.equals("organization")) { this.organization = new Reference(); @@ -888,7 +888,7 @@ public Base addChild(String name) throws FHIRException { return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.communication.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.communication.preferred"); } else return super.addChild(name); @@ -1121,7 +1121,7 @@ public Base addChild(String name) throws FHIRException { return this.other; } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.link.type"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.link.type"); } else return super.addChild(name); @@ -2315,7 +2315,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.active"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.active"); } else if (name.equals("name")) { return addName(); @@ -2324,10 +2324,10 @@ else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Patient.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Patient.birthDate"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); 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 a25c58e457..ca4b49b88b 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 @@ -722,7 +722,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.status"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.status"); } else if (name.equals("request")) { this.request = new Reference(); @@ -733,7 +733,7 @@ else if (name.equals("response")) { return this.response; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.created"); } else if (name.equals("reporter")) { this.reporter = new Reference(); @@ -744,7 +744,7 @@ else if (name.equals("payment")) { return this.payment; } else if (name.equals("paymentDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.paymentDate"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.paymentDate"); } else if (name.equals("payee")) { this.payee = new Reference(); 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 9961c3c747..f5d52b10e2 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 @@ -1008,7 +1008,7 @@ else if (name.equals("response")) { return this.response; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.allocation.date"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.allocation.date"); } else if (name.equals("responsible")) { this.responsible = new Reference(); @@ -1286,10 +1286,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.processNote.type"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.processNote.type"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.processNote.text"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.processNote.text"); } else return super.addChild(name); @@ -2970,7 +2970,7 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.status"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.status"); } else if (name.equals("kind")) { this.kind = new CodeableConcept(); @@ -2981,7 +2981,7 @@ else if (name.equals("period")) { return this.period; } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.created"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.created"); } else if (name.equals("enterer")) { this.enterer = new Reference(); @@ -3004,13 +3004,13 @@ else if (name.equals("requestor")) { return this.requestor; } else if (name.equals("outcome")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.outcome"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.outcome"); } else if (name.equals("disposition")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.disposition"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.disposition"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.date"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.date"); } else if (name.equals("location")) { this.location = new Reference(); @@ -3021,22 +3021,22 @@ else if (name.equals("method")) { return this.method; } else if (name.equals("cardBrand")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.cardBrand"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.cardBrand"); } else if (name.equals("accountNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.accountNumber"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.accountNumber"); } else if (name.equals("expirationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.expirationDate"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.expirationDate"); } else if (name.equals("processor")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.processor"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.processor"); } else if (name.equals("referenceNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.referenceNumber"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.referenceNumber"); } else if (name.equals("authorization")) { - throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.authorization"); + throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.authorization"); } else if (name.equals("tenderedAmount")) { this.tenderedAmount = new Money(); 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 9c66d9f657..af777aa2b3 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 @@ -246,10 +246,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.start"); + throw new FHIRException("Cannot call addChild on a singleton property Period.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Period.end"); + throw new FHIRException("Cannot call addChild on a singleton property Period.end"); } else return super.addChild(name); 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 483017baba..a947d76bee 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 @@ -952,7 +952,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Permission.rule.type"); + throw new FHIRException("Cannot call addChild on a singleton property Permission.rule.type"); } else if (name.equals("data")) { return addData(); @@ -1597,7 +1597,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("meaning")) { - throw new FHIRException("Cannot call addChild on a primitive type Permission.rule.data.resource.meaning"); + throw new FHIRException("Cannot call addChild on a singleton property Permission.rule.data.resource.meaning"); } else if (name.equals("reference")) { this.reference = new Reference(); @@ -2469,14 +2469,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Permission.status"); + throw new FHIRException("Cannot call addChild on a singleton property Permission.status"); } else if (name.equals("asserter")) { this.asserter = new Reference(); return this.asserter; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Permission.date"); + throw new FHIRException("Cannot call addChild on a singleton property Permission.date"); } else if (name.equals("validity")) { this.validity = new Period(); @@ -2487,7 +2487,7 @@ else if (name.equals("justification")) { return this.justification; } else if (name.equals("combining")) { - throw new FHIRException("Cannot call addChild on a primitive type Permission.combining"); + throw new FHIRException("Cannot call addChild on a singleton property Permission.combining"); } else if (name.equals("rule")) { return addRule(); 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 eec4b29fcc..ecf78e6404 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 @@ -362,7 +362,7 @@ public Base addChild(String name) throws FHIRException { return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.communication.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property Person.communication.preferred"); } else return super.addChild(name); @@ -598,7 +598,7 @@ public Base addChild(String name) throws FHIRException { return this.target; } else if (name.equals("assurance")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.link.assurance"); + throw new FHIRException("Cannot call addChild on a singleton property Person.link.assurance"); } else return super.addChild(name); @@ -1555,7 +1555,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.active"); + throw new FHIRException("Cannot call addChild on a singleton property Person.active"); } else if (name.equals("name")) { return addName(); @@ -1564,10 +1564,10 @@ else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Person.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Person.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Person.birthDate"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); 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 d6e4928f43..1245f8fc82 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 @@ -1255,10 +1255,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.actor.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.actor.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.actor.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.actor.description"); } else if (name.equals("option")) { return addOption(); @@ -1600,10 +1600,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.actor.option.type"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.actor.option.type"); } else if (name.equals("typeCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.actor.option.typeCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.actor.option.typeCanonical"); } else if (name.equals("typeReference")) { this.typeReference = new Reference(); @@ -3708,22 +3708,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.linkId"); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.prefix"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.description"); } else if (name.equals("textEquivalent")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.textEquivalent"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.textEquivalent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.priority"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.priority"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -3736,7 +3736,7 @@ else if (name.equals("documentation")) { return addDocumentation(); } else if (name.equals("goalId")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.goalId"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.goalId"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); @@ -3793,19 +3793,19 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("groupingBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.groupingBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.groupingBehavior"); } else if (name.equals("selectionBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.selectionBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.selectionBehavior"); } else if (name.equals("requiredBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.requiredBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.requiredBehavior"); } else if (name.equals("precheckBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.precheckBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.precheckBehavior"); } else if (name.equals("cardinalityBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.cardinalityBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.cardinalityBehavior"); } else if (name.equals("definitionCanonical")) { this.definition = new CanonicalType(); @@ -3816,7 +3816,7 @@ else if (name.equals("definitionUri")) { return this.definition; } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.transform"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.transform"); } else if (name.equals("dynamicValue")) { return addDynamicValue(); @@ -4141,7 +4141,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.condition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.condition.kind"); } else if (name.equals("expression")) { this.expression = new Expression(); @@ -4432,14 +4432,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.input.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.input.title"); } else if (name.equals("requirement")) { this.requirement = new DataRequirement(); return this.requirement; } else if (name.equals("relatedData")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.input.relatedData"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.input.relatedData"); } else return super.addChild(name); @@ -4729,14 +4729,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.output.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.output.title"); } else if (name.equals("requirement")) { this.requirement = new DataRequirement(); return this.requirement; } else if (name.equals("relatedData")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.output.relatedData"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.output.relatedData"); } else return super.addChild(name); @@ -5130,13 +5130,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("targetId")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.relatedAction.targetId"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.relatedAction.targetId"); } else if (name.equals("relationship")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.relatedAction.relationship"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.relatedAction.relationship"); } else if (name.equals("endRelationship")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.relatedAction.endRelationship"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.relatedAction.endRelationship"); } else if (name.equals("offsetDuration")) { this.offset = new Duration(); @@ -5590,13 +5590,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("actorId")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.participant.actorId"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.participant.actorId"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.participant.type"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.participant.type"); } else if (name.equals("typeCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.participant.typeCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.participant.typeCanonical"); } else if (name.equals("typeReference")) { this.typeReference = new Reference(); @@ -5837,7 +5837,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.dynamicValue.path"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.action.dynamicValue.path"); } else if (name.equals("expression")) { this.expression = new Expression(); @@ -8320,13 +8320,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -8337,23 +8337,23 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.title"); } else if (name.equals("subtitle")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.subtitle"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.subtitle"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); @@ -8368,16 +8368,16 @@ else if (name.equals("subjectCanonical")) { return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -8386,22 +8386,22 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.purpose"); } else if (name.equals("usage")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.usage"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.usage"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -8426,7 +8426,7 @@ else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("library")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.library"); + throw new FHIRException("Cannot call addChild on a singleton property PlanDefinition.library"); } else if (name.equals("goal")) { return addGoal(); 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 9837955c69..68910a22f4 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 @@ -570,7 +570,7 @@ public Base addChild(String name) throws FHIRException { return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.communication.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.communication.preferred"); } else return super.addChild(name); @@ -1454,7 +1454,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.active"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.active"); } else if (name.equals("name")) { return addName(); @@ -1463,10 +1463,10 @@ else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.gender"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Practitioner.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property Practitioner.birthDate"); } else if (name.equals("deceasedBoolean")) { this.deceased = new BooleanType(); 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 dcf119ccce..73dffb6727 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 @@ -1007,7 +1007,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type PractitionerRole.active"); + throw new FHIRException("Cannot call addChild on a singleton property PractitionerRole.active"); } else if (name.equals("period")) { this.period = new Period(); 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 1bda10d694..b043c07d15 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 @@ -2454,10 +2454,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -2466,7 +2466,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.status"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); @@ -2516,7 +2516,7 @@ else if (name.equals("occurrenceTiming")) { return this.occurrence; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Procedure.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property Procedure.recorded"); } else if (name.equals("recorder")) { this.recorder = new Reference(); 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 2ab9c09cc8..03f05a8074 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 @@ -717,13 +717,13 @@ else if (name.equals("externalDiameter")) { return this.externalDiameter; } else if (name.equals("shape")) { - throw new FHIRException("Cannot call addChild on a primitive type ProdCharacteristic.shape"); + throw new FHIRException("Cannot call addChild on a singleton property ProdCharacteristic.shape"); } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type ProdCharacteristic.color"); + throw new FHIRException("Cannot call addChild on a singleton property ProdCharacteristic.color"); } else if (name.equals("imprint")) { - throw new FHIRException("Cannot call addChild on a primitive type ProdCharacteristic.imprint"); + throw new FHIRException("Cannot call addChild on a singleton property ProdCharacteristic.imprint"); } else if (name.equals("image")) { return addImage(); 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 b9401b4089..cec2ff15e5 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 @@ -784,7 +784,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("role")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.entity.role"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.entity.role"); } else if (name.equals("what")) { this.what = new Reference(); @@ -1731,10 +1731,10 @@ else if (name.equals("occurredDateTime")) { return this.occurred; } else if (name.equals("recorded")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.recorded"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.recorded"); } else if (name.equals("policy")) { - throw new FHIRException("Cannot call addChild on a primitive type Provenance.policy"); + throw new FHIRException("Cannot call addChild on a singleton property Provenance.policy"); } else if (name.equals("location")) { this.location = new Reference(); 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 2e4a4eb1a2..692800d2b8 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 @@ -517,19 +517,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.value"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.value"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.comparator"); } else if (name.equals("unit")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.unit"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.unit"); } else if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.system"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.system"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type Quantity.code"); + throw new FHIRException("Cannot call addChild on a singleton property Quantity.code"); } else return super.addChild(name); 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 db057a5181..a4f42141b5 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 @@ -2124,49 +2124,49 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.linkId"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.definition"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.definition"); } else if (name.equals("code")) { return addCode(); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.prefix"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.text"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.text"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.type"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.type"); } else if (name.equals("enableWhen")) { return addEnableWhen(); } else if (name.equals("enableBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.enableBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.enableBehavior"); } else if (name.equals("disabledDisplay")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.disabledDisplay"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.disabledDisplay"); } else if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.required"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.required"); } else if (name.equals("repeats")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.repeats"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.repeats"); } else if (name.equals("readOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.readOnly"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.readOnly"); } else if (name.equals("maxLength")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.maxLength"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.maxLength"); } else if (name.equals("answerConstraint")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.answerConstraint"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.answerConstraint"); } else if (name.equals("answerValueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.answerValueSet"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.answerValueSet"); } else if (name.equals("answerOption")) { return addAnswerOption(); @@ -2715,10 +2715,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("question")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.enableWhen.question"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.enableWhen.question"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.enableWhen.operator"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.enableWhen.operator"); } else if (name.equals("answerBoolean")) { this.answer = new BooleanType(); @@ -3106,7 +3106,7 @@ else if (name.equals("valueReference")) { return this.value; } else if (name.equals("initialSelected")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.answerOption.initialSelected"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.item.answerOption.initialSelected"); } else return super.addChild(name); @@ -5448,13 +5448,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.url"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.version"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -5465,34 +5465,34 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.name"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.title"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.title"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.derivedFrom"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.status"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.experimental"); } else if (name.equals("subjectType")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.subjectType"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.subjectType"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.date"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.description"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -5501,19 +5501,19 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); 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 1eaf44afed..c5ea8c1290 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 @@ -604,13 +604,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.item.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.item.linkId"); } else if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.item.definition"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.item.definition"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.item.text"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.item.text"); } else if (name.equals("answer")) { return addAnswer(); @@ -1874,10 +1874,10 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("questionnaire")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.questionnaire"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.questionnaire"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.status"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.status"); } else if (name.equals("subject")) { this.subject = new Reference(); @@ -1888,7 +1888,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("authored")) { - throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.authored"); + throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.authored"); } else if (name.equals("author")) { this.author = new Reference(); 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 18aa0da0ea..912f059207 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 @@ -395,17 +395,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.reference"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.type"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.type"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type Reference.display"); + throw new FHIRException("Cannot call addChild on a singleton property Reference.display"); } else return super.addChild(name); 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 f175aa9a92..9fa39712de 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 @@ -1380,7 +1380,7 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type RegulatedAuthorization.description"); + throw new FHIRException("Cannot call addChild on a singleton property RegulatedAuthorization.description"); } else if (name.equals("region")) { return addRegion(); @@ -1390,7 +1390,7 @@ else if (name.equals("status")) { return this.status; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RegulatedAuthorization.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property RegulatedAuthorization.statusDate"); } else if (name.equals("validityPeriod")) { this.validityPeriod = new Period(); 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 2aa40e917c..7d2e746d27 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 @@ -1379,36 +1379,36 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.type"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.type"); } else if (name.equals("classifier")) { return addClassifier(); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.label"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.label"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.display"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.display"); } else if (name.equals("citation")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.citation"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.citation"); } else if (name.equals("document")) { this.document = new Attachment(); return this.document; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.resource"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.resource"); } else if (name.equals("resourceReference")) { this.resourceReference = new Reference(); return this.resourceReference; } else if (name.equals("publicationStatus")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.publicationStatus"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.publicationStatus"); } else if (name.equals("publicationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedArtifact.publicationDate"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedArtifact.publicationDate"); } else return super.addChild(name); 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 f6ad1e517c..1a6e79041e 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 @@ -234,7 +234,7 @@ public Base addChild(String name) throws FHIRException { return this.language; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.communication.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.communication.preferred"); } else return super.addChild(name); @@ -1127,7 +1127,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.active"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.active"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -1143,10 +1143,10 @@ else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.gender"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.gender"); } else if (name.equals("birthDate")) { - throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.birthDate"); + throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.birthDate"); } else if (name.equals("address")) { return addAddress(); 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 2d91fb9b3b..b1a3ff075d 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 @@ -1961,22 +1961,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.linkId"); } else if (name.equals("prefix")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.prefix"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.prefix"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.title"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.title"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.description"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.description"); } else if (name.equals("textEquivalent")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.textEquivalent"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.textEquivalent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.priority"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.priority"); } else if (name.equals("code")) { return addCode(); @@ -2035,19 +2035,19 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("groupingBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.groupingBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.groupingBehavior"); } else if (name.equals("selectionBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.selectionBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.selectionBehavior"); } else if (name.equals("requiredBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.requiredBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.requiredBehavior"); } else if (name.equals("precheckBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.precheckBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.precheckBehavior"); } else if (name.equals("cardinalityBehavior")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.cardinalityBehavior"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.cardinalityBehavior"); } else if (name.equals("resource")) { this.resource = new Reference(); @@ -2062,7 +2062,7 @@ else if (name.equals("definitionUri")) { return this.definition; } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.transform"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.transform"); } else if (name.equals("dynamicValue")) { return addDynamicValue(); @@ -2380,7 +2380,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.condition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.condition.kind"); } else if (name.equals("expression")) { this.expression = new Expression(); @@ -2671,14 +2671,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.input.title"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.input.title"); } else if (name.equals("requirement")) { this.requirement = new DataRequirement(); return this.requirement; } else if (name.equals("relatedData")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.input.relatedData"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.input.relatedData"); } else return super.addChild(name); @@ -2968,14 +2968,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.output.title"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.output.title"); } else if (name.equals("requirement")) { this.requirement = new DataRequirement(); return this.requirement; } else if (name.equals("relatedData")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.output.relatedData"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.output.relatedData"); } else return super.addChild(name); @@ -3369,13 +3369,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("targetId")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.relatedAction.targetId"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.relatedAction.targetId"); } else if (name.equals("relationship")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.relatedAction.relationship"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.relatedAction.relationship"); } else if (name.equals("endRelationship")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.relatedAction.endRelationship"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.relatedAction.endRelationship"); } else if (name.equals("offsetDuration")) { this.offset = new Duration(); @@ -3835,10 +3835,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.participant.type"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.participant.type"); } else if (name.equals("typeCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.participant.typeCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.participant.typeCanonical"); } else if (name.equals("typeReference")) { this.typeReference = new Reference(); @@ -4086,7 +4086,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.action.dynamicValue.path"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.action.dynamicValue.path"); } else if (name.equals("expression")) { this.expression = new Expression(); @@ -5332,10 +5332,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -5348,13 +5348,13 @@ else if (name.equals("groupIdentifier")) { return this.groupIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.status"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.intent"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.priority"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.priority"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -5369,7 +5369,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestOrchestration.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property RequestOrchestration.authoredOn"); } else if (name.equals("author")) { this.author = new Reference(); 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 3209705b72..935d8e762e 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 @@ -946,31 +946,31 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("key")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.statement.key"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.statement.key"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.statement.label"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.statement.label"); } else if (name.equals("conformance")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.statement.conformance"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.statement.conformance"); } else if (name.equals("conditionality")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.statement.conditionality"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.statement.conditionality"); } else if (name.equals("requirement")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.statement.requirement"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.statement.requirement"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.statement.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.statement.derivedFrom"); } else if (name.equals("parent")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.statement.parent"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.statement.parent"); } else if (name.equals("satisfiedBy")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.statement.satisfiedBy"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.statement.satisfiedBy"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.statement.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.statement.reference"); } else if (name.equals("source")) { return addSource(); @@ -2570,13 +2570,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.url"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.version"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -2587,28 +2587,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.name"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.title"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.status"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.date"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.description"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -2617,22 +2617,22 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.copyrightLabel"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.derivedFrom"); } else if (name.equals("reference")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.reference"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.reference"); } else if (name.equals("actor")) { - throw new FHIRException("Cannot call addChild on a primitive type Requirements.actor"); + throw new FHIRException("Cannot call addChild on a singleton property Requirements.actor"); } else if (name.equals("statement")) { return addStatement(); 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 02f044a9a9..6516a53acf 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 @@ -230,7 +230,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.label.value"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.label.value"); } else return super.addChild(name); @@ -642,7 +642,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.associatedParty.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.associatedParty.name"); } else if (name.equals("role")) { this.role = new CodeableConcept(); @@ -940,7 +940,7 @@ public Base addChild(String name) throws FHIRException { return this.state; } else if (name.equals("actual")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.progressStatus.actual"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.progressStatus.actual"); } else if (name.equals("period")) { this.period = new Period(); @@ -1266,10 +1266,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("targetNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.recruitment.targetNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.recruitment.targetNumber"); } else if (name.equals("actualNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.recruitment.actualNumber"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.recruitment.actualNumber"); } else if (name.equals("eligibility")) { this.eligibility = new Reference(); @@ -1752,17 +1752,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("linkId")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.comparisonGroup.linkId"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.comparisonGroup.linkId"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.comparisonGroup.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.comparisonGroup.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.comparisonGroup.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.comparisonGroup.description"); } else if (name.equals("intendedExposure")) { return addIntendedExposure(); @@ -2069,14 +2069,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.objective.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.objective.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.objective.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.objective.description"); } else return super.addChild(name); @@ -2437,13 +2437,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.outcomeMeasure.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.outcomeMeasure.name"); } else if (name.equals("type")) { return addType(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.outcomeMeasure.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.outcomeMeasure.description"); } else if (name.equals("reference")) { this.reference = new Reference(); @@ -4645,19 +4645,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.url"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.version"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.version"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.name"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.title"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.title"); } else if (name.equals("label")) { return addLabel(); @@ -4672,10 +4672,10 @@ else if (name.equals("relatedArtifact")) { return addRelatedArtifact(); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.date"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.date"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.status"); } else if (name.equals("primaryPurposeType")) { this.primaryPurposeType = new CodeableConcept(); @@ -4701,10 +4701,10 @@ else if (name.equals("region")) { return addRegion(); } else if (name.equals("descriptionSummary")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.descriptionSummary"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.descriptionSummary"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.description"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchStudy.description"); } else if (name.equals("period")) { this.period = new Period(); 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 521b38a81e..f1a9419606 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 @@ -434,10 +434,10 @@ else if (name.equals("reason")) { return this.reason; } else if (name.equals("startDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.progress.startDate"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.progress.startDate"); } else if (name.equals("endDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.progress.endDate"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.progress.endDate"); } else return super.addChild(name); @@ -1099,7 +1099,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.status"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.status"); } else if (name.equals("progress")) { return addProgress(); @@ -1117,10 +1117,10 @@ else if (name.equals("subject")) { return this.subject; } else if (name.equals("assignedComparisonGroup")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.assignedComparisonGroup"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.assignedComparisonGroup"); } else if (name.equals("actualComparisonGroup")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.actualComparisonGroup"); + throw new FHIRException("Cannot call addChild on a singleton property ResearchSubject.actualComparisonGroup"); } else if (name.equals("consent")) { return addConsent(); 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 d7e4a0363d..c1aeb90ca3 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 @@ -356,17 +356,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("id")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.id"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.id"); } else if (name.equals("meta")) { this.meta = new Meta(); return this.meta; } else if (name.equals("implicitRules")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.implicitRules"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.implicitRules"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type Resource.language"); + throw new FHIRException("Cannot call addChild on a singleton property Resource.language"); } else return super.addChild(name); 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 5d8798d2ae..04a753e460 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 @@ -512,7 +512,7 @@ else if (name.equals("qualitativeRisk")) { return this.qualitativeRisk; } else if (name.equals("relativeRisk")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.prediction.relativeRisk"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.prediction.relativeRisk"); } else if (name.equals("whenPeriod")) { this.when = new Period(); @@ -523,7 +523,7 @@ else if (name.equals("whenRange")) { return this.when; } else if (name.equals("rationale")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.prediction.rationale"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.prediction.rationale"); } else return super.addChild(name); @@ -1544,7 +1544,7 @@ else if (name.equals("parent")) { return this.parent; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.status"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.status"); } else if (name.equals("method")) { this.method = new CodeableConcept(); @@ -1588,7 +1588,7 @@ else if (name.equals("prediction")) { return addPrediction(); } else if (name.equals("mitigation")) { - throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.mitigation"); + throw new FHIRException("Cannot call addChild on a singleton property RiskAssessment.mitigation"); } else if (name.equals("note")) { return addNote(); 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 dccc5dd897..11518d54dd 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 @@ -829,31 +829,31 @@ public Base addChild(String name) throws FHIRException { return this.origin; } else if (name.equals("interval")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.interval"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.interval"); } else if (name.equals("intervalUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.intervalUnit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.intervalUnit"); } else if (name.equals("factor")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.factor"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.factor"); } else if (name.equals("lowerLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.lowerLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.lowerLimit"); } else if (name.equals("upperLimit")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.upperLimit"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.upperLimit"); } else if (name.equals("dimensions")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.dimensions"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.dimensions"); } else if (name.equals("codeMap")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.codeMap"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.codeMap"); } else if (name.equals("offsets")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.offsets"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.offsets"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type SampledData.data"); + throw new FHIRException("Cannot call addChild on a singleton property SampledData.data"); } else return super.addChild(name); 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 2362e7929e..2be6c155a4 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 @@ -715,7 +715,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("active")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.active"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.active"); } else if (name.equals("serviceCategory")) { return addServiceCategory(); @@ -727,7 +727,7 @@ else if (name.equals("specialty")) { return addSpecialty(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.name"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.name"); } else if (name.equals("actor")) { return addActor(); @@ -737,7 +737,7 @@ else if (name.equals("planningHorizon")) { return this.planningHorizon; } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Schedule.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Schedule.comment"); } else return super.addChild(name); 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 fa909b2274..b1d8bdefe6 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 @@ -363,10 +363,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("definition")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.component.definition"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.component.definition"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.component.expression"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.component.expression"); } else return super.addChild(name); @@ -2613,13 +2613,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.url"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.version"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -2630,31 +2630,31 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.title"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.title"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.derivedFrom"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.status"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.date"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.description"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -2663,49 +2663,49 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.copyrightLabel"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.code"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.code"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.base"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.base"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.type"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.type"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.expression"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.expression"); } else if (name.equals("processingMode")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.processingMode"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.processingMode"); } else if (name.equals("constraint")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.constraint"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.constraint"); } else if (name.equals("target")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.target"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.target"); } else if (name.equals("multipleOr")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.multipleOr"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.multipleOr"); } else if (name.equals("multipleAnd")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.multipleAnd"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.multipleAnd"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.comparator"); } else if (name.equals("modifier")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.modifier"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.modifier"); } else if (name.equals("chain")) { - throw new FHIRException("Cannot call addChild on a primitive type SearchParameter.chain"); + throw new FHIRException("Cannot call addChild on a singleton property SearchParameter.chain"); } else if (name.equals("component")) { return addComponent(); 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 74ec65ec37..ddfbd48758 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 @@ -3053,10 +3053,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -3069,19 +3069,19 @@ else if (name.equals("requisition")) { return this.requisition; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.status"); } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.intent"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.intent"); } else if (name.equals("category")) { return addCategory(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.doNotPerform"); } else if (name.equals("code")) { this.code = new CodeableReference(); @@ -3134,7 +3134,7 @@ else if (name.equals("asNeededCodeableConcept")) { return this.asNeeded; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type ServiceRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property ServiceRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); 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 e49b9403bd..bbedc73475 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 @@ -536,7 +536,7 @@ public Base addChild(String name) throws FHIRException { return addType(); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.when"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.when"); } else if (name.equals("who")) { this.who = new Reference(); @@ -547,13 +547,13 @@ else if (name.equals("onBehalfOf")) { return this.onBehalfOf; } else if (name.equals("targetFormat")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.targetFormat"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.targetFormat"); } else if (name.equals("sigFormat")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.sigFormat"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.sigFormat"); } else if (name.equals("data")) { - throw new FHIRException("Cannot call addChild on a primitive type Signature.data"); + throw new FHIRException("Cannot call addChild on a singleton property Signature.data"); } else return super.addChild(name); 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 8285615c18..ab6738a14a 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 @@ -1002,19 +1002,19 @@ else if (name.equals("schedule")) { return this.schedule; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.status"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.status"); } else if (name.equals("start")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.start"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.start"); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.end"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.end"); } else if (name.equals("overbooked")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.overbooked"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.overbooked"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type Slot.comment"); + throw new FHIRException("Cannot call addChild on a singleton property Slot.comment"); } else return super.addChild(name); 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 86ae5dcba3..fecbd92105 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 @@ -459,7 +459,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.feature.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.feature.description"); } else return super.addChild(name); @@ -1423,7 +1423,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.processing.description"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.processing.description"); } else if (name.equals("method")) { this.method = new CodeableConcept(); @@ -2823,7 +2823,7 @@ else if (name.equals("accessionIdentifier")) { return this.accessionIdentifier; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.status"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.status"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -2834,7 +2834,7 @@ else if (name.equals("subject")) { return this.subject; } else if (name.equals("receivedTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.receivedTime"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.receivedTime"); } else if (name.equals("parent")) { return addParent(); @@ -2843,7 +2843,7 @@ else if (name.equals("request")) { return addRequest(); } else if (name.equals("combined")) { - throw new FHIRException("Cannot call addChild on a primitive type Specimen.combined"); + throw new FHIRException("Cannot call addChild on a singleton property Specimen.combined"); } else if (name.equals("role")) { return addRole(); 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 6546b30600..c5bd9e3ec5 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 @@ -813,28 +813,28 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("isDerived")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.typeTested.isDerived"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.typeTested.isDerived"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("preference")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.typeTested.preference"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.typeTested.preference"); } else if (name.equals("container")) { this.container = new SpecimenDefinitionTypeTestedContainerComponent(); return this.container; } else if (name.equals("requirement")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.typeTested.requirement"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.typeTested.requirement"); } else if (name.equals("retentionTime")) { this.retentionTime = new Duration(); return this.retentionTime; } else if (name.equals("singleUse")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.typeTested.singleUse"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.typeTested.singleUse"); } else if (name.equals("rejectionCriterion")) { return addRejectionCriterion(); @@ -1437,7 +1437,7 @@ else if (name.equals("cap")) { return this.cap; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.typeTested.container.description"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.typeTested.container.description"); } else if (name.equals("capacity")) { this.capacity = new Quantity(); @@ -1455,7 +1455,7 @@ else if (name.equals("additive")) { return addAdditive(); } else if (name.equals("preparation")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.typeTested.container.preparation"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.typeTested.container.preparation"); } else return super.addChild(name); @@ -1984,7 +1984,7 @@ else if (name.equals("maxDuration")) { return this.maxDuration; } else if (name.equals("instruction")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.typeTested.handling.instruction"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.typeTested.handling.instruction"); } else return super.addChild(name); @@ -3942,14 +3942,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -3960,22 +3960,22 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.title"); } else if (name.equals("derivedFromCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.derivedFromCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.derivedFromCanonical"); } else if (name.equals("derivedFromUri")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.derivedFromUri"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.derivedFromUri"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.experimental"); } else if (name.equals("subjectCodeableConcept")) { this.subject = new CodeableConcept(); @@ -3986,16 +3986,16 @@ else if (name.equals("subjectReference")) { return this.subject; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -4004,19 +4004,19 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); @@ -4030,7 +4030,7 @@ else if (name.equals("patientPreparation")) { return addPatientPreparation(); } else if (name.equals("timeAspect")) { - throw new FHIRException("Cannot call addChild on a primitive type SpecimenDefinition.timeAspect"); + throw new FHIRException("Cannot call addChild on a singleton property SpecimenDefinition.timeAspect"); } else if (name.equals("collection")) { return addCollection(); 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 4c650b6b7a..cf1436aa67 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 @@ -439,19 +439,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.sampleSize.description"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.sampleSize.description"); } else if (name.equals("note")) { return addNote(); } else if (name.equals("numberOfStudies")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.sampleSize.numberOfStudies"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.sampleSize.numberOfStudies"); } else if (name.equals("numberOfParticipants")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.sampleSize.numberOfParticipants"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.sampleSize.numberOfParticipants"); } else if (name.equals("knownDataCount")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.sampleSize.knownDataCount"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.sampleSize.knownDataCount"); } else return super.addChild(name); @@ -991,7 +991,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.attributeEstimate.description"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.attributeEstimate.description"); } else if (name.equals("note")) { return addNote(); @@ -1005,7 +1005,7 @@ else if (name.equals("quantity")) { return this.quantity; } else if (name.equals("level")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.attributeEstimate.level"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.attributeEstimate.level"); } else if (name.equals("range")) { this.range = new Range(); @@ -1486,7 +1486,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.attributeEstimate.attributeEstimate.description"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.attributeEstimate.attributeEstimate.description"); } else if (name.equals("note")) { return addNote(); @@ -1500,7 +1500,7 @@ else if (name.equals("quantity")) { return this.quantity; } else if (name.equals("level")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.attributeEstimate.attributeEstimate.level"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.attributeEstimate.attributeEstimate.level"); } else if (name.equals("range")) { this.range = new Range(); @@ -2250,7 +2250,7 @@ public Base addChild(String name) throws FHIRException { return this.variableDefinition; } else if (name.equals("handling")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.modelCharacteristic.variable.handling"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.modelCharacteristic.variable.handling"); } else if (name.equals("valueCategory")) { return addValueCategory(); @@ -2954,7 +2954,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.description"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.description"); } else if (name.equals("note")) { return addNote(); @@ -2972,10 +2972,10 @@ else if (name.equals("quantity")) { return this.quantity; } else if (name.equals("numberOfEvents")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.numberOfEvents"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.numberOfEvents"); } else if (name.equals("numberAffected")) { - throw new FHIRException("Cannot call addChild on a primitive type Statistic.numberAffected"); + throw new FHIRException("Cannot call addChild on a singleton property Statistic.numberAffected"); } else if (name.equals("sampleSize")) { this.sampleSize = new StatisticSampleSizeComponent(); 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 4815ded2bd..a35011a468 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 @@ -722,16 +722,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identity")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.mapping.identity"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.mapping.identity"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.mapping.uri"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.mapping.uri"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.mapping.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.mapping.name"); } else if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.mapping.comment"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.mapping.comment"); } else return super.addChild(name); @@ -986,10 +986,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.context.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.context.type"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.context.expression"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.context.expression"); } else return super.addChild(name); @@ -3430,13 +3430,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -3447,28 +3447,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.title"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -3477,43 +3477,43 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.copyrightLabel"); } else if (name.equals("keyword")) { return addKeyword(); } else if (name.equals("fhirVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.fhirVersion"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.fhirVersion"); } else if (name.equals("mapping")) { return addMapping(); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.kind"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.kind"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.abstract"); } else if (name.equals("context")) { return addContext(); } else if (name.equals("contextInvariant")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.contextInvariant"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.contextInvariant"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.type"); } else if (name.equals("baseDefinition")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.baseDefinition"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.baseDefinition"); } else if (name.equals("derivation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureDefinition.derivation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureDefinition.derivation"); } else if (name.equals("snapshot")) { this.snapshot = new StructureDefinitionSnapshotComponent(); 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 1013527f0f..4f1c2ceb18 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 @@ -1315,16 +1315,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.structure.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.structure.url"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.structure.mode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.structure.mode"); } else if (name.equals("alias")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.structure.alias"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.structure.alias"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.structure.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.structure.documentation"); } else return super.addChild(name); @@ -1575,10 +1575,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.const.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.const.name"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.const.value"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.const.value"); } else return super.addChild(name); @@ -2104,16 +2104,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.name"); } else if (name.equals("extends")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.extends"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.extends"); } else if (name.equals("typeMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.typeMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.typeMode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.documentation"); } else if (name.equals("input")) { return addInput(); @@ -2522,16 +2522,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.input.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.input.name"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.input.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.input.type"); } else if (name.equals("mode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.input.mode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.input.mode"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.input.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.input.documentation"); } else return super.addChild(name); @@ -3070,7 +3070,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.name"); } else if (name.equals("source")) { return addSource(); @@ -3085,7 +3085,7 @@ else if (name.equals("dependent")) { return addDependent(); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.documentation"); } else return super.addChild(name); @@ -3956,37 +3956,37 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.context"); } else if (name.equals("min")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.min"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.min"); } else if (name.equals("max")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.max"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.max"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.type"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.type"); } else if (name.equals("defaultValue")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.defaultValue"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.defaultValue"); } else if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.element"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.element"); } else if (name.equals("listMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.listMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.listMode"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.variable"); } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.condition"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.condition"); } else if (name.equals("check")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.check"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.check"); } else if (name.equals("logMessage")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.source.logMessage"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.source.logMessage"); } else return super.addChild(name); @@ -4605,22 +4605,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("context")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.context"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.context"); } else if (name.equals("element")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.element"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.element"); } else if (name.equals("variable")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.variable"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.variable"); } else if (name.equals("listMode")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.listMode"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.listMode"); } else if (name.equals("listRuleId")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.listRuleId"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.listRuleId"); } else if (name.equals("transform")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.transform"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.target.transform"); } else if (name.equals("parameter")) { return addParameter(); @@ -5224,7 +5224,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.dependent.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.group.rule.dependent.name"); } else if (name.equals("parameter")) { return addParameter(); @@ -6775,13 +6775,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.url"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.version"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -6792,28 +6792,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.title"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.status"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.date"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.description"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -6822,19 +6822,19 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.copyrightLabel"); } else if (name.equals("structure")) { return addStructure(); } else if (name.equals("import")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.import"); + throw new FHIRException("Cannot call addChild on a singleton property StructureMap.import"); } else if (name.equals("const")) { return addConst(); 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 2dfed33b97..c00f9f7095 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 @@ -568,19 +568,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("resourceType")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.filterBy.resourceType"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.filterBy.resourceType"); } else if (name.equals("filterParameter")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.filterBy.filterParameter"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.filterBy.filterParameter"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.filterBy.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.filterBy.comparator"); } else if (name.equals("modifier")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.filterBy.modifier"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.filterBy.modifier"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.filterBy.value"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.filterBy.value"); } else return super.addChild(name); @@ -835,10 +835,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.parameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.parameter.name"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.parameter.value"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.parameter.value"); } else return super.addChild(name); @@ -2059,26 +2059,26 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.name"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.status"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.status"); } else if (name.equals("topic")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.topic"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.topic"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("end")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.end"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.end"); } else if (name.equals("managingEntity")) { this.managingEntity = new Reference(); return this.managingEntity; } else if (name.equals("reason")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.reason"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.reason"); } else if (name.equals("filterBy")) { return addFilterBy(); @@ -2088,25 +2088,25 @@ else if (name.equals("channelType")) { return this.channelType; } else if (name.equals("endpoint")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.endpoint"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.endpoint"); } else if (name.equals("parameter")) { return addParameter(); } else if (name.equals("heartbeatPeriod")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.heartbeatPeriod"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.heartbeatPeriod"); } else if (name.equals("timeout")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.timeout"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.timeout"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.contentType"); } else if (name.equals("content")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.content"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.content"); } else if (name.equals("maxCount")) { - throw new FHIRException("Cannot call addChild on a primitive type Subscription.maxCount"); + throw new FHIRException("Cannot call addChild on a singleton property Subscription.maxCount"); } else return super.addChild(name); 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 c685715c9f..81fea6a7ad 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 @@ -508,10 +508,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("eventNumber")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.notificationEvent.eventNumber"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionStatus.notificationEvent.eventNumber"); } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.notificationEvent.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionStatus.notificationEvent.timestamp"); } else if (name.equals("focus")) { this.focus = new Reference(); @@ -1092,13 +1092,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.status"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionStatus.status"); } else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.type"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionStatus.type"); } else if (name.equals("eventsSinceSubscriptionStart")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.eventsSinceSubscriptionStart"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionStatus.eventsSinceSubscriptionStart"); } else if (name.equals("notificationEvent")) { return addNotificationEvent(); @@ -1108,7 +1108,7 @@ else if (name.equals("subscription")) { return this.subscription; } else if (name.equals("topic")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.topic"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionStatus.topic"); } else if (name.equals("error")) { return addError(); 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 2bc5db2f8d..100c5824ad 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 @@ -651,20 +651,20 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.description"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.resource"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.resource"); } else if (name.equals("supportedInteraction")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.supportedInteraction"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.supportedInteraction"); } else if (name.equals("queryCriteria")) { this.queryCriteria = new SubscriptionTopicResourceTriggerQueryCriteriaComponent(); return this.queryCriteria; } else if (name.equals("fhirPathCriteria")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.fhirPathCriteria"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.fhirPathCriteria"); } else return super.addChild(name); @@ -1122,19 +1122,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("previous")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.previous"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.queryCriteria.previous"); } else if (name.equals("resultForCreate")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.resultForCreate"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.queryCriteria.resultForCreate"); } else if (name.equals("current")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.current"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.queryCriteria.current"); } else if (name.equals("resultForDelete")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.resultForDelete"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.queryCriteria.resultForDelete"); } else if (name.equals("requireBoth")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.requireBoth"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.resourceTrigger.queryCriteria.requireBoth"); } else return super.addChild(name); @@ -1436,14 +1436,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.eventTrigger.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.eventTrigger.description"); } else if (name.equals("event")) { this.event = new CodeableConcept(); return this.event; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.eventTrigger.resource"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.eventTrigger.resource"); } else return super.addChild(name); @@ -1992,22 +1992,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.canFilterBy.description"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.resource"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.canFilterBy.resource"); } else if (name.equals("filterParameter")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.filterParameter"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.canFilterBy.filterParameter"); } else if (name.equals("filterDefinition")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.filterDefinition"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.canFilterBy.filterDefinition"); } else if (name.equals("comparator")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.comparator"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.canFilterBy.comparator"); } else if (name.equals("modifier")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.modifier"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.canFilterBy.modifier"); } else return super.addChild(name); @@ -2365,13 +2365,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.notificationShape.resource"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.notificationShape.resource"); } else if (name.equals("include")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.notificationShape.include"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.notificationShape.include"); } else if (name.equals("revInclude")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.notificationShape.revInclude"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.notificationShape.revInclude"); } else return super.addChild(name); @@ -4172,13 +4172,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.url"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.version"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -4189,31 +4189,31 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.title"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.title"); } else if (name.equals("derivedFrom")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.derivedFrom"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.derivedFrom"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.status"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.date"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -4222,19 +4222,19 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property SubscriptionTopic.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); 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 db9eaddedc..9d214c0054 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 @@ -1042,10 +1042,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instance")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.instance"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.instance"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.status"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.status"); } else if (name.equals("category")) { return addCategory(); @@ -1055,10 +1055,10 @@ else if (name.equals("code")) { return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.description"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.description"); } else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.expiry"); + throw new FHIRException("Cannot call addChild on a singleton property Substance.expiry"); } else if (name.equals("quantity")) { this.quantity = new Quantity(); 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 a2a3ed61d8..746602698a 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 @@ -569,7 +569,7 @@ else if (name.equals("amountType")) { return this.amountType; } else if (name.equals("amountText")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceAmount.amountText"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceAmount.amountText"); } else if (name.equals("referenceRange")) { this.referenceRange = new SubstanceAmountReferenceRangeComponent(); 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 5aee9b1be0..f53b1e5eb9 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 @@ -538,7 +538,7 @@ else if (name.equals("identifier")) { return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.moiety.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.moiety.name"); } else if (name.equals("stereochemistry")) { this.stereochemistry = new CodeableConcept(); @@ -549,7 +549,7 @@ else if (name.equals("opticalActivity")) { return this.opticalActivity; } else if (name.equals("molecularFormula")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.moiety.molecularFormula"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.moiety.molecularFormula"); } else if (name.equals("amountQuantity")) { this.amount = new Quantity(); @@ -914,7 +914,7 @@ else if (name.equals("form")) { return this.form; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.characterization.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.characterization.description"); } else if (name.equals("file")) { return addFile(); @@ -2078,10 +2078,10 @@ else if (name.equals("opticalActivity")) { return this.opticalActivity; } else if (name.equals("molecularFormula")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.structure.molecularFormula"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.structure.molecularFormula"); } else if (name.equals("molecularFormulaByMoiety")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.structure.molecularFormulaByMoiety"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.structure.molecularFormulaByMoiety"); } else if (name.equals("molecularWeight")) { this.molecularWeight = new SubstanceDefinitionMolecularWeightComponent(); @@ -2428,7 +2428,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("representation")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.structure.representation.representation"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.structure.representation.representation"); } else if (name.equals("format")) { this.format = new CodeableConcept(); @@ -2851,7 +2851,7 @@ else if (name.equals("status")) { return this.status; } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.code.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.code.statusDate"); } else if (name.equals("note")) { return addNote(); @@ -3693,7 +3693,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.name.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.name.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); @@ -3704,7 +3704,7 @@ else if (name.equals("status")) { return this.status; } else if (name.equals("preferred")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.name.preferred"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.name.preferred"); } else if (name.equals("language")) { return addLanguage(); @@ -4038,7 +4038,7 @@ else if (name.equals("status")) { return this.status; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.name.official.date"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.name.official.date"); } else return super.addChild(name); @@ -4592,7 +4592,7 @@ else if (name.equals("type")) { return this.type; } else if (name.equals("isDefining")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.relationship.isDefining"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.relationship.isDefining"); } else if (name.equals("amountQuantity")) { this.amount = new Quantity(); @@ -6563,7 +6563,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.version"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.version"); } else if (name.equals("status")) { this.status = new CodeableConcept(); @@ -6580,7 +6580,7 @@ else if (name.equals("grade")) { return addGrade(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.description"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceDefinition.description"); } else if (name.equals("informationSource")) { return addInformationSource(); 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 f642e71903..3f14c6854e 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 @@ -571,13 +571,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("subunit")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.subunit.subunit"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.subunit.subunit"); } else if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.subunit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.subunit.sequence"); } else if (name.equals("length")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.subunit.length"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.subunit.length"); } else if (name.equals("sequenceAttachment")) { this.sequenceAttachment = new Attachment(); @@ -967,17 +967,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("connectivity")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.subunit.linkage.connectivity"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.subunit.linkage.connectivity"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.subunit.linkage.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.subunit.linkage.name"); } else if (name.equals("residueSite")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.subunit.linkage.residueSite"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.subunit.linkage.residueSite"); } else return super.addChild(name); @@ -1273,10 +1273,10 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.subunit.sugar.name"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.subunit.sugar.name"); } else if (name.equals("residueSite")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.subunit.sugar.residueSite"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.subunit.sugar.residueSite"); } else return super.addChild(name); @@ -1675,10 +1675,10 @@ public Base addChild(String name) throws FHIRException { return this.sequenceType; } else if (name.equals("numberOfSubunits")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.numberOfSubunits"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.numberOfSubunits"); } else if (name.equals("areaOfHybridisation")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceNucleicAcid.areaOfHybridisation"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceNucleicAcid.areaOfHybridisation"); } else if (name.equals("oligoNucleotideType")) { this.oligoNucleotideType = new CodeableConcept(); 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 9da56e5067..eee3a9aee7 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 @@ -546,7 +546,7 @@ else if (name.equals("category")) { return this.category; } else if (name.equals("isDefining")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.monomerSet.startingMaterial.isDefining"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.monomerSet.startingMaterial.isDefining"); } else if (name.equals("amount")) { this.amount = new Quantity(); @@ -845,7 +845,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("averageMolecularFormula")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.repeat.averageMolecularFormula"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.repeat.averageMolecularFormula"); } else if (name.equals("repeatUnitAmountType")) { this.repeatUnitAmountType = new CodeableConcept(); @@ -1282,14 +1282,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("unit")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.repeat.repeatUnit.unit"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.repeat.repeatUnit.unit"); } else if (name.equals("orientation")) { this.orientation = new CodeableConcept(); return this.orientation; } else if (name.equals("amount")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.repeat.repeatUnit.amount"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.repeat.repeatUnit.amount"); } else if (name.equals("degreeOfPolymerisation")) { return addDegreeOfPolymerisation(); @@ -1654,13 +1654,13 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("average")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.average"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.average"); } else if (name.equals("low")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.low"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.low"); } else if (name.equals("high")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.high"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.high"); } else return super.addChild(name); @@ -1972,7 +1972,7 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("representation")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.repeat.repeatUnit.structuralRepresentation.representation"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.repeat.repeatUnit.structuralRepresentation.representation"); } else if (name.equals("format")) { this.format = new CodeableConcept(); @@ -2510,7 +2510,7 @@ else if (name.equals("copolymerConnectivity")) { return addCopolymerConnectivity(); } else if (name.equals("modification")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstancePolymer.modification"); + throw new FHIRException("Cannot call addChild on a singleton property SubstancePolymer.modification"); } else if (name.equals("monomerSet")) { return addMonomerSet(); 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 fac803a259..4838c87c6c 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 @@ -563,13 +563,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("subunit")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.subunit.subunit"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.subunit.subunit"); } else if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.subunit.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.subunit.sequence"); } else if (name.equals("length")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.subunit.length"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.subunit.length"); } else if (name.equals("sequenceAttachment")) { this.sequenceAttachment = new Attachment(); @@ -580,14 +580,14 @@ else if (name.equals("nTerminalModificationId")) { return this.nTerminalModificationId; } else if (name.equals("nTerminalModification")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.subunit.nTerminalModification"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.subunit.nTerminalModification"); } else if (name.equals("cTerminalModificationId")) { this.cTerminalModificationId = new Identifier(); return this.cTerminalModificationId; } else if (name.equals("cTerminalModification")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.subunit.cTerminalModification"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.subunit.cTerminalModification"); } else return super.addChild(name); @@ -967,10 +967,10 @@ public Base addChild(String name) throws FHIRException { return this.sequenceType; } else if (name.equals("numberOfSubunits")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.numberOfSubunits"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.numberOfSubunits"); } else if (name.equals("disulfideLinkage")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceProtein.disulfideLinkage"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceProtein.disulfideLinkage"); } else if (name.equals("subunit")) { return addSubunit(); 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 b7d0d798f8..7fc81998fc 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 @@ -1520,7 +1520,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("comment")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceReferenceInformation.comment"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceReferenceInformation.comment"); } else if (name.equals("gene")) { return addGene(); 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 b8876c5e83..06c73a4e01 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 @@ -225,7 +225,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("fraction")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.fractionDescription.fraction"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.fractionDescription.fraction"); } else if (name.equals("materialType")) { this.materialType = new CodeableConcept(); @@ -742,7 +742,7 @@ else if (name.equals("intraspecificType")) { return this.intraspecificType; } else if (name.equals("intraspecificDescription")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.organism.intraspecificDescription"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.organism.intraspecificDescription"); } else if (name.equals("author")) { return addAuthor(); @@ -992,7 +992,7 @@ public Base addChild(String name) throws FHIRException { return this.authorType; } else if (name.equals("authorDescription")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.organism.author.authorDescription"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.organism.author.authorDescription"); } else return super.addChild(name); @@ -1413,16 +1413,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("maternalOrganismId")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.organism.hybrid.maternalOrganismId"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.organism.hybrid.maternalOrganismId"); } else if (name.equals("maternalOrganismName")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.organism.hybrid.maternalOrganismName"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.organism.hybrid.maternalOrganismName"); } else if (name.equals("paternalOrganismId")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.organism.hybrid.paternalOrganismId"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.organism.hybrid.paternalOrganismId"); } else if (name.equals("paternalOrganismName")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.organism.hybrid.paternalOrganismName"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.organism.hybrid.paternalOrganismName"); } else if (name.equals("hybridType")) { this.hybridType = new CodeableConcept(); @@ -2806,19 +2806,19 @@ else if (name.equals("organismId")) { return this.organismId; } else if (name.equals("organismName")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.organismName"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.organismName"); } else if (name.equals("parentSubstanceId")) { return addParentSubstanceId(); } else if (name.equals("parentSubstanceName")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.parentSubstanceName"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.parentSubstanceName"); } else if (name.equals("countryOfOrigin")) { return addCountryOfOrigin(); } else if (name.equals("geographicalLocation")) { - throw new FHIRException("Cannot call addChild on a primitive type SubstanceSourceMaterial.geographicalLocation"); + throw new FHIRException("Cannot call addChild on a singleton property SubstanceSourceMaterial.geographicalLocation"); } else if (name.equals("developmentStage")) { this.developmentStage = new CodeableConcept(); 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 f4ceff61d8..0865e94b09 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 @@ -1162,7 +1162,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyDelivery.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyDelivery.status"); } else if (name.equals("patient")) { this.patient = new Reference(); 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 4c91345e38..bf84fb1d8d 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 @@ -1512,7 +1512,7 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.status"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.status"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -1522,7 +1522,7 @@ else if (name.equals("category")) { return this.category; } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.priority"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.priority"); } else if (name.equals("deliverFor")) { this.deliverFor = new Reference(); @@ -1552,7 +1552,7 @@ else if (name.equals("occurrenceTiming")) { return this.occurrence; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type SupplyRequest.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property SupplyRequest.authoredOn"); } else if (name.equals("requester")) { this.requester = new Reference(); 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 faadf5f4b6..ab4be37a29 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 @@ -964,7 +964,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("repetitions")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.restriction.repetitions"); + throw new FHIRException("Cannot call addChild on a singleton property Task.restriction.repetitions"); } else if (name.equals("period")) { this.period = new Period(); @@ -5569,10 +5569,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property Task.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Task.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -5585,7 +5585,7 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.status"); + throw new FHIRException("Cannot call addChild on a singleton property Task.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableReference(); @@ -5596,20 +5596,20 @@ else if (name.equals("businessStatus")) { return this.businessStatus; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.intent"); + throw new FHIRException("Cannot call addChild on a singleton property Task.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Task.priority"); } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.doNotPerform"); + throw new FHIRException("Cannot call addChild on a singleton property Task.doNotPerform"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.description"); + throw new FHIRException("Cannot call addChild on a singleton property Task.description"); } else if (name.equals("focus")) { this.focus = new Reference(); @@ -5632,10 +5632,10 @@ else if (name.equals("executionPeriod")) { return this.executionPeriod; } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property Task.authoredOn"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Task.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Task.lastModified"); } else if (name.equals("requester")) { this.requester = new Reference(); 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 e9a54dfea4..bf11bcb732 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 @@ -366,10 +366,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.software.name"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.software.name"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.software.version"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.software.version"); } else return super.addChild(name); @@ -619,10 +619,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.implementation.description"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.implementation.description"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.implementation.url"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.implementation.url"); } else return super.addChild(name); @@ -1007,16 +1007,16 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.uri"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.uri"); } else if (name.equals("version")) { return addVersion(); } else if (name.equals("content")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.content"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.content"); } else if (name.equals("subsumption")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.subsumption"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.subsumption"); } else return super.addChild(name); @@ -1558,22 +1558,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.code"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.code"); } else if (name.equals("isDefault")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.isDefault"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.isDefault"); } else if (name.equals("compositional")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.compositional"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.compositional"); } else if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.language"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.language"); } else if (name.equals("filter")) { return addFilter(); } else if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.property"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.property"); } else return super.addChild(name); @@ -1856,10 +1856,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.filter.code"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.filter.code"); } else if (name.equals("op")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.filter.op"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSystem.version.filter.op"); } else return super.addChild(name); @@ -2299,19 +2299,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("hierarchical")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.hierarchical"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.expansion.hierarchical"); } else if (name.equals("paging")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.paging"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.expansion.paging"); } else if (name.equals("incomplete")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.incomplete"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.expansion.incomplete"); } else if (name.equals("parameter")) { return addParameter(); } else if (name.equals("textFilter")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.textFilter"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.expansion.textFilter"); } else return super.addChild(name); @@ -2571,10 +2571,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.parameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.expansion.parameter.name"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.parameter.documentation"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.expansion.parameter.documentation"); } else return super.addChild(name); @@ -2758,7 +2758,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("translations")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.validateCode.translations"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.validateCode.translations"); } else return super.addChild(name); @@ -2941,7 +2941,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("needsMap")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.translation.needsMap"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.translation.needsMap"); } else return super.addChild(name); @@ -3116,7 +3116,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("translation")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.closure.translation"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.closure.translation"); } else return super.addChild(name); @@ -4886,13 +4886,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.url"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.version"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -4903,28 +4903,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.name"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.title"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.status"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.date"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.description"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -4933,16 +4933,16 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.copyrightLabel"); } else if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.kind"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.kind"); } else if (name.equals("software")) { this.software = new TerminologyCapabilitiesSoftwareComponent(); @@ -4953,7 +4953,7 @@ else if (name.equals("implementation")) { return this.implementation; } else if (name.equals("lockedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.lockedDate"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.lockedDate"); } else if (name.equals("codeSystem")) { return addCodeSystem(); @@ -4963,7 +4963,7 @@ else if (name.equals("expansion")) { return this.expansion; } else if (name.equals("codeSearch")) { - throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSearch"); + throw new FHIRException("Cannot call addChild on a singleton property TerminologyCapabilities.codeSearch"); } else if (name.equals("validateCode")) { this.validateCode = new TerminologyCapabilitiesValidateCodeComponent(); 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 a01ecd74fb..f02944f526 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 @@ -225,7 +225,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.dependency.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.dependency.description"); } else if (name.equals("predecessor")) { this.predecessor = new Reference(); @@ -756,7 +756,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("sequence")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.testCase.sequence"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.testCase.sequence"); } else if (name.equals("scope")) { return addScope(); @@ -1019,7 +1019,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.testCase.dependency.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.testCase.dependency.description"); } else if (name.equals("predecessor")) { this.predecessor = new Reference(); @@ -1245,7 +1245,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("narrative")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.testCase.testRun.narrative"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.testCase.testRun.narrative"); } else if (name.equals("script")) { this.script = new TestPlanTestCaseTestRunScriptComponent(); @@ -3794,13 +3794,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.version"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -3811,28 +3811,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.title"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.date"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -3841,13 +3841,13 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.copyrightLabel"); } else if (name.equals("category")) { return addCategory(); @@ -3856,13 +3856,13 @@ else if (name.equals("scope")) { return addScope(); } else if (name.equals("testTools")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.testTools"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.testTools"); } else if (name.equals("dependency")) { return addDependency(); } else if (name.equals("exitCriteria")) { - throw new FHIRException("Cannot call addChild on a primitive type TestPlan.exitCriteria"); + throw new FHIRException("Cannot call addChild on a singleton property TestPlan.exitCriteria"); } else if (name.equals("testCase")) { return addTestCase(); 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 e7c471beb8..975877aef0 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 @@ -833,13 +833,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.participant.type"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.participant.type"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.participant.uri"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.participant.uri"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.participant.display"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.participant.display"); } else return super.addChild(name); @@ -1557,13 +1557,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.operation.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.operation.result"); } else if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.operation.message"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.operation.message"); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.operation.detail"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.operation.detail"); } else return super.addChild(name); @@ -1956,13 +1956,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.assert.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.assert.result"); } else if (name.equals("message")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.assert.message"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.assert.message"); } else if (name.equals("detail")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.setup.action.assert.detail"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.setup.action.assert.detail"); } else if (name.equals("requirement")) { return addRequirement(); @@ -2488,10 +2488,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.test.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.test.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.test.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.test.description"); } else if (name.equals("action")) { return addAction(); @@ -3923,25 +3923,25 @@ public Base addChild(String name) throws FHIRException { return this.identifier; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.name"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.status"); } else if (name.equals("testScript")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.testScript"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.testScript"); } else if (name.equals("result")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.result"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.result"); } else if (name.equals("score")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.score"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.score"); } else if (name.equals("tester")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.tester"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.tester"); } else if (name.equals("issued")) { - throw new FHIRException("Cannot call addChild on a primitive type TestReport.issued"); + throw new FHIRException("Cannot call addChild on a singleton property TestReport.issued"); } else if (name.equals("participant")) { return addParticipant(); 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 fbf7fd5a8a..c301c3f8fd 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 @@ -1721,14 +1721,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("index")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.origin.index"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.origin.index"); } else if (name.equals("profile")) { this.profile = new Coding(); return this.profile; } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.origin.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.origin.url"); } else return super.addChild(name); @@ -2023,14 +2023,14 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("index")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination.index"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination.index"); } else if (name.equals("profile")) { this.profile = new Coding(); return this.profile; } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.destination.url"); } else return super.addChild(name); @@ -2555,10 +2555,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.link.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.link.url"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.link.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.link.description"); } else return super.addChild(name); @@ -3152,25 +3152,25 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("required")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.required"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.required"); } else if (name.equals("validated")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.validated"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.validated"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.description"); } else if (name.equals("origin")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.origin"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.origin"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.destination"); } else if (name.equals("link")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.link"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.link"); } else if (name.equals("capabilities")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.capabilities"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.metadata.capability.capabilities"); } else return super.addChild(name); @@ -3456,7 +3456,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("artifact")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.scope.artifact"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.scope.artifact"); } else if (name.equals("conformance")) { this.conformance = new CodeableConcept(); @@ -3755,10 +3755,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("autocreate")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.fixture.autocreate"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.fixture.autocreate"); } else if (name.equals("autodelete")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.fixture.autodelete"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.fixture.autodelete"); } else if (name.equals("resource")) { this.resource = new Reference(); @@ -4412,28 +4412,28 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.name"); } else if (name.equals("defaultValue")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.defaultValue"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.defaultValue"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.description"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.expression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.expression"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.headerField"); } else if (name.equals("hint")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.hint"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.hint"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.path"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.variable.sourceId"); } else return super.addChild(name); @@ -6064,52 +6064,52 @@ public Base addChild(String name) throws FHIRException { return this.type; } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.resource"); } else if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.description"); } else if (name.equals("accept")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.accept"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.accept"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.contentType"); } else if (name.equals("destination")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.destination"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.destination"); } else if (name.equals("encodeRequestUrl")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.encodeRequestUrl"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.encodeRequestUrl"); } else if (name.equals("method")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.method"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.method"); } else if (name.equals("origin")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.origin"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.origin"); } else if (name.equals("params")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.params"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.params"); } else if (name.equals("requestHeader")) { return addRequestHeader(); } else if (name.equals("requestId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.requestId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.requestId"); } else if (name.equals("responseId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.responseId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.responseId"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.sourceId"); } else if (name.equals("targetId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.targetId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.targetId"); } else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.url"); } else return super.addChild(name); @@ -6388,10 +6388,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("field")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.requestHeader.field"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.requestHeader.field"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.requestHeader.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.operation.requestHeader.value"); } else return super.addChild(name); @@ -8173,76 +8173,76 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("label")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.label"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.label"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.description"); } else if (name.equals("direction")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.direction"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.direction"); } else if (name.equals("compareToSourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.compareToSourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.compareToSourceId"); } else if (name.equals("compareToSourceExpression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.compareToSourceExpression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.compareToSourceExpression"); } else if (name.equals("compareToSourcePath")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.compareToSourcePath"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.compareToSourcePath"); } else if (name.equals("contentType")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.contentType"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.contentType"); } else if (name.equals("defaultManualCompletion")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.defaultManualCompletion"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.defaultManualCompletion"); } else if (name.equals("expression")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.expression"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.expression"); } else if (name.equals("headerField")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.headerField"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.headerField"); } else if (name.equals("minimumId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.minimumId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.minimumId"); } else if (name.equals("navigationLinks")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.navigationLinks"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.navigationLinks"); } else if (name.equals("operator")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.operator"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.operator"); } else if (name.equals("path")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.path"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.path"); } else if (name.equals("requestMethod")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.requestMethod"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.requestMethod"); } else if (name.equals("requestURL")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.requestURL"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.requestURL"); } else if (name.equals("resource")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.resource"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.resource"); } else if (name.equals("response")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.response"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.response"); } else if (name.equals("responseCode")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.responseCode"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.responseCode"); } else if (name.equals("sourceId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.sourceId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.sourceId"); } else if (name.equals("stopTestOnFail")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.stopTestOnFail"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.stopTestOnFail"); } else if (name.equals("validateProfileId")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.validateProfileId"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.validateProfileId"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.value"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.value"); } else if (name.equals("warningOnly")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.warningOnly"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.setup.action.assert.warningOnly"); } else if (name.equals("requirement")) { return addRequirement(); @@ -8809,10 +8809,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.test.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.test.name"); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.test.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.test.description"); } else if (name.equals("action")) { return addAction(); @@ -11260,13 +11260,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.version"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -11277,28 +11277,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.title"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.status"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.date"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -11307,13 +11307,13 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.copyrightLabel"); } else if (name.equals("origin")) { return addOrigin(); @@ -11332,7 +11332,7 @@ else if (name.equals("fixture")) { return addFixture(); } else if (name.equals("profile")) { - throw new FHIRException("Cannot call addChild on a primitive type TestScript.profile"); + throw new FHIRException("Cannot call addChild on a singleton property TestScript.profile"); } else if (name.equals("variable")) { return addVariable(); 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 ef5785d9ad..b8158f1df1 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 @@ -1923,46 +1923,46 @@ else if (name.equals("boundsPeriod")) { return this.bounds; } else if (name.equals("count")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.count"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.count"); } else if (name.equals("countMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.countMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.countMax"); } else if (name.equals("duration")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.duration"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.duration"); } else if (name.equals("durationMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.durationMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.durationMax"); } else if (name.equals("durationUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.durationUnit"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.durationUnit"); } else if (name.equals("frequency")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.frequency"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.frequency"); } else if (name.equals("frequencyMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.frequencyMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.frequencyMax"); } else if (name.equals("period")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.period"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.period"); } else if (name.equals("periodMax")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.periodMax"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.periodMax"); } else if (name.equals("periodUnit")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.periodUnit"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.periodUnit"); } else if (name.equals("dayOfWeek")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.dayOfWeek"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.dayOfWeek"); } else if (name.equals("timeOfDay")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.timeOfDay"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.timeOfDay"); } else if (name.equals("when")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.when"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.when"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.repeat.offset"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.repeat.offset"); } else return super.addChild(name); @@ -2272,7 +2272,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("event")) { - throw new FHIRException("Cannot call addChild on a primitive type Timing.event"); + throw new FHIRException("Cannot call addChild on a singleton property Timing.event"); } else if (name.equals("repeat")) { this.repeat = new TimingRepeatComponent(); 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 2284a2362b..441894d509 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 @@ -659,7 +659,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("repetitions")) { - throw new FHIRException("Cannot call addChild on a primitive type Transport.restriction.repetitions"); + throw new FHIRException("Cannot call addChild on a singleton property Transport.restriction.repetitions"); } else if (name.equals("period")) { this.period = new Period(); @@ -5174,10 +5174,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type Transport.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a singleton property Transport.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type Transport.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a singleton property Transport.instantiatesUri"); } else if (name.equals("basedOn")) { return addBasedOn(); @@ -5190,24 +5190,24 @@ else if (name.equals("partOf")) { return addPartOf(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type Transport.status"); + throw new FHIRException("Cannot call addChild on a singleton property Transport.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("intent")) { - throw new FHIRException("Cannot call addChild on a primitive type Transport.intent"); + throw new FHIRException("Cannot call addChild on a singleton property Transport.intent"); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Transport.priority"); + throw new FHIRException("Cannot call addChild on a singleton property Transport.priority"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Transport.description"); + throw new FHIRException("Cannot call addChild on a singleton property Transport.description"); } else if (name.equals("focus")) { this.focus = new Reference(); @@ -5222,13 +5222,13 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("completionTime")) { - throw new FHIRException("Cannot call addChild on a primitive type Transport.completionTime"); + throw new FHIRException("Cannot call addChild on a singleton property Transport.completionTime"); } else if (name.equals("authoredOn")) { - throw new FHIRException("Cannot call addChild on a primitive type Transport.authoredOn"); + throw new FHIRException("Cannot call addChild on a singleton property Transport.authoredOn"); } else if (name.equals("lastModified")) { - throw new FHIRException("Cannot call addChild on a primitive type Transport.lastModified"); + throw new FHIRException("Cannot call addChild on a singleton property Transport.lastModified"); } else if (name.equals("requester")) { this.requester = new Reference(); 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 2f4e43f0a1..bc650c1aac 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 @@ -767,17 +767,17 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.type"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.type"); } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.name"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.name"); } else if (name.equals("code")) { this.code = new CodeableConcept(); return this.code; } else if (name.equals("subscriptionTopic")) { - throw new FHIRException("Cannot call addChild on a primitive type TriggerDefinition.subscriptionTopic"); + throw new FHIRException("Cannot call addChild on a singleton property TriggerDefinition.subscriptionTopic"); } else if (name.equals("timingTiming")) { this.timing = new Timing(); 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 ccf8106cd0..3077dc3af3 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 @@ -472,10 +472,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("lockedDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.lockedDate"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.lockedDate"); } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.inactive"); } else if (name.equals("include")) { return addInclude(); @@ -484,7 +484,7 @@ else if (name.equals("exclude")) { return addExclude(); } else if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.property"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.property"); } else return super.addChild(name); @@ -1032,10 +1032,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.system"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.version"); } else if (name.equals("concept")) { return addConcept(); @@ -1044,10 +1044,10 @@ else if (name.equals("filter")) { return addFilter(); } else if (name.equals("valueSet")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.valueSet"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.valueSet"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.copyright"); } else return super.addChild(name); @@ -1387,10 +1387,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.concept.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.concept.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.concept.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.concept.display"); } else if (name.equals("designation")) { return addDesignation(); @@ -1764,7 +1764,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.concept.designation.language"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.concept.designation.language"); } else if (name.equals("use")) { this.use = new Coding(); @@ -1774,7 +1774,7 @@ else if (name.equals("additionalUse")) { return addAdditionalUse(); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.concept.designation.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.concept.designation.value"); } else return super.addChild(name); @@ -2095,13 +2095,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("property")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.filter.property"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.filter.property"); } else if (name.equals("op")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.filter.op"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.filter.op"); } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.filter.value"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.compose.include.filter.value"); } else return super.addChild(name); @@ -2754,19 +2754,19 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.identifier"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.identifier"); } else if (name.equals("next")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.next"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.next"); } else if (name.equals("timestamp")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.timestamp"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.timestamp"); } else if (name.equals("total")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.total"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.total"); } else if (name.equals("offset")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.offset"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.offset"); } else if (name.equals("parameter")) { return addParameter(); @@ -3145,7 +3145,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.parameter.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.parameter.name"); } else if (name.equals("valueString")) { this.value = new StringType(); @@ -3423,10 +3423,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.property.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.property.code"); } else if (name.equals("uri")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.property.uri"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.property.uri"); } else return super.addChild(name); @@ -4138,22 +4138,22 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("system")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.system"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.system"); } else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.abstract"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.abstract"); } else if (name.equals("inactive")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.inactive"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.inactive"); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.version"); } else if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.code"); } else if (name.equals("display")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.display"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.display"); } else if (name.equals("designation")) { return addDesignation(); @@ -4594,7 +4594,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.property.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.property.code"); } else if (name.equals("valueCode")) { this.value = new CodeType(); @@ -4969,7 +4969,7 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.property.subProperty.code"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.expansion.contains.property.subProperty.code"); } else if (name.equals("valueCode")) { this.value = new CodeType(); @@ -5243,10 +5243,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("inclusionCriteria")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.scope.inclusionCriteria"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.scope.inclusionCriteria"); } else if (name.equals("exclusionCriteria")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.scope.exclusionCriteria"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.scope.exclusionCriteria"); } else return super.addChild(name); @@ -7289,13 +7289,13 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.url"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.url"); } else if (name.equals("identifier")) { return addIdentifier(); } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.version"); } else if (name.equals("versionAlgorithmString")) { this.versionAlgorithm = new StringType(); @@ -7306,28 +7306,28 @@ else if (name.equals("versionAlgorithmCoding")) { return this.versionAlgorithm; } else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.name"); } else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.title"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.title"); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.status"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.status"); } else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.experimental"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.experimental"); } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.date"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.date"); } else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.publisher"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.description"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.description"); } else if (name.equals("useContext")) { return addUseContext(); @@ -7336,22 +7336,22 @@ else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("immutable")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.immutable"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.immutable"); } else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.purpose"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.purpose"); } else if (name.equals("copyright")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.copyright"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.copyright"); } else if (name.equals("copyrightLabel")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.copyrightLabel"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.copyrightLabel"); } else if (name.equals("approvalDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.approvalDate"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.approvalDate"); } else if (name.equals("lastReviewDate")) { - throw new FHIRException("Cannot call addChild on a primitive type ValueSet.lastReviewDate"); + throw new FHIRException("Cannot call addChild on a singleton property ValueSet.lastReviewDate"); } else if (name.equals("effectivePeriod")) { this.effectivePeriod = new Period(); 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 263780fcd1..88b53bb654 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 @@ -712,7 +712,7 @@ else if (name.equals("validationStatus")) { return this.validationStatus; } else if (name.equals("validationDate")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.primarySource.validationDate"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.primarySource.validationDate"); } else if (name.equals("canPushUpdates")) { this.canPushUpdates = new CodeableConcept(); @@ -1270,13 +1270,13 @@ else if (name.equals("communicationMethod")) { return this.communicationMethod; } else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.attestation.date"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.attestation.date"); } else if (name.equals("sourceIdentityCertificate")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.attestation.sourceIdentityCertificate"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.attestation.sourceIdentityCertificate"); } else if (name.equals("proxyIdentityCertificate")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.attestation.proxyIdentityCertificate"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.attestation.proxyIdentityCertificate"); } else if (name.equals("proxySignature")) { this.proxySignature = new Signature(); @@ -1570,7 +1570,7 @@ public Base addChild(String name) throws FHIRException { return this.organization; } else if (name.equals("identityCertificate")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.validator.identityCertificate"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.validator.identityCertificate"); } else if (name.equals("attestationSignature")) { this.attestationSignature = new Signature(); @@ -2530,17 +2530,17 @@ public Base addChild(String name) throws FHIRException { return addTarget(); } else if (name.equals("targetLocation")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.targetLocation"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.targetLocation"); } else if (name.equals("need")) { this.need = new CodeableConcept(); return this.need; } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.status"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.status"); } else if (name.equals("statusDate")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.statusDate"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.statusDate"); } else if (name.equals("validationType")) { this.validationType = new CodeableConcept(); @@ -2554,10 +2554,10 @@ else if (name.equals("frequency")) { return this.frequency; } else if (name.equals("lastPerformed")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.lastPerformed"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.lastPerformed"); } else if (name.equals("nextScheduled")) { - throw new FHIRException("Cannot call addChild on a primitive type VerificationResult.nextScheduled"); + throw new FHIRException("Cannot call addChild on a singleton property VerificationResult.nextScheduled"); } else if (name.equals("failureAction")) { this.failureAction = new CodeableConcept(); 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 a62f6366b0..b6c8be056e 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 @@ -486,13 +486,13 @@ else if (name.equals("addressExtendedContactDetail")) { return this.address; } else if (name.equals("additionalInfo")) { - throw new FHIRException("Cannot call addChild on a primitive type VirtualServiceDetail.additionalInfo"); + throw new FHIRException("Cannot call addChild on a singleton property VirtualServiceDetail.additionalInfo"); } else if (name.equals("maxParticipants")) { - throw new FHIRException("Cannot call addChild on a primitive type VirtualServiceDetail.maxParticipants"); + throw new FHIRException("Cannot call addChild on a singleton property VirtualServiceDetail.maxParticipants"); } else if (name.equals("sessionKey")) { - throw new FHIRException("Cannot call addChild on a primitive type VirtualServiceDetail.sessionKey"); + throw new FHIRException("Cannot call addChild on a singleton property VirtualServiceDetail.sessionKey"); } else return super.addChild(name); 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 c1b043ab5f..06973a91d1 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 @@ -1342,41 +1342,41 @@ public Base addChild(String name) throws FHIRException { return this.product; } else if (name.equals("eye")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.eye"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.eye"); } else if (name.equals("sphere")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.sphere"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.sphere"); } else if (name.equals("cylinder")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.cylinder"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.cylinder"); } else if (name.equals("axis")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.axis"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.axis"); } else if (name.equals("prism")) { return addPrism(); } else if (name.equals("add")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.add"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.add"); } else if (name.equals("power")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.power"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.power"); } else if (name.equals("backCurve")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.backCurve"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.backCurve"); } else if (name.equals("diameter")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.diameter"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.diameter"); } else if (name.equals("duration")) { this.duration = new Quantity(); return this.duration; } else if (name.equals("color")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.color"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.color"); } else if (name.equals("brand")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.brand"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.brand"); } else if (name.equals("note")) { return addNote(); @@ -1676,10 +1676,10 @@ public String[] getTypesForProperty(int hash, String name) throws FHIRException @Override public Base addChild(String name) throws FHIRException { if (name.equals("amount")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.prism.amount"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.prism.amount"); } else if (name.equals("base")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.lensSpecification.prism.base"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.lensSpecification.prism.base"); } else return super.addChild(name); @@ -2259,10 +2259,10 @@ public Base addChild(String name) throws FHIRException { return addIdentifier(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.status"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.status"); } else if (name.equals("created")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.created"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.created"); } else if (name.equals("patient")) { this.patient = new Reference(); @@ -2273,7 +2273,7 @@ else if (name.equals("encounter")) { return this.encounter; } else if (name.equals("dateWritten")) { - throw new FHIRException("Cannot call addChild on a primitive type VisionPrescription.dateWritten"); + throw new FHIRException("Cannot call addChild on a singleton property VisionPrescription.dateWritten"); } else if (name.equals("prescriber")) { this.prescriber = new Reference(); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/profilemodel/PEBuilder.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/profilemodel/PEBuilder.java index 4370ce845c..4dd63fd302 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/profilemodel/PEBuilder.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/profilemodel/PEBuilder.java @@ -330,6 +330,7 @@ protected List listChildren(boolean allFixed, PEDefinition parent, if (defn.hasSlicing()) { if (defn.getSlicing().getRules() != SlicingRules.CLOSED) { res.add(pe); + pe.setSlicer(true); } i++; while (i < list.size() && list.get(i).getPath().equals(defn.getPath())) { @@ -484,19 +485,22 @@ public IWorkerContext getContext() { protected void populateByProfile(Base base, PEDefinition definition) { for (PEDefinition pe : definition.children(true)) { + System.out.println("PopulateByProfile for "+pe.path); if (pe.fixedValue()) { if (pe.definition().hasPattern()) { base.setProperty(pe.schemaName(), pe.definition().getPattern()); } else { base.setProperty(pe.schemaName(), pe.definition().getFixed()); } - } else { + } else if (!pe.isSlicer()) { for (int i = 0; i < pe.min(); i++) { Base b = null; if (pe.schemaName().endsWith("[x]")) { if (pe.types().size() == 1) { b = base.addChild(pe.schemaName().replace("[x]", Utilities.capitalize(pe.types().get(0).getType()))); } + } else if (!pe.isBaseList()) { + b = base.makeProperty(pe.schemaName().hashCode(), pe.schemaName()); } else { b = base.addChild(pe.schemaName()); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/profilemodel/PEDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/profilemodel/PEDefinition.java index 911c390e4e..c38afca20c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/profilemodel/PEDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/profilemodel/PEDefinition.java @@ -31,6 +31,7 @@ public enum PEDefinitionElementMode { private boolean recursing; private boolean mustHaveValue; private boolean inFixedValue; + private boolean isSlicer; // /** // * Don't create one of these directly - always use the public methods on ProfiledElementBuilder @@ -278,6 +279,21 @@ public boolean isProfiled() { return !profile.getUrl().startsWith("http://hl7.org/fhir/StructureDefinition"); } + + public boolean isSlicer() { + return isSlicer; + } + + + public void setSlicer(boolean isSlicer) { + this.isSlicer = isSlicer; + } + + + public boolean isBaseList() { + return !"1".equals(definition.getBase().getMax()); + } + } diff --git a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/profiles/PEModelTest1343.java b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/profiles/PEModelTest1343.java new file mode 100644 index 0000000000..23b84de312 --- /dev/null +++ b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/profiles/PEModelTest1343.java @@ -0,0 +1,47 @@ +package org.hl7.fhir.r5.profiles; + + +import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.context.IWorkerContext; +import org.hl7.fhir.r5.model.Patient; +import org.hl7.fhir.r5.context.SimpleWorkerContext; +import org.hl7.fhir.r5.formats.IParser.OutputStyle; +import org.hl7.fhir.r5.formats.JsonParser; +import org.hl7.fhir.r5.profilemodel.PEBuilder; +import org.hl7.fhir.r5.test.utils.TestPackageLoader; +import org.hl7.fhir.r5.test.utils.TestingUtilities; +import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.npm.NpmPackage; +import org.junit.jupiter.api.Test; +import org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager; + +public class PEModelTest1343 { + + private IWorkerContext ctxt; + + public void Load() throws Exception { + if (ctxt == null) { + ctxt = TestingUtilities.getSharedWorkerContext("4.0.1"); + FilesystemPackageCacheManager pc = new FilesystemPackageCacheManager(true); + NpmPackage npm = pc.loadPackage("hl7.fhir.fr.core", "1.1.0"); + ctxt.loadFromPackage(npm, new TestPackageLoader(Utilities.strings(SimpleWorkerContext.defaultTypesToLoad().stream().toArray(String[]::new)))); + } + } + + + @Test + public void testPatientCreate() throws Exception { + CreatePatientFromProfile("http://interopsante.org/fhir/StructureDefinition/FrPatient"); + } + + public void CreatePatientFromProfile(String profileURL) throws Exception { + this.Load(); + + var peBuilder = new PEBuilder(ctxt, PEBuilder.PEElementPropertiesPolicy.NONE, false); + Patient res = (Patient) peBuilder.createResource(profileURL, true); + + String json = new JsonParser().setOutputStyle(OutputStyle.PRETTY).composeString(res); + System.out.println(json); + } + +} diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java index 992e769690..c6882c553a 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java @@ -1343,7 +1343,7 @@ public boolean canLazyLoad() throws IOException { if (npm.asBoolean("lazy-load")) { return true; } - if (!hasFile("other", "spec.internals")) { + if (!hasFile("other", "spec.internals") && folders.get("package").cachedIndex == null) { return false; } return true;