From 8c610c1a012411a85b9ef53b17f9f66442850634 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 22 Apr 2022 11:56:24 +1000 Subject: [PATCH] Regenerate R4B code --- org.hl7.fhir.core.generator/.classpath | 30 +- .../configuration/configuration.ini | 47 +- .../core/generator/analysis/Analyser.java | 1 + .../generator/codegen/JavaBaseGenerator.java | 11 +- .../codegen/JavaParserJsonGenerator.java | 4 +- .../codegen/JavaParserRdfGenerator.java | 2 +- .../codegen/JavaParserXmlGenerator.java | 4 +- .../codegen/JavaResourceGenerator.java | 127 +- .../generator/engine/JavaCoreGenerator.java | 16 +- .../org/hl7/fhir/r4b/formats/JsonParser.java | 8 +- .../org/hl7/fhir/r4b/formats/RdfParser.java | 4 +- .../org/hl7/fhir/r4b/formats/XmlParser.java | 8 +- .../java/org/hl7/fhir/r4b/model/Account.java | 2 +- .../fhir/r4b/model/ActivityDefinition.java | 4 +- .../java/org/hl7/fhir/r4b/model/Address.java | 2 +- .../model/AdministrableProductDefinition.java | 2 +- .../org/hl7/fhir/r4b/model/AdverseEvent.java | 2 +- .../main/java/org/hl7/fhir/r4b/model/Age.java | 2 +- .../fhir/r4b/model/AllergyIntolerance.java | 2 +- .../org/hl7/fhir/r4b/model/Annotation.java | 2 +- .../org/hl7/fhir/r4b/model/Appointment.java | 2 +- .../fhir/r4b/model/AppointmentResponse.java | 2 +- .../org/hl7/fhir/r4b/model/Attachment.java | 2 +- .../org/hl7/fhir/r4b/model/AuditEvent.java | 2 +- .../hl7/fhir/r4b/model/BackboneElement.java | 2 +- .../java/org/hl7/fhir/r4b/model/Basic.java | 2 +- .../java/org/hl7/fhir/r4b/model/Binary.java | 2 +- .../r4b/model/BiologicallyDerivedProduct.java | 2 +- .../org/hl7/fhir/r4b/model/BodyStructure.java | 2 +- .../java/org/hl7/fhir/r4b/model/Bundle.java | 2 +- .../fhir/r4b/model/CapabilityStatement.java | 69 +- .../java/org/hl7/fhir/r4b/model/CarePlan.java | 2 +- .../java/org/hl7/fhir/r4b/model/CareTeam.java | 2 +- .../org/hl7/fhir/r4b/model/CatalogEntry.java | 2 +- .../org/hl7/fhir/r4b/model/ChargeItem.java | 2 +- .../fhir/r4b/model/ChargeItemDefinition.java | 2 +- .../java/org/hl7/fhir/r4b/model/Citation.java | 4 +- .../java/org/hl7/fhir/r4b/model/Claim.java | 2 +- .../org/hl7/fhir/r4b/model/ClaimResponse.java | 2 +- .../fhir/r4b/model/ClinicalImpression.java | 2 +- .../fhir/r4b/model/ClinicalUseDefinition.java | 2 +- .../org/hl7/fhir/r4b/model/CodeSystem.java | 2 +- .../hl7/fhir/r4b/model/CodeableConcept.java | 2 +- .../hl7/fhir/r4b/model/CodeableReference.java | 2 +- .../java/org/hl7/fhir/r4b/model/Coding.java | 2 +- .../org/hl7/fhir/r4b/model/Communication.java | 2 +- .../fhir/r4b/model/CommunicationRequest.java | 2 +- .../fhir/r4b/model/CompartmentDefinition.java | 244 +- .../org/hl7/fhir/r4b/model/Composition.java | 2 +- .../org/hl7/fhir/r4b/model/ConceptMap.java | 95 +- .../org/hl7/fhir/r4b/model/Condition.java | 2 +- .../java/org/hl7/fhir/r4b/model/Consent.java | 2 +- .../org/hl7/fhir/r4b/model/Constants.java | 4 +- .../org/hl7/fhir/r4b/model/ContactDetail.java | 2 +- .../org/hl7/fhir/r4b/model/ContactPoint.java | 2 +- .../java/org/hl7/fhir/r4b/model/Contract.java | 2 +- .../org/hl7/fhir/r4b/model/Contributor.java | 2 +- .../java/org/hl7/fhir/r4b/model/Count.java | 2 +- .../java/org/hl7/fhir/r4b/model/Coverage.java | 2 +- .../r4b/model/CoverageEligibilityRequest.java | 2 +- .../model/CoverageEligibilityResponse.java | 2 +- .../hl7/fhir/r4b/model/DataRequirement.java | 2 +- .../java/org/hl7/fhir/r4b/model/DataType.java | 2 +- .../org/hl7/fhir/r4b/model/DetectedIssue.java | 2 +- .../java/org/hl7/fhir/r4b/model/Device.java | 2 +- .../hl7/fhir/r4b/model/DeviceDefinition.java | 2 +- .../org/hl7/fhir/r4b/model/DeviceMetric.java | 2 +- .../org/hl7/fhir/r4b/model/DeviceRequest.java | 2 +- .../fhir/r4b/model/DeviceUseStatement.java | 2 +- .../hl7/fhir/r4b/model/DiagnosticReport.java | 2 +- .../java/org/hl7/fhir/r4b/model/Distance.java | 2 +- .../hl7/fhir/r4b/model/DocumentManifest.java | 2 +- .../hl7/fhir/r4b/model/DocumentReference.java | 2 +- .../hl7/fhir/r4b/model/DomainResource.java | 2 +- .../java/org/hl7/fhir/r4b/model/Dosage.java | 2 +- .../java/org/hl7/fhir/r4b/model/Duration.java | 2 +- .../java/org/hl7/fhir/r4b/model/Element.java | 2 +- .../hl7/fhir/r4b/model/ElementDefinition.java | 2 +- .../org/hl7/fhir/r4b/model/Encounter.java | 2 +- .../java/org/hl7/fhir/r4b/model/Endpoint.java | 2 +- .../hl7/fhir/r4b/model/EnrollmentRequest.java | 2 +- .../fhir/r4b/model/EnrollmentResponse.java | 2 +- .../org/hl7/fhir/r4b/model/Enumerations.java | 2 +- .../org/hl7/fhir/r4b/model/EpisodeOfCare.java | 2 +- .../hl7/fhir/r4b/model/EventDefinition.java | 4 +- .../java/org/hl7/fhir/r4b/model/Evidence.java | 2 +- .../hl7/fhir/r4b/model/EvidenceReport.java | 2 +- .../hl7/fhir/r4b/model/EvidenceVariable.java | 2 +- .../hl7/fhir/r4b/model/ExampleScenario.java | 9539 +++++++++-------- .../fhir/r4b/model/ExplanationOfBenefit.java | 2 +- .../org/hl7/fhir/r4b/model/Expression.java | 2 +- .../org/hl7/fhir/r4b/model/Extension.java | 2 +- .../fhir/r4b/model/FamilyMemberHistory.java | 2 +- .../java/org/hl7/fhir/r4b/model/Flag.java | 2 +- .../java/org/hl7/fhir/r4b/model/Goal.java | 2 +- .../hl7/fhir/r4b/model/GraphDefinition.java | 96 +- .../java/org/hl7/fhir/r4b/model/Group.java | 2 +- .../hl7/fhir/r4b/model/GuidanceResponse.java | 2 +- .../hl7/fhir/r4b/model/HealthcareService.java | 2 +- .../org/hl7/fhir/r4b/model/HumanName.java | 2 +- .../org/hl7/fhir/r4b/model/Identifier.java | 2 +- .../org/hl7/fhir/r4b/model/ImagingStudy.java | 2 +- .../org/hl7/fhir/r4b/model/Immunization.java | 2 +- .../r4b/model/ImmunizationEvaluation.java | 2 +- .../r4b/model/ImmunizationRecommendation.java | 2 +- .../fhir/r4b/model/ImplementationGuide.java | 124 +- .../org/hl7/fhir/r4b/model/Ingredient.java | 2 +- .../org/hl7/fhir/r4b/model/InsurancePlan.java | 2 +- .../java/org/hl7/fhir/r4b/model/Invoice.java | 2 +- .../java/org/hl7/fhir/r4b/model/Library.java | 4 +- .../java/org/hl7/fhir/r4b/model/Linkage.java | 2 +- .../org/hl7/fhir/r4b/model/ListResource.java | 22 +- .../java/org/hl7/fhir/r4b/model/Location.java | 2 +- .../r4b/model/ManufacturedItemDefinition.java | 2 +- .../hl7/fhir/r4b/model/MarketingStatus.java | 2 +- .../java/org/hl7/fhir/r4b/model/Measure.java | 2 +- .../org/hl7/fhir/r4b/model/MeasureReport.java | 2 +- .../java/org/hl7/fhir/r4b/model/Media.java | 2 +- .../org/hl7/fhir/r4b/model/Medication.java | 2 +- .../r4b/model/MedicationAdministration.java | 2 +- .../fhir/r4b/model/MedicationDispense.java | 2 +- .../fhir/r4b/model/MedicationKnowledge.java | 2 +- .../hl7/fhir/r4b/model/MedicationRequest.java | 2 +- .../fhir/r4b/model/MedicationStatement.java | 2 +- .../r4b/model/MedicinalProductDefinition.java | 2 +- .../hl7/fhir/r4b/model/MessageDefinition.java | 2 +- .../org/hl7/fhir/r4b/model/MessageHeader.java | 2 +- .../java/org/hl7/fhir/r4b/model/Meta.java | 2 +- .../hl7/fhir/r4b/model/MolecularSequence.java | 2 +- .../java/org/hl7/fhir/r4b/model/Money.java | 2 +- .../org/hl7/fhir/r4b/model/NamingSystem.java | 430 +- .../org/hl7/fhir/r4b/model/Narrative.java | 2 +- .../hl7/fhir/r4b/model/NutritionOrder.java | 2 +- .../hl7/fhir/r4b/model/NutritionProduct.java | 2 +- .../org/hl7/fhir/r4b/model/Observation.java | 2 +- .../fhir/r4b/model/ObservationDefinition.java | 2 +- .../fhir/r4b/model/OperationDefinition.java | 138 +- .../hl7/fhir/r4b/model/OperationOutcome.java | 2 +- .../org/hl7/fhir/r4b/model/Organization.java | 2 +- .../r4b/model/OrganizationAffiliation.java | 2 +- .../r4b/model/PackagedProductDefinition.java | 2 +- .../fhir/r4b/model/ParameterDefinition.java | 2 +- .../org/hl7/fhir/r4b/model/Parameters.java | 2 +- .../java/org/hl7/fhir/r4b/model/Patient.java | 2 +- .../org/hl7/fhir/r4b/model/PaymentNotice.java | 2 +- .../fhir/r4b/model/PaymentReconciliation.java | 2 +- .../java/org/hl7/fhir/r4b/model/Period.java | 2 +- .../java/org/hl7/fhir/r4b/model/Person.java | 2 +- .../hl7/fhir/r4b/model/PlanDefinition.java | 2 +- .../org/hl7/fhir/r4b/model/Population.java | 2 +- .../org/hl7/fhir/r4b/model/Practitioner.java | 2 +- .../hl7/fhir/r4b/model/PractitionerRole.java | 2 +- .../org/hl7/fhir/r4b/model/Procedure.java | 2 +- .../fhir/r4b/model/ProdCharacteristic.java | 2 +- .../hl7/fhir/r4b/model/ProductShelfLife.java | 2 +- .../org/hl7/fhir/r4b/model/Provenance.java | 2 +- .../java/org/hl7/fhir/r4b/model/Quantity.java | 2 +- .../org/hl7/fhir/r4b/model/Questionnaire.java | 2 +- .../fhir/r4b/model/QuestionnaireResponse.java | 2 +- .../java/org/hl7/fhir/r4b/model/Range.java | 2 +- .../java/org/hl7/fhir/r4b/model/Ratio.java | 2 +- .../org/hl7/fhir/r4b/model/RatioRange.java | 2 +- .../org/hl7/fhir/r4b/model/Reference.java | 2 +- .../r4b/model/RegulatedAuthorization.java | 2 +- .../hl7/fhir/r4b/model/RelatedArtifact.java | 2 +- .../org/hl7/fhir/r4b/model/RelatedPerson.java | 2 +- .../org/hl7/fhir/r4b/model/RequestGroup.java | 2 +- .../fhir/r4b/model/ResearchDefinition.java | 4 +- .../r4b/model/ResearchElementDefinition.java | 4 +- .../org/hl7/fhir/r4b/model/ResearchStudy.java | 2 +- .../hl7/fhir/r4b/model/ResearchSubject.java | 2 +- .../java/org/hl7/fhir/r4b/model/Resource.java | 2 +- .../hl7/fhir/r4b/model/ResourceFactory.java | 2 +- .../org/hl7/fhir/r4b/model/ResourceType.java | 2 +- .../hl7/fhir/r4b/model/RiskAssessment.java | 2 +- .../org/hl7/fhir/r4b/model/SampledData.java | 2 +- .../java/org/hl7/fhir/r4b/model/Schedule.java | 2 +- .../hl7/fhir/r4b/model/SearchParameter.java | 187 +- .../hl7/fhir/r4b/model/ServiceRequest.java | 2 +- .../org/hl7/fhir/r4b/model/Signature.java | 2 +- .../java/org/hl7/fhir/r4b/model/Slot.java | 2 +- .../java/org/hl7/fhir/r4b/model/Specimen.java | 2 +- .../fhir/r4b/model/SpecimenDefinition.java | 2 +- .../fhir/r4b/model/StructureDefinition.java | 2 +- .../org/hl7/fhir/r4b/model/StructureMap.java | 2 +- .../org/hl7/fhir/r4b/model/Subscription.java | 2 +- .../fhir/r4b/model/SubscriptionStatus.java | 2 +- .../hl7/fhir/r4b/model/SubscriptionTopic.java | 2 +- .../org/hl7/fhir/r4b/model/Substance.java | 2 +- .../fhir/r4b/model/SubstanceDefinition.java | 2 +- .../hl7/fhir/r4b/model/SupplyDelivery.java | 2 +- .../org/hl7/fhir/r4b/model/SupplyRequest.java | 2 +- .../java/org/hl7/fhir/r4b/model/Task.java | 2 +- .../r4b/model/TerminologyCapabilities.java | 63 +- .../org/hl7/fhir/r4b/model/TestReport.java | 2 +- .../org/hl7/fhir/r4b/model/TestScript.java | 70 +- .../java/org/hl7/fhir/r4b/model/Timing.java | 2 +- .../hl7/fhir/r4b/model/TriggerDefinition.java | 2 +- .../org/hl7/fhir/r4b/model/UsageContext.java | 2 +- .../java/org/hl7/fhir/r4b/model/ValueSet.java | 2 +- .../fhir/r4b/model/VerificationResult.java | 2 +- .../fhir/r4b/model/VisionPrescription.java | 2 +- 202 files changed, 6018 insertions(+), 5691 deletions(-) diff --git a/org.hl7.fhir.core.generator/.classpath b/org.hl7.fhir.core.generator/.classpath index ec8799475..1f82964cb 100644 --- a/org.hl7.fhir.core.generator/.classpath +++ b/org.hl7.fhir.core.generator/.classpath @@ -1,15 +1,15 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/org.hl7.fhir.core.generator/configuration/configuration.ini b/org.hl7.fhir.core.generator/configuration/configuration.ini index 36bb37aa5..be42a0918 100644 --- a/org.hl7.fhir.core.generator/configuration/configuration.ini +++ b/org.hl7.fhir.core.generator/configuration/configuration.ini @@ -51,4 +51,49 @@ ValueSet.compose.include.concept.designation = ConceptReferenceDesignation CodeSystem.concept.designation = ConceptDefinitionDesignation [no-enum] -http://hl7.org/fhir/ValueSet/resource-types=true \ No newline at end of file +http://hl7.org/fhir/ValueSet/resource-types=true + +[R4B.CanonicalResources] +ActivityDefinition=yesyes +CapabilityStatement=yes +Citation=yes +CodeSystem=yes +CompartmentDefinition=yes +ConceptMap=yes +EventDefinition=yes +;Evidence=yes +;EvidenceReport=yes +;EvidenceVariable=yes +ExampleScenario=yes +GraphDefinition=yes +ImplementationGuide=yes +Library=yes +Measure=yes +MessageDefinition=yes +NamingSystem=yes +OperationDefinition=yes +PlanDefinition=yes +Questionnaire=yes +ResearchDefinition=yes +ResearchElementDefinition=yes +SearchParameter=yes +StructureDefinition=yes +StructureMap=yes +;SubscriptionTopic=yes +TerminologyCapabilities=yes +TestScript=yes +ValueSet=yes + +[R4B.NullImplementation] +CapabilityStatement=identifier[]:Identifier +GraphDefinition=copyright:String|MarkdownType,identifier[]:Identifier,title:String|StringType +CompartmentDefinition=copyright:String|MarkdownType,identifier[]:Identifier,title:String|StringType,jurisdiction[]:CodeableConcept +;ConceptMap=identifier[]:Identifier +TerminologyCapabilities=identifier[]:Identifier +;TestScript=identifier[]:Identifier +SearchParameter=copyright:String|MarkdownType,identifier[]:Identifier,title:String|StringType +NamingSystem=purpose:String|MarkdownType,copyright:String|MarkdownType,url:String|UriType,experimental:boolean|BooleanType,version:String|StringType,identifier[]:Identifier,title:String|StringType +OperationDefinition=copyright:String|MarkdownType,identifier[]:Identifier +ImplementationGuide=purpose:String|MarkdownType,identifier[]:Identifier +ExampleScenario=description:String|MarkdownType,title:String|StringType + diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java index 37a64b79a..ae2ce0200 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java @@ -18,6 +18,7 @@ import org.hl7.fhir.r5.model.Enumerations.BindingStrength; import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; import org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent; +import org.hl7.fhir.r5.utils.ToolingExtensions; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.VersionUtilities; diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaBaseGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaBaseGenerator.java index 6ce0560dc..fb096e88e 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaBaseGenerator.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaBaseGenerator.java @@ -45,7 +45,9 @@ import org.hl7.fhir.r5.model.Enumerations.BindingStrength; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; import org.hl7.fhir.r5.model.ValueSet; import org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent; +import org.hl7.fhir.r5.utils.ToolingExtensions; import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.VersionUtilities; public class JavaBaseGenerator extends OutputStreamWriter { @@ -287,7 +289,14 @@ public class JavaBaseGenerator extends OutputStreamWriter { } - protected ElementDefinition matchingInheritedElement(List children, ElementDefinition m) { + protected ElementDefinition matchingInheritedElement(List children, ElementDefinition m, String name) { + if (VersionUtilities.isR4BVer(version)) { + if (m.getPath().endsWith(".identifier") && Utilities.charCount(m.getPath(), '.') == 1 && !Utilities.noString(config.getIni().getStringProperty("R4B.CanonicalResources", name))) { + ElementDefinition inh = new ElementDefinition(); + inh.setMax("*"); + return inh; + } + } if (children == null) { return null; } diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserJsonGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserJsonGenerator.java index b99fe76c0..483427eaa 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserJsonGenerator.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserJsonGenerator.java @@ -158,7 +158,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator { parser.append(" protected void "+pn+"Properties(JsonObject json, "+stn+" res) throws IOException, FHIRFormatError {\r\n"); parser.append(" parse"+ti.getAncestorName()+"Properties(json, res);\r\n"); for (ElementDefinition e : ti.getChildren()) { - genElementParser(analysis, ti, e, bUseOwner, matchingInheritedElement(ti.getInheritedChildren(), e)); + genElementParser(analysis, ti, e, bUseOwner, matchingInheritedElement(ti.getInheritedChildren(), e, analysis.getName())); } parser.append(" }\r\n\r\n"); } @@ -349,7 +349,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator { composer.append(" protected void compose"+tn+"Properties("+stn+" element) throws IOException {\r\n"); composer.append(" compose"+ti.getAncestorName()+"Properties(element);\r\n"); for (ElementDefinition e : ti.getChildren()) { - genElementComposer(analysis, analysis.getRootType(), e, matchingInheritedElement(ti.getInheritedChildren(), e)); + genElementComposer(analysis, analysis.getRootType(), e, matchingInheritedElement(ti.getInheritedChildren(), e, analysis.getName())); } composer.append(" }\r\n\r\n"); } diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserRdfGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserRdfGenerator.java index 2a3d85285..c78dab9bb 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserRdfGenerator.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserRdfGenerator.java @@ -117,7 +117,7 @@ public class JavaParserRdfGenerator extends JavaBaseGenerator { composer.append(" decorateCodeableConcept(t, element);\r\n"); for (ElementDefinition ed : ti.getChildren()) { - genElement(analysis, ti, ed, matchingInheritedElement(ti.getInheritedChildren(), ed)); + genElement(analysis, ti, ed, matchingInheritedElement(ti.getInheritedChildren(), ed, analysis.getName())); } composer.append(" }\r\n\r\n"); } diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserXmlGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserXmlGenerator.java index 8c6340313..ab7d3f748 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserXmlGenerator.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserXmlGenerator.java @@ -157,7 +157,7 @@ public class JavaParserXmlGenerator extends JavaBaseGenerator { boolean first = true; for (ElementDefinition ed : ti.getChildren()) { if (!ed.hasRepresentation(PropertyRepresentation.XMLATTR)) { - genElement(analysis, ti, ed, matchingInheritedElement(ti.getInheritedChildren(), ed), first); + genElement(analysis, ti, ed, matchingInheritedElement(ti.getInheritedChildren(), ed, analysis.getName()), first); first = false; } } @@ -307,7 +307,7 @@ public class JavaParserXmlGenerator extends JavaBaseGenerator { for (ElementDefinition ed : ti.getChildren()) { if (!ed.hasRepresentation(PropertyRepresentation.XMLATTR)) { - genElementCompose(analysis, ti, ed, matchingInheritedElement(ti.getInheritedChildren(), ed)); + genElementCompose(analysis, ti, ed, matchingInheritedElement(ti.getInheritedChildren(), ed, analysis.getName())); } } composer.append(" }\r\n\r\n"); diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaResourceGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaResourceGenerator.java index c43bd70a3..8b82377dd 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 @@ -66,6 +66,7 @@ import org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent; import org.hl7.fhir.r5.utils.TypesUtilities; import org.hl7.fhir.utilities.CommaSeparatedStringBuilder; import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.VersionUtilities; /* @@ -157,7 +158,11 @@ public class JavaResourceGenerator extends JavaBaseGenerator { jdoc("", replaceTitle(analysis.getName(), analysis.getStructure().getDescription())); TypeInfo ti = analysis.getRootType(); boolean hasChildren = ti.getChildren().size() > 0; - String hierarchy = analysis.getAncestor() != null ? "extends "+analysis.getAncestor().getName() : ""; + String superName = analysis.getAncestor() == null ? null : analysis.getAncestor().getName(); + if (VersionUtilities.isR4BVer(version) && !Utilities.noString(config.getIni().getStringProperty("R4B.CanonicalResources", analysis.getName()))) { + superName = "CanonicalResource"; + } + String hierarchy = analysis.getAncestor() != null ? "extends "+superName : ""; if (clss == JavaGenClass.Resource) { if (!analysis.isAbstract()) { @@ -168,8 +173,12 @@ public class JavaResourceGenerator extends JavaBaseGenerator { hierarchy = hierarchy + " implements ICompositeType"; } - if (config.getIni().hasProperty("hierarchy", analysis.getName()) && analysis.getAncestor() != null) { - hierarchy = config.getIni().getStringProperty("hierarchy", analysis.getName()).replace("{{super}}", analysis.getAncestor().getName()); + if (config.getIni().hasProperty("hierarchy", analysis.getName()) ) { + String h = config.getIni().getStringProperty("hierarchy", analysis.getName()); + if (analysis.getAncestor() != null) { + h = h.replace("{{super}}", superName); + } + hierarchy = h; } write("public "+(analysis.isAbstract()? "abstract " : "")+"class "+analysis.getClassName()+" "+hierarchy.trim()+" {\r\n"); @@ -209,7 +218,7 @@ public class JavaResourceGenerator extends JavaBaseGenerator { if (analysis.isInterface()) { generateAbstractAccessors(analysis, ti, e, " "); } else { - generateAccessors(analysis, ti, e, " ", matchingInheritedElement(ti.getInheritedChildren(), e)); + generateAccessors(analysis, ti, e, " ", matchingInheritedElement(ti.getInheritedChildren(), e, analysis.getName())); } } if (!analysis.isInterface() && ti.getInheritedChildren() != null) { @@ -250,7 +259,7 @@ public class JavaResourceGenerator extends JavaBaseGenerator { write(" return ResourceType."+analysis.getName()+";\r\n"); write(" }\r\n"); write("\r\n"); - } else if (analysis.isAbstract() && analysis.getAncestor() != null && Utilities.noString(analysis.getAncestor().getName())) { + } else if (analysis.isAbstract() && analysis.getAncestor() != null && Utilities.noString(superName)) { write("\r\n"); write(" @Override\r\n"); write(" public String getIdBase() {\r\n"); @@ -262,7 +271,7 @@ public class JavaResourceGenerator extends JavaBaseGenerator { write(" setId(value);\r\n"); write(" }\r\n"); write(" public abstract ResourceType getResourceType();\r\n"); - } else if (analysis.isAbstract() && analysis.getAncestor() != null && Utilities.noString(analysis.getAncestor().getName())) { + } else if (analysis.isAbstract() && analysis.getAncestor() != null && Utilities.noString(superName)) { write(" @Override\r\n"); write(" public String getIdBase() {\r\n"); write(" return getId();\r\n"); @@ -329,6 +338,110 @@ public class JavaResourceGenerator extends JavaBaseGenerator { } } + if (VersionUtilities.isR4BVer(version)) { + String extras = config.getIni().getStringProperty("R4B.NullImplementation", analysis.getName()); + if (!Utilities.noString(extras)) { + for (String n : extras.split("\\,")) { + String t = n.substring(n.indexOf(":")+1); + n = n.substring(0, n.indexOf(":")); + if (n.endsWith("[]")) { + n = Utilities.capitalize(n.substring(0, n.length()-2)); + write(" @Override\r\n"); + write(" public List<"+t+"> get"+n+"() {\r\n"); + write(" return new ArrayList<>();\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public CanonicalResource set"+n+"(List<"+t+"> the"+n+") {\r\n"); + write(" return this;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public boolean has"+n+"() {\r\n"); + write(" return false;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public "+t+" add"+n+"() {\r\n"); + write(" return null;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public CanonicalResource add"+n+"("+t+" t) {\r\n"); + write(" return null;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public "+t+" get"+n+"FirstRep() {\r\n"); + write(" return new "+t+"();\r\n"); + write(" }\r\n"); + write(" \r\n"); + } else if (t.contains("|")) { + n = Utilities.capitalize(n); + String t1 = t.substring(0, t.indexOf("|")); + String t2 = t.substring(t.indexOf("|")+1); + write(" @Override\r\n"); + write(" public "+t1+" get"+n+"() {\r\n"); + if ("boolean".equals(t1)) { + write(" return false;\r\n"); + } else { + write(" return new "+t1+"();\r\n"); + } + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public "+t2+" get"+n+"Element() {\r\n"); + write(" return new "+t2+"();\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public CanonicalResource set"+n+"("+t1+" the"+n+") {\r\n"); + write(" return this;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public CanonicalResource set"+n+"Element("+t2+" the"+n+") {\r\n"); + write(" return this;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public boolean has"+n+"() {\r\n"); + write(" return false;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public boolean has"+n+"Element() {\r\n"); + write(" return false;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" \r\n"); + } else { + n = Utilities.capitalize(n); + write(" @Override\r\n"); + write(" public "+t+" get"+n+"() {\r\n"); + write(" return new "+t+"();\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public CanonicalResource set"+n+"("+t+" the"+n+") {\r\n"); + write(" return this;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public boolean has"+n+"() {\r\n"); + write(" return false;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" @Override\r\n"); + write(" public boolean has"+n+"Element() {\r\n"); + write(" return false;\r\n"); + write(" }\r\n"); + write(" \r\n"); + write(" \r\n"); + } + } + } + } if (config.getAdornments().containsKey(analysis.getClassName())) { write("// Manual code (from Configuration.txt):\r\n"); write(config.getAdornments().get(analysis.getClassName())+"\r\n"); @@ -745,7 +858,7 @@ private void generatePropertyMaker(Analysis analysis, TypeInfo ti, String indent write(indent+" switch (hash) {\r\n"); for (ElementDefinition e : children) { if (!isInterface) { - ElementDefinition inh = inheritedChildren == null ? null : matchingInheritedElement(inheritedChildren, e); + ElementDefinition inh = inheritedChildren == null ? null : matchingInheritedElement(inheritedChildren, e, analysis.getName()); String tn = e.getUserString("java.type"); if (!e.typeSummary().equals("xhtml")) { genPropMaker(indent, e, tn, e.getName(), inh); diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/JavaCoreGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/JavaCoreGenerator.java index 17baf519e..38c6b64f8 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/JavaCoreGenerator.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/JavaCoreGenerator.java @@ -83,19 +83,19 @@ public class JavaCoreGenerator { System.out.println("Generate Model"); System.out.println(" .. Constants"); - JavaConstantsGenerator cgen = new JavaConstantsGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", jid, "model", "Constants.java")), master, config, date, npm.version(), jid); + JavaConstantsGenerator cgen = new JavaConstantsGenerator(new FileOutputStream(Utilities.path(dest, "src", "main", "java", "org", "hl7", "fhir", jid, "model", "Constants.java")), master, config, date, npm.version(), jid); cgen.generate(); cgen.close(); System.out.println(" .. Enumerations"); - JavaEnumerationsGenerator egen = new JavaEnumerationsGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", jid, "model", "Enumerations.java")), master, config, date, npm.version(), jid); + JavaEnumerationsGenerator egen = new JavaEnumerationsGenerator(new FileOutputStream(Utilities.path(dest, "src", "main", "java", "org", "hl7", "fhir", jid, "model", "Enumerations.java")), master, config, date, npm.version(), jid); egen.generate(); egen.close(); - JavaFactoryGenerator fgen = new JavaFactoryGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", jid, "model", "ResourceFactory.java")), master, config, date, npm.version(), jid); - JavaTypeGenerator tgen = new JavaTypeGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", jid, "model", "ResourceType.java")), master, config, date, npm.version(), jid); - JavaParserJsonGenerator jgen = new JavaParserJsonGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", jid, "formats", "JsonParser.java")), master, config, date, npm.version(), jid); - JavaParserXmlGenerator xgen = new JavaParserXmlGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", jid, "formats", "XmlParser.java")), master, config, date, npm.version(), jid); - JavaParserRdfGenerator rgen = new JavaParserRdfGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", jid, "formats", "RdfParser.java")), master, config, date, npm.version(), jid); + JavaFactoryGenerator fgen = new JavaFactoryGenerator(new FileOutputStream(Utilities.path(dest, "src", "main", "java", "org", "hl7", "fhir", jid, "model", "ResourceFactory.java")), master, config, date, npm.version(), jid); + JavaTypeGenerator tgen = new JavaTypeGenerator(new FileOutputStream(Utilities.path(dest, "src", "main", "java", "org", "hl7", "fhir", jid, "model", "ResourceType.java")), master, config, date, npm.version(), jid); + JavaParserJsonGenerator jgen = new JavaParserJsonGenerator(new FileOutputStream(Utilities.path(dest, "src", "main", "java", "org", "hl7", "fhir", jid, "formats", "JsonParser.java")), master, config, date, npm.version(), jid); + JavaParserXmlGenerator xgen = new JavaParserXmlGenerator(new FileOutputStream(Utilities.path(dest, "src", "main", "java", "org", "hl7", "fhir", jid, "formats", "XmlParser.java")), master, config, date, npm.version(), jid); + JavaParserRdfGenerator rgen = new JavaParserRdfGenerator(new FileOutputStream(Utilities.path(dest, "src", "main", "java", "org", "hl7", "fhir", jid, "formats", "RdfParser.java")), master, config, date, npm.version(), jid); if (VersionUtilities.isR4BVer(version)) { StructureDefinition sd = master.getStructures().get("http://hl7.org/fhir/StructureDefinition/Element"); @@ -161,7 +161,7 @@ public class JavaCoreGenerator { Analyser jca = new Analyser(master, config, version); Analysis analysis = jca.analyse(sd); - String fn = Utilities.path(dest, "src", "org", "hl7", "fhir", jid, "model", name+".java"); + String fn = Utilities.path(dest, "src", "main", "java", "org", "hl7", "fhir", jid, "model", name+".java"); JavaResourceGenerator gen = new JavaResourceGenerator(new FileOutputStream(fn), master, config, date, npm.version(), jid); gen.generate(analysis); gen.close(); diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/JsonParser.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/JsonParser.java index f6d4ad5b8..342bea740 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/JsonParser.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/JsonParser.java @@ -30,7 +30,7 @@ package org.hl7.fhir.r4b.formats; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Wed, Dec 29, 2021 07:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild @@ -8178,7 +8178,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) - res.setIdentifier(parseIdentifier(getJObject(json, "identifier"))); + res.addIdentifier(parseIdentifier(getJObject(json, "identifier"))); if (json.has("version")) res.setVersionElement(parseString(json.get("version").getAsString())); if (json.has("_version")) @@ -27442,7 +27442,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) - res.setIdentifier(parseIdentifier(getJObject(json, "identifier"))); + res.addIdentifier(parseIdentifier(getJObject(json, "identifier"))); if (json.has("version")) res.setVersionElement(parseString(json.get("version").getAsString())); if (json.has("_version")) @@ -59067,7 +59067,7 @@ public class JsonParser extends JsonParserBase { composeUriExtras("url", element.getUrlElement(), false); } if (element.hasIdentifier()) { - composeIdentifier("identifier", element.getIdentifier()); + composeIdentifier("identifier", element.getIdentifierFirstRep()); } if (element.hasVersionElement()) { composeStringCore("version", element.getVersionElement(), false); diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/RdfParser.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/RdfParser.java index 7dc5b5039..bb33adb4e 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/RdfParser.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/RdfParser.java @@ -31,7 +31,7 @@ package org.hl7.fhir.r4b.formats; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Wed, Dec 29, 2021 07:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild @@ -21757,7 +21757,7 @@ public class RdfParser extends RdfParserBase { composeUri(t, "TestScript", "url", element.getUrlElement(), -1); } if (element.hasIdentifier()) { - composeIdentifier(t, "TestScript", "identifier", element.getIdentifier(), -1); + composeIdentifier(t, "TestScript", "identifier", element.getIdentifierFirstRep(), -1); } if (element.hasVersionElement()) { composeString(t, "TestScript", "version", element.getVersionElement(), -1); diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/XmlParser.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/XmlParser.java index 09296c1b6..3778fc6b2 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/XmlParser.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/formats/XmlParser.java @@ -30,7 +30,7 @@ package org.hl7.fhir.r4b.formats; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Wed, Dec 29, 2021 07:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild @@ -7336,7 +7336,7 @@ public class XmlParser extends XmlParserBase { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("url")) { res.setUrlElement(parseUri(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { - res.setIdentifier(parseIdentifier(xpp)); + res.addIdentifier(parseIdentifier(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("version")) { res.setVersionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) { @@ -23746,7 +23746,7 @@ public class XmlParser extends XmlParserBase { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("url")) { res.setUrlElement(parseUri(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { - res.setIdentifier(parseIdentifier(xpp)); + res.addIdentifier(parseIdentifier(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("version")) { res.setVersionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) { @@ -50344,7 +50344,7 @@ public class XmlParser extends XmlParserBase { composeUri("url", element.getUrlElement()); } if (element.hasIdentifier()) { - composeIdentifier("identifier", element.getIdentifier()); + composeIdentifier("identifier", element.getIdentifierFirstRep()); } if (element.hasVersionElement()) { composeString("version", element.getVersionElement()); 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 ea828d35c..4be4dcf39 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 e6d675a5f..6bf7d8ab5 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -51,7 +51,7 @@ import ca.uhn.fhir.model.api.annotation.Block; * This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context. */ @ResourceDef(name="ActivityDefinition", profile="http://hl7.org/fhir/StructureDefinition/ActivityDefinition") -public class ActivityDefinition extends DomainResource { +public class ActivityDefinition extends CanonicalResource { public enum RequestResourceType { /** 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 573b156ab..7ea306398 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 ab07f4281..a260c6f15 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 60c9b6e34..3363bd1e6 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Age.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Age.java index 199a60404..716377ca3 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Age.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Age.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 68c7a7a35..65ddfbe13 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 198700b9c..0e59160a0 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 0aa0ee3fa..f475c8ecd 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 95306d509..2c190b191 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 adcac4800..b5548ce59 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 041a11312..513c8deae 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BackboneElement.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BackboneElement.java index 53663f56c..34dd44e82 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BackboneElement.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/BackboneElement.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 9f92c6dd1..450e87f19 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 7a03374be..8fce409c5 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 e65cce9e0..2bc167d3a 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 b54f6b32d..76cdf9511 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 75f1c943b..00d2ebbd7 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 e1d2d8557..e17fb448c 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -8717,39 +8717,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo return ResourceType.CapabilityStatement; } - @Override - public List getIdentifier() { - return new ArrayList<>(); - } - - @Override - public CanonicalResource setIdentifier(List theIdentifier) { - return this; - } - - @Override - public boolean hasIdentifier() { - return false; - } - - @Override - public Identifier addIdentifier() { - return null; - } - - @Override - public CanonicalResource addIdentifier(Identifier t) { - return null; - } - - @Override - public Identifier getIdentifierFirstRep() { - return null; - } - -// Manual code (from Configuration.txt): - -// end addition /** * Search parameter: fhirversion *

@@ -9662,5 +9629,39 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + @Override + public List getIdentifier() { + return new ArrayList<>(); + } + + @Override + public CanonicalResource setIdentifier(List theIdentifier) { + return this; + } + + @Override + public boolean hasIdentifier() { + return false; + } + + @Override + public Identifier addIdentifier() { + return null; + } + + @Override + public CanonicalResource addIdentifier(Identifier t) { + return null; + } + + @Override + public Identifier getIdentifierFirstRep() { + return new Identifier(); + } + +// Manual code (from Configuration.txt): + +// end addition + } 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 10caf78b7..2f941e722 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 82a90f4a6..3b32f5d75 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 00a18dcc0..d72098e6c 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 67f933405..b388e2f62 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 0e49bf3a4..b25b6e99f 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 c23618619..e679add73 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -51,7 +51,7 @@ import ca.uhn.fhir.model.api.annotation.Block; * The Citation Resource enables reference to any knowledge artifact for purposes of identification and attribution. The Citation Resource supports existing reference structures and developing publication practices such as versioning, expressing complex contributorship roles, and referencing computable resources. */ @ResourceDef(name="Citation", profile="http://hl7.org/fhir/StructureDefinition/Citation") -public class Citation extends DomainResource { +public class Citation extends CanonicalResource { @Block() public static class CitationClassificationComponent extends BackboneElement implements IBaseBackboneElement { 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 196fac585..24bcb3107 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 cb33501eb..125167d6d 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 ccc2899ce..fdc2f8a1a 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 7f75ec303..57b8ca1a9 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 3951db9f3..6344e4bd7 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 92b70c274..7c4248247 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeableReference.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeableReference.java index 6e709c5b9..276d3ec01 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeableReference.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/CodeableReference.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 795f0a865..1e2a66075 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 67b7ba5bd..2d54ab4ed 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 c42507328..202039c62 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 8635669d5..00c4bc71f 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Wed, Dec 29, 2021 07:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -2177,130 +2177,132 @@ public class CompartmentDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + @Override + public String getCopyright() { + return new String(); + } + + @Override + public MarkdownType getCopyrightElement() { + return new MarkdownType(); + } + + @Override + public CanonicalResource setCopyright(String theCopyright) { + return this; + } + + @Override + public CanonicalResource setCopyrightElement(MarkdownType theCopyright) { + return this; + } + + @Override + public boolean hasCopyright() { + return false; + } + + @Override + public boolean hasCopyrightElement() { + return false; + } + + + @Override + public List getIdentifier() { + return new ArrayList<>(); + } + + @Override + public CanonicalResource setIdentifier(List theIdentifier) { + return this; + } + + @Override + public boolean hasIdentifier() { + return false; + } + + @Override + public Identifier addIdentifier() { + return null; + } + + @Override + public CanonicalResource addIdentifier(Identifier t) { + return null; + } + + @Override + public Identifier getIdentifierFirstRep() { + return new Identifier(); + } + + @Override + public String getTitle() { + return new String(); + } + + @Override + public StringType getTitleElement() { + return new StringType(); + } + + @Override + public CanonicalResource setTitle(String theTitle) { + return this; + } + + @Override + public CanonicalResource setTitleElement(StringType theTitle) { + return this; + } + + @Override + public boolean hasTitle() { + return false; + } + + @Override + public boolean hasTitleElement() { + return false; + } + + + @Override + public List getJurisdiction() { + return new ArrayList<>(); + } + + @Override + public CanonicalResource setJurisdiction(List theJurisdiction) { + return this; + } + + @Override + public boolean hasJurisdiction() { + return false; + } + + @Override + public CodeableConcept addJurisdiction() { + return null; + } + + @Override + public CanonicalResource addJurisdiction(CodeableConcept t) { + return null; + } + + @Override + public CodeableConcept getJurisdictionFirstRep() { + return new CodeableConcept(); + } + // Manual code (from Configuration.txt): public boolean supportsCopyright() { return false; } - - @Override - public List getIdentifier() { - return new ArrayList<>(); - } - - @Override - public CanonicalResource setIdentifier(List theIdentifier) { - return this; - } - - @Override - public boolean hasIdentifier() { - return false; - } - - @Override - public Identifier addIdentifier() { - return new Identifier(); - } - - @Override - public CanonicalResource addIdentifier(Identifier t) { - return this; - } - - @Override - public Identifier getIdentifierFirstRep() { - return new Identifier(); - } - - @Override - public StringType getTitleElement() { - return new StringType(); - } - - @Override - public boolean hasTitleElement() { - return false; - } - - @Override - public boolean hasTitle() { - return false; - } - - @Override - public CanonicalResource setTitleElement(StringType value) { - return this; - } - - @Override - public String getTitle() { - return null; - } - - @Override - public CanonicalResource setTitle(String value) { - return this; - } - - @Override - public List getJurisdiction() { - return new ArrayList<>(); - } - - @Override - public CanonicalResource setJurisdiction(List theJurisdiction) { - return this; - } - - @Override - public boolean hasJurisdiction() { - return false; - } - - @Override - public CodeableConcept addJurisdiction() { - return new CodeableConcept(); - } - - @Override - public CanonicalResource addJurisdiction(CodeableConcept t) { - return this; - } - - @Override - public CodeableConcept getJurisdictionFirstRep() { - return new CodeableConcept(); - } - - @Override - public MarkdownType getCopyrightElement() { - return new MarkdownType(); - } - - @Override - public boolean hasCopyrightElement() { - return false; - } - - @Override - public boolean hasCopyright() { - return false; - } - - @Override - public CanonicalResource setCopyrightElement(MarkdownType value) { - return this; - } - - @Override - public String getCopyright() { - return null; - } - - @Override - public CanonicalResource setCopyright(String value) { - return this; - } // end addition 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 f15e66307..fd3c7dde0 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 5cd86a040..92de5b9a2 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -2784,32 +2784,70 @@ public class ConceptMap extends CanonicalResource { return this; } + /** + * only one on this implementation + */ + @Override + public int getIdentifierMax() { + return 1; + } /** * @return {@link #identifier} (A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.) */ public List getIdentifier() { - if (this.identifier == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ConceptMap.identifier"); - else if (Configuration.doAutoCreate()) - this.identifier = new Identifier(); // cc - List result = new ArrayList<>(); - result.add(this.identifier); - return result; + List list = new ArrayList(); + if (this.identifier == null) { + list.add(identifier); + } + return list; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ConceptMap setIdentifier(List theIdentifier) { + if (theIdentifier.size() == 0) { + this.identifier = null; + } else if (theIdentifier.size() == 1) { + this.identifier = theIdentifier.get(0); + } else { + throw new Error("Cannot have more than one ConceptMap.identifier"); + } + return this; } public boolean hasIdentifier() { return this.identifier != null && !this.identifier.isEmpty(); } - /** - * @param value {@link #identifier} (A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.) - */ - public ConceptMap setIdentifier(Identifier value) { - this.identifier = value; + public Identifier addIdentifier() { //3 + if (this.identifier == null) { + this.identifier = new Identifier(); + } else { + throw new Error("Cannot have more than one ConceptMap.identifier"); + } + return this.identifier; + } + + public ConceptMap addIdentifier(Identifier t) { //3 + if (this.identifier == null) { + this.identifier = t; + } else { + throw new Error("Cannot have more than one ConceptMap.identifier"); + } return this; } + /** + * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} + */ + public Identifier getIdentifierFirstRep() { + if (identifier == null) { + addIdentifier(); + } + return identifier; + } + /** * @return {@link #version} (The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value */ @@ -3797,7 +3835,7 @@ public class ConceptMap extends CanonicalResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 116079: return getUrlElement(); - case -1618432855: return getIdentifier().get(0); + case -1618432855: return getIdentifierFirstRep(); case 351608024: return getVersionElement(); case 3373707: return getNameElement(); case 110371416: return getTitleElement(); @@ -4011,32 +4049,6 @@ public class ConceptMap extends CanonicalResource { return ResourceType.ConceptMap; } - @Override - public CanonicalResource setIdentifier(List theIdentifier) { - if (theIdentifier.size() == 0) { - this.identifier = null; - } else { - this.identifier = theIdentifier.get(0); - } - return this; - } - - @Override - public Identifier addIdentifier() { - return getIdentifierFirstRep(); - } - - @Override - public CanonicalResource addIdentifier(Identifier t) { - this.identifier = t; - return this; - } - - @Override - public Identifier getIdentifierFirstRep() { - return getIdentifier().get(0); - } - /** * Search parameter: dependson *

@@ -5037,5 +5049,6 @@ public class ConceptMap extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + } 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 f9d4bca48..2e740f77d 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 eefe8c958..604d74cc0 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Constants.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Constants.java index f33629057..70dee2e57 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Constants.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Constants.java @@ -30,7 +30,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-snapshot1 @@ -41,6 +41,6 @@ public class Constants { public final static String VERSION = "4.3.0-snapshot1"; public final static String VERSION_MM = "4.3"; - public final static String DATE = "Fri, Dec 31, 2021 05:58+1100"; + public final static String DATE = "Fri, Apr 22, 2022 11:20+1000"; public final static String URI_REGEX = "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdministrableProductDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Citation|Claim|ClaimResponse|ClinicalImpression|ClinicalUseDefinition|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceReport|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|Ingredient|InsurancePlan|Invoice|Library|Linkage|List|Location|ManufacturedItemDefinition|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProductDefinition|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|NutritionProduct|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|PackagedProductDefinition|Parameters|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RegulatedAuthorization|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|SubscriptionStatus|SubscriptionTopic|Substance|SubstanceDefinition|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?"; } \ No newline at end of file diff --git a/org.hl7.fhir.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 4815d9bdb..c8e5f3a58 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 b7f401f00..9c946ab63 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 57542e957..5f32f5fbd 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 d3b036192..8332c65f8 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Count.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Count.java index d82f8c967..8247ffdef 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Count.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Count.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 f0b769722..a478a145f 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 29dc4d153..7a912ddcb 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 d8e70e16e..a67aec9ef 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 3e007dedc..deadc0b4c 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DataType.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DataType.java index bc0669100..cc6dc374b 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DataType.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DataType.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 266884a96..7999f00d9 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 8039a30ed..78906095c 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 b6c80b0dd..7ded623ad 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 e5917ed31..8433d13ca 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 bcb423281..42d26deda 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 703c5d6a2..48d78e1fd 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 71668ff90..f27bed45f 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Distance.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Distance.java index 216806e5a..6fc8e8a9f 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Distance.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Distance.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 fb4c595ce..d9f5bd6b8 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 ad07e5d16..0e7eee18a 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DomainResource.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DomainResource.java index b4ab04507..2641a03d1 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DomainResource.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/DomainResource.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 a41a788df..6e9693650 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Duration.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Duration.java index 17b3be408..cc43ac20f 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Duration.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Duration.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 9d73ed94d..d27cd9742 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 4b00963c2..6294daa9d 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 e76eb965b..9488595eb 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 b02d9905d..ff49b77d4 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 2ecffe92e..35b8680d0 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 f3bdc60ec..4579fba84 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Enumerations.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Enumerations.java index 2910a183b..e2270b2e0 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Enumerations.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Enumerations.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import org.hl7.fhir.instance.model.api.*; 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 3d21e09fc..baf4a1557 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 b31c81c17..6bf8119d6 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -51,7 +51,7 @@ import ca.uhn.fhir.model.api.annotation.Block; * The EventDefinition resource provides a reusable description of when a particular event can occur. */ @ResourceDef(name="EventDefinition", profile="http://hl7.org/fhir/StructureDefinition/EventDefinition") -public class EventDefinition extends DomainResource { +public class EventDefinition extends CanonicalResource { /** * An absolute URI that is used to identify this event definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this event definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the event definition is stored on different servers. 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 8465a0732..a907315d5 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 72b7818fe..d9cbbc34a 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 5fd005500..c519a8b78 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 3335e5a96..a761f0605 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 @@ -4,19 +4,19 @@ package org.hl7.fhir.r4b.model; /* Copyright (c) 2011+, HL7, Inc. All rights reserved. - + Redistribution and use in source and binary forms, with or without modification, \ are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, this \ + + * Redistributions of source code must retain the above copyright notice, this \ list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, \ + * Redistributions in binary form must reproduce the above copyright notice, \ this list of conditions and the following disclaimer in the documentation \ and/or other materials provided with the distribution. - * Neither the name of HL7 nor the names of its contributors may be used to + * Neither the name of HL7 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. - + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \ @@ -27,9 +27,9 @@ package org.hl7.fhir.r4b.model; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \ POSSIBILITY OF SUCH DAMAGE. - */ + */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -53,2071 +53,4397 @@ import ca.uhn.fhir.model.api.annotation.Block; @ResourceDef(name="ExampleScenario", profile="http://hl7.org/fhir/StructureDefinition/ExampleScenario") public class ExampleScenario extends CanonicalResource { - public enum ExampleScenarioActorType { - /** - * A person. - */ - PERSON, - /** - * A system. - */ - ENTITY, - /** - * added to help the parsers with the generic types - */ - NULL; - public static ExampleScenarioActorType fromCode(String codeString) throws FHIRException { - if (codeString == null || "".equals(codeString)) - return null; - if ("person".equals(codeString)) - return PERSON; - if ("entity".equals(codeString)) - return ENTITY; - if (Configuration.isAcceptInvalidEnums()) - return null; - else - throw new FHIRException("Unknown ExampleScenarioActorType code '"+codeString+"'"); + public enum ExampleScenarioActorType { + /** + * A person. + */ + PERSON, + /** + * A system. + */ + ENTITY, + /** + * added to help the parsers with the generic types + */ + NULL; + public static ExampleScenarioActorType fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("person".equals(codeString)) + return PERSON; + if ("entity".equals(codeString)) + return ENTITY; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown ExampleScenarioActorType code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case PERSON: return "person"; + case ENTITY: return "entity"; + case NULL: return null; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case PERSON: return "http://hl7.org/fhir/examplescenario-actor-type"; + case ENTITY: return "http://hl7.org/fhir/examplescenario-actor-type"; + case NULL: return null; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case PERSON: return "A person."; + case ENTITY: return "A system."; + case NULL: return null; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case PERSON: return "Person"; + case ENTITY: return "System"; + case NULL: return null; + default: return "?"; + } + } } - public String toCode() { - switch (this) { - case PERSON: return "person"; - case ENTITY: return "entity"; - case NULL: return null; - default: return "?"; - } - } - public String getSystem() { - switch (this) { - case PERSON: return "http://hl7.org/fhir/examplescenario-actor-type"; - case ENTITY: return "http://hl7.org/fhir/examplescenario-actor-type"; - case NULL: return null; - default: return "?"; - } - } - public String getDefinition() { - switch (this) { - case PERSON: return "A person."; - case ENTITY: return "A system."; - case NULL: return null; - default: return "?"; - } - } - public String getDisplay() { - switch (this) { - case PERSON: return "Person"; - case ENTITY: return "System"; - case NULL: return null; - default: return "?"; - } - } - } public static class ExampleScenarioActorTypeEnumFactory implements EnumFactory { public ExampleScenarioActorType fromCode(String codeString) throws IllegalArgumentException { if (codeString == null || "".equals(codeString)) - if (codeString == null || "".equals(codeString)) - return null; - if ("person".equals(codeString)) - return ExampleScenarioActorType.PERSON; - if ("entity".equals(codeString)) - return ExampleScenarioActorType.ENTITY; - throw new IllegalArgumentException("Unknown ExampleScenarioActorType code '"+codeString+"'"); - } - public Enumeration fromType(Base code) throws FHIRException { - if (code == null) - return null; - if (code.isEmpty()) - return new Enumeration(this); - String codeString = ((PrimitiveType) code).asStringValue(); - if (codeString == null || "".equals(codeString)) - return null; - if ("person".equals(codeString)) - return new Enumeration(this, ExampleScenarioActorType.PERSON); - if ("entity".equals(codeString)) - return new Enumeration(this, ExampleScenarioActorType.ENTITY); - throw new FHIRException("Unknown ExampleScenarioActorType code '"+codeString+"'"); - } + if (codeString == null || "".equals(codeString)) + return null; + if ("person".equals(codeString)) + return ExampleScenarioActorType.PERSON; + if ("entity".equals(codeString)) + return ExampleScenarioActorType.ENTITY; + throw new IllegalArgumentException("Unknown ExampleScenarioActorType code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("person".equals(codeString)) + return new Enumeration(this, ExampleScenarioActorType.PERSON); + if ("entity".equals(codeString)) + return new Enumeration(this, ExampleScenarioActorType.ENTITY); + throw new FHIRException("Unknown ExampleScenarioActorType code '"+codeString+"'"); + } public String toCode(ExampleScenarioActorType code) { if (code == ExampleScenarioActorType.PERSON) return "person"; if (code == ExampleScenarioActorType.ENTITY) return "entity"; return "?"; - } + } public String toSystem(ExampleScenarioActorType code) { return code.getSystem(); + } } - } - @Block() - public static class ExampleScenarioActorComponent extends BackboneElement implements IBaseBackboneElement { - /** - * ID or acronym of actor. - */ - @Child(name = "actorId", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="ID or acronym of the actor", formalDefinition="ID or acronym of actor." ) - protected StringType actorId; + @Block() + public static class ExampleScenarioActorComponent extends BackboneElement implements IBaseBackboneElement { + /** + * ID or acronym of actor. + */ + @Child(name = "actorId", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="ID or acronym of the actor", formalDefinition="ID or acronym of actor." ) + protected StringType actorId; - /** - * The type of actor - person or system. - */ - @Child(name = "type", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="person | entity", formalDefinition="The type of actor - person or system." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/examplescenario-actor-type") - protected Enumeration type; + /** + * The type of actor - person or system. + */ + @Child(name = "type", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="person | entity", formalDefinition="The type of actor - person or system." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/examplescenario-actor-type") + protected Enumeration type; - /** - * The name of the actor as shown in the page. - */ - @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The name of the actor as shown in the page", formalDefinition="The name of the actor as shown in the page." ) - protected StringType name; + /** + * The name of the actor as shown in the page. + */ + @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The name of the actor as shown in the page", formalDefinition="The name of the actor as shown in the page." ) + protected StringType name; - /** - * The description of the actor. - */ - @Child(name = "description", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The description of the actor", formalDefinition="The description of the actor." ) - protected MarkdownType description; + /** + * The description of the actor. + */ + @Child(name = "description", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The description of the actor", formalDefinition="The description of the actor." ) + protected MarkdownType description; - private static final long serialVersionUID = 1348364162L; + private static final long serialVersionUID = 1348364162L; /** * Constructor */ - public ExampleScenarioActorComponent() { - super(); - } + public ExampleScenarioActorComponent() { + super(); + } /** * Constructor */ - public ExampleScenarioActorComponent(String actorId, ExampleScenarioActorType type) { - super(); - this.setActorId(actorId); - this.setType(type); - } - - /** - * @return {@link #actorId} (ID or acronym of actor.). This is the underlying object with id, value and extensions. The accessor "getActorId" gives direct access to the value - */ - public StringType getActorIdElement() { - if (this.actorId == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioActorComponent.actorId"); - else if (Configuration.doAutoCreate()) - this.actorId = new StringType(); // bb - return this.actorId; - } - - public boolean hasActorIdElement() { - return this.actorId != null && !this.actorId.isEmpty(); - } - - public boolean hasActorId() { - return this.actorId != null && !this.actorId.isEmpty(); - } - - /** - * @param value {@link #actorId} (ID or acronym of actor.). This is the underlying object with id, value and extensions. The accessor "getActorId" gives direct access to the value - */ - public ExampleScenarioActorComponent setActorIdElement(StringType value) { - this.actorId = value; - return this; - } - - /** - * @return ID or acronym of actor. - */ - public String getActorId() { - return this.actorId == null ? null : this.actorId.getValue(); - } - - /** - * @param value ID or acronym of actor. - */ - public ExampleScenarioActorComponent setActorId(String value) { - if (this.actorId == null) - this.actorId = new StringType(); - this.actorId.setValue(value); - return this; - } - - /** - * @return {@link #type} (The type of actor - person or system.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value - */ - public Enumeration getTypeElement() { - if (this.type == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioActorComponent.type"); - else if (Configuration.doAutoCreate()) - this.type = new Enumeration(new ExampleScenarioActorTypeEnumFactory()); // bb - return this.type; - } - - public boolean hasTypeElement() { - return this.type != null && !this.type.isEmpty(); - } - - public boolean hasType() { - return this.type != null && !this.type.isEmpty(); - } - - /** - * @param value {@link #type} (The type of actor - person or system.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value - */ - public ExampleScenarioActorComponent setTypeElement(Enumeration value) { - this.type = value; - return this; - } - - /** - * @return The type of actor - person or system. - */ - public ExampleScenarioActorType getType() { - return this.type == null ? null : this.type.getValue(); - } - - /** - * @param value The type of actor - person or system. - */ - public ExampleScenarioActorComponent setType(ExampleScenarioActorType value) { - if (this.type == null) - this.type = new Enumeration(new ExampleScenarioActorTypeEnumFactory()); - this.type.setValue(value); - return this; - } - - /** - * @return {@link #name} (The name of the actor as shown in the page.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public StringType getNameElement() { - if (this.name == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioActorComponent.name"); - else if (Configuration.doAutoCreate()) - this.name = new StringType(); // bb - return this.name; - } - - public boolean hasNameElement() { - return this.name != null && !this.name.isEmpty(); - } - - public boolean hasName() { - return this.name != null && !this.name.isEmpty(); - } - - /** - * @param value {@link #name} (The name of the actor as shown in the page.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public ExampleScenarioActorComponent setNameElement(StringType value) { - this.name = value; - return this; - } - - /** - * @return The name of the actor as shown in the page. - */ - public String getName() { - return this.name == null ? null : this.name.getValue(); - } - - /** - * @param value The name of the actor as shown in the page. - */ - public ExampleScenarioActorComponent setName(String value) { - if (Utilities.noString(value)) - this.name = null; - else { - if (this.name == null) - this.name = new StringType(); - this.name.setValue(value); - } - return this; - } - - /** - * @return {@link #description} (The description of the actor.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public MarkdownType getDescriptionElement() { - if (this.description == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioActorComponent.description"); - else if (Configuration.doAutoCreate()) - this.description = new MarkdownType(); // bb - return this.description; - } - - public boolean hasDescriptionElement() { - return this.description != null && !this.description.isEmpty(); - } - - public boolean hasDescription() { - return this.description != null && !this.description.isEmpty(); - } - - /** - * @param value {@link #description} (The description of the actor.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public ExampleScenarioActorComponent setDescriptionElement(MarkdownType value) { - this.description = value; - return this; - } - - /** - * @return The description of the actor. - */ - public String getDescription() { - return this.description == null ? null : this.description.getValue(); - } - - /** - * @param value The description of the actor. - */ - public ExampleScenarioActorComponent setDescription(String value) { - if (value == null) - this.description = null; - else { - if (this.description == null) - this.description = new MarkdownType(); - this.description.setValue(value); - } - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("actorId", "string", "ID or acronym of actor.", 0, 1, actorId)); - children.add(new Property("type", "code", "The type of actor - person or system.", 0, 1, type)); - children.add(new Property("name", "string", "The name of the actor as shown in the page.", 0, 1, name)); - children.add(new Property("description", "markdown", "The description of the actor.", 0, 1, description)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -1161623056: /*actorId*/ return new Property("actorId", "string", "ID or acronym of actor.", 0, 1, actorId); - case 3575610: /*type*/ return new Property("type", "code", "The type of actor - person or system.", 0, 1, type); - case 3373707: /*name*/ return new Property("name", "string", "The name of the actor as shown in the page.", 0, 1, name); - case -1724546052: /*description*/ return new Property("description", "markdown", "The description of the actor.", 0, 1, description); - default: return super.getNamedProperty(_hash, _name, _checkValid); + public ExampleScenarioActorComponent(String actorId, ExampleScenarioActorType type) { + super(); + this.setActorId(actorId); + this.setType(type); } - } + /** + * @return {@link #actorId} (ID or acronym of actor.). This is the underlying object with id, value and extensions. The accessor "getActorId" gives direct access to the value + */ + public StringType getActorIdElement() { + if (this.actorId == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioActorComponent.actorId"); + else if (Configuration.doAutoCreate()) + this.actorId = new StringType(); // bb + return this.actorId; + } + + public boolean hasActorIdElement() { + return this.actorId != null && !this.actorId.isEmpty(); + } + + public boolean hasActorId() { + return this.actorId != null && !this.actorId.isEmpty(); + } + + /** + * @param value {@link #actorId} (ID or acronym of actor.). This is the underlying object with id, value and extensions. The accessor "getActorId" gives direct access to the value + */ + public ExampleScenarioActorComponent setActorIdElement(StringType value) { + this.actorId = value; + return this; + } + + /** + * @return ID or acronym of actor. + */ + public String getActorId() { + return this.actorId == null ? null : this.actorId.getValue(); + } + + /** + * @param value ID or acronym of actor. + */ + public ExampleScenarioActorComponent setActorId(String value) { + if (this.actorId == null) + this.actorId = new StringType(); + this.actorId.setValue(value); + return this; + } + + /** + * @return {@link #type} (The type of actor - person or system.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value + */ + public Enumeration getTypeElement() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioActorComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new Enumeration(new ExampleScenarioActorTypeEnumFactory()); // bb + return this.type; + } + + public boolean hasTypeElement() { + return this.type != null && !this.type.isEmpty(); + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (The type of actor - person or system.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value + */ + public ExampleScenarioActorComponent setTypeElement(Enumeration value) { + this.type = value; + return this; + } + + /** + * @return The type of actor - person or system. + */ + public ExampleScenarioActorType getType() { + return this.type == null ? null : this.type.getValue(); + } + + /** + * @param value The type of actor - person or system. + */ + public ExampleScenarioActorComponent setType(ExampleScenarioActorType value) { + if (this.type == null) + this.type = new Enumeration(new ExampleScenarioActorTypeEnumFactory()); + this.type.setValue(value); + return this; + } + + /** + * @return {@link #name} (The name of the actor as shown in the page.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public StringType getNameElement() { + if (this.name == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioActorComponent.name"); + else if (Configuration.doAutoCreate()) + this.name = new StringType(); // bb + return this.name; + } + + public boolean hasNameElement() { + return this.name != null && !this.name.isEmpty(); + } + + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); + } + + /** + * @param value {@link #name} (The name of the actor as shown in the page.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public ExampleScenarioActorComponent setNameElement(StringType value) { + this.name = value; + return this; + } + + /** + * @return The name of the actor as shown in the page. + */ + public String getName() { + return this.name == null ? null : this.name.getValue(); + } + + /** + * @param value The name of the actor as shown in the page. + */ + public ExampleScenarioActorComponent setName(String value) { + if (Utilities.noString(value)) + this.name = null; + else { + if (this.name == null) + this.name = new StringType(); + this.name.setValue(value); + } + return this; + } + + /** + * @return {@link #description} (The description of the actor.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public MarkdownType getDescriptionElement() { + if (this.description == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioActorComponent.description"); + else if (Configuration.doAutoCreate()) + this.description = new MarkdownType(); // bb + return this.description; + } + + public boolean hasDescriptionElement() { + return this.description != null && !this.description.isEmpty(); + } + + public boolean hasDescription() { + return this.description != null && !this.description.isEmpty(); + } + + /** + * @param value {@link #description} (The description of the actor.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public ExampleScenarioActorComponent setDescriptionElement(MarkdownType value) { + this.description = value; + return this; + } + + /** + * @return The description of the actor. + */ + public String getDescription() { + return this.description == null ? null : this.description.getValue(); + } + + /** + * @param value The description of the actor. + */ + public ExampleScenarioActorComponent setDescription(String value) { + if (value == null) + this.description = null; + else { + if (this.description == null) + this.description = new MarkdownType(); + this.description.setValue(value); + } + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("actorId", "string", "ID or acronym of actor.", 0, 1, actorId)); + children.add(new Property("type", "code", "The type of actor - person or system.", 0, 1, type)); + children.add(new Property("name", "string", "The name of the actor as shown in the page.", 0, 1, name)); + children.add(new Property("description", "markdown", "The description of the actor.", 0, 1, description)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1161623056: /*actorId*/ return new Property("actorId", "string", "ID or acronym of actor.", 0, 1, actorId); + case 3575610: /*type*/ return new Property("type", "code", "The type of actor - person or system.", 0, 1, type); + case 3373707: /*name*/ return new Property("name", "string", "The name of the actor as shown in the page.", 0, 1, name); + case -1724546052: /*description*/ return new Property("description", "markdown", "The description of the actor.", 0, 1, description); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1161623056: /*actorId*/ return this.actorId == null ? new Base[0] : new Base[] {this.actorId}; // StringType + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType + default: return super.getProperty(hash, name, checkValid); + } - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -1161623056: /*actorId*/ return this.actorId == null ? new Base[0] : new Base[] {this.actorId}; // StringType - case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration - case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType - case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType - default: return super.getProperty(hash, name, checkValid); } - } + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1161623056: // actorId + this.actorId = TypeConvertor.castToString(value); // StringType + return value; + case 3575610: // type + value = new ExampleScenarioActorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + return value; + case 3373707: // name + this.name = TypeConvertor.castToString(value); // StringType + return value; + case -1724546052: // description + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + default: return super.setProperty(hash, name, value); + } - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -1161623056: // actorId - this.actorId = TypeConvertor.castToString(value); // StringType + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("actorId")) { + this.actorId = TypeConvertor.castToString(value); // StringType + } else if (name.equals("type")) { + value = new ExampleScenarioActorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("name")) { + this.name = TypeConvertor.castToString(value); // StringType + } else if (name.equals("description")) { + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + } else + return super.setProperty(name, value); return value; - case 3575610: // type - value = new ExampleScenarioActorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.type = (Enumeration) value; // Enumeration - return value; - case 3373707: // name - this.name = TypeConvertor.castToString(value); // StringType - return value; - case -1724546052: // description - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - default: return super.setProperty(hash, name, value); } - } + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1161623056: return getActorIdElement(); + case 3575610: return getTypeElement(); + case 3373707: return getNameElement(); + case -1724546052: return getDescriptionElement(); + default: return super.makeProperty(hash, name); + } - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("actorId")) { - this.actorId = TypeConvertor.castToString(value); // StringType - } else if (name.equals("type")) { - value = new ExampleScenarioActorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.type = (Enumeration) value; // Enumeration - } else if (name.equals("name")) { - this.name = TypeConvertor.castToString(value); // StringType - } else if (name.equals("description")) { - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1161623056: return getActorIdElement(); - case 3575610: return getTypeElement(); - case 3373707: return getNameElement(); - case -1724546052: return getDescriptionElement(); - default: return super.makeProperty(hash, name); } - } + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1161623056: /*actorId*/ return new String[] {"string"}; + case 3575610: /*type*/ return new String[] {"code"}; + case 3373707: /*name*/ return new String[] {"string"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; + default: return super.getTypesForProperty(hash, name); + } - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1161623056: /*actorId*/ return new String[] {"string"}; - case 3575610: /*type*/ return new String[] {"code"}; - case 3373707: /*name*/ return new String[] {"string"}; - case -1724546052: /*description*/ return new String[] {"markdown"}; - default: return super.getTypesForProperty(hash, name); } - } - - @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"); + @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"); + } + else if (name.equals("type")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.type"); + } + else if (name.equals("name")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.name"); + } + else if (name.equals("description")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.description"); + } + else + return super.addChild(name); } - else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.type"); + + public ExampleScenarioActorComponent copy() { + ExampleScenarioActorComponent dst = new ExampleScenarioActorComponent(); + copyValues(dst); + return dst; } - else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.name"); + + public void copyValues(ExampleScenarioActorComponent dst) { + super.copyValues(dst); + dst.actorId = actorId == null ? null : actorId.copy(); + dst.type = type == null ? null : type.copy(); + dst.name = name == null ? null : name.copy(); + dst.description = description == null ? null : description.copy(); } - else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.actor.description"); + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ExampleScenarioActorComponent)) + return false; + ExampleScenarioActorComponent o = (ExampleScenarioActorComponent) other_; + return compareDeep(actorId, o.actorId, true) && compareDeep(type, o.type, true) && compareDeep(name, o.name, true) + && compareDeep(description, o.description, true); } - else - return super.addChild(name); - } - public ExampleScenarioActorComponent copy() { - ExampleScenarioActorComponent dst = new ExampleScenarioActorComponent(); - copyValues(dst); - return dst; - } + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ExampleScenarioActorComponent)) + return false; + ExampleScenarioActorComponent o = (ExampleScenarioActorComponent) other_; + return compareValues(actorId, o.actorId, true) && compareValues(type, o.type, true) && compareValues(name, o.name, true) + && compareValues(description, o.description, true); + } - public void copyValues(ExampleScenarioActorComponent dst) { - super.copyValues(dst); - dst.actorId = actorId == null ? null : actorId.copy(); - dst.type = type == null ? null : type.copy(); - dst.name = name == null ? null : name.copy(); - dst.description = description == null ? null : description.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof ExampleScenarioActorComponent)) - return false; - ExampleScenarioActorComponent o = (ExampleScenarioActorComponent) other_; - return compareDeep(actorId, o.actorId, true) && compareDeep(type, o.type, true) && compareDeep(name, o.name, true) - && compareDeep(description, o.description, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof ExampleScenarioActorComponent)) - return false; - ExampleScenarioActorComponent o = (ExampleScenarioActorComponent) other_; - return compareValues(actorId, o.actorId, true) && compareValues(type, o.type, true) && compareValues(name, o.name, true) - && compareValues(description, o.description, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(actorId, type, name, description + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(actorId, type, name, description ); - } + } - public String fhirType() { - return "ExampleScenario.actor"; - - } + public String fhirType() { + return "ExampleScenario.actor"; } - @Block() - public static class ExampleScenarioInstanceComponent extends BackboneElement implements IBaseBackboneElement { - /** - * The id of the resource for referencing. - */ - @Child(name = "resourceId", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="The id of the resource for referencing", formalDefinition="The id of the resource for referencing." ) - protected StringType resourceId; + } + + @Block() + public static class ExampleScenarioInstanceComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The id of the resource for referencing. + */ + @Child(name = "resourceId", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The id of the resource for referencing", formalDefinition="The id of the resource for referencing." ) + protected StringType resourceId; + + /** + * The type of the resource. + */ + @Child(name = "resourceType", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The type of the resource", formalDefinition="The type of the resource." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/resource-types") + protected CodeType resourceType; + + /** + * A short name for the resource instance. + */ + @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A short name for the resource instance", formalDefinition="A short name for the resource instance." ) + protected StringType name; + + /** + * Human-friendly description of the resource instance. + */ + @Child(name = "description", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Human-friendly description of the resource instance", formalDefinition="Human-friendly description of the resource instance." ) + protected MarkdownType description; + + /** + * A specific version of the resource. + */ + @Child(name = "version", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="A specific version of the resource", formalDefinition="A specific version of the resource." ) + protected List version; + + /** + * Resources contained in the instance (e.g. the observations contained in a bundle). + */ + @Child(name = "containedInstance", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Resources contained in the instance", formalDefinition="Resources contained in the instance (e.g. the observations contained in a bundle)." ) + protected List containedInstance; + + private static final long serialVersionUID = -1928273130L; /** - * The type of the resource. + * Constructor */ - @Child(name = "resourceType", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="The type of the resource", formalDefinition="The type of the resource." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/resource-types") - protected CodeType resourceType; + public ExampleScenarioInstanceComponent() { + super(); + } /** - * A short name for the resource instance. + * Constructor */ - @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="A short name for the resource instance", formalDefinition="A short name for the resource instance." ) + public ExampleScenarioInstanceComponent(String resourceId, String resourceType) { + super(); + this.setResourceId(resourceId); + this.setResourceType(resourceType); + } + + /** + * @return {@link #resourceId} (The id of the resource for referencing.). This is the underlying object with id, value and extensions. The accessor "getResourceId" gives direct access to the value + */ + public StringType getResourceIdElement() { + if (this.resourceId == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioInstanceComponent.resourceId"); + else if (Configuration.doAutoCreate()) + this.resourceId = new StringType(); // bb + return this.resourceId; + } + + public boolean hasResourceIdElement() { + return this.resourceId != null && !this.resourceId.isEmpty(); + } + + public boolean hasResourceId() { + return this.resourceId != null && !this.resourceId.isEmpty(); + } + + /** + * @param value {@link #resourceId} (The id of the resource for referencing.). This is the underlying object with id, value and extensions. The accessor "getResourceId" gives direct access to the value + */ + public ExampleScenarioInstanceComponent setResourceIdElement(StringType value) { + this.resourceId = value; + return this; + } + + /** + * @return The id of the resource for referencing. + */ + public String getResourceId() { + return this.resourceId == null ? null : this.resourceId.getValue(); + } + + /** + * @param value The id of the resource for referencing. + */ + public ExampleScenarioInstanceComponent setResourceId(String value) { + if (this.resourceId == null) + this.resourceId = new StringType(); + this.resourceId.setValue(value); + return this; + } + + /** + * @return {@link #resourceType} (The type of the resource.). This is the underlying object with id, value and extensions. The accessor "getResourceType" gives direct access to the value + */ + public CodeType getResourceTypeElement() { + if (this.resourceType == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioInstanceComponent.resourceType"); + else if (Configuration.doAutoCreate()) + this.resourceType = new CodeType(); // bb + return this.resourceType; + } + + public boolean hasResourceTypeElement() { + return this.resourceType != null && !this.resourceType.isEmpty(); + } + + public boolean hasResourceType() { + return this.resourceType != null && !this.resourceType.isEmpty(); + } + + /** + * @param value {@link #resourceType} (The type of the resource.). This is the underlying object with id, value and extensions. The accessor "getResourceType" gives direct access to the value + */ + public ExampleScenarioInstanceComponent setResourceTypeElement(CodeType value) { + this.resourceType = value; + return this; + } + + /** + * @return The type of the resource. + */ + public String getResourceType() { + return this.resourceType == null ? null : this.resourceType.getValue(); + } + + /** + * @param value The type of the resource. + */ + public ExampleScenarioInstanceComponent setResourceType(String value) { + if (this.resourceType == null) + this.resourceType = new CodeType(); + this.resourceType.setValue(value); + return this; + } + + /** + * @return {@link #name} (A short name for the resource instance.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public StringType getNameElement() { + if (this.name == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioInstanceComponent.name"); + else if (Configuration.doAutoCreate()) + this.name = new StringType(); // bb + return this.name; + } + + public boolean hasNameElement() { + return this.name != null && !this.name.isEmpty(); + } + + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); + } + + /** + * @param value {@link #name} (A short name for the resource instance.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public ExampleScenarioInstanceComponent setNameElement(StringType value) { + this.name = value; + return this; + } + + /** + * @return A short name for the resource instance. + */ + public String getName() { + return this.name == null ? null : this.name.getValue(); + } + + /** + * @param value A short name for the resource instance. + */ + public ExampleScenarioInstanceComponent setName(String value) { + if (Utilities.noString(value)) + this.name = null; + else { + if (this.name == null) + this.name = new StringType(); + this.name.setValue(value); + } + return this; + } + + /** + * @return {@link #description} (Human-friendly description of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public MarkdownType getDescriptionElement() { + if (this.description == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioInstanceComponent.description"); + else if (Configuration.doAutoCreate()) + this.description = new MarkdownType(); // bb + return this.description; + } + + public boolean hasDescriptionElement() { + return this.description != null && !this.description.isEmpty(); + } + + public boolean hasDescription() { + return this.description != null && !this.description.isEmpty(); + } + + /** + * @param value {@link #description} (Human-friendly description of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public ExampleScenarioInstanceComponent setDescriptionElement(MarkdownType value) { + this.description = value; + return this; + } + + /** + * @return Human-friendly description of the resource instance. + */ + public String getDescription() { + return this.description == null ? null : this.description.getValue(); + } + + /** + * @param value Human-friendly description of the resource instance. + */ + public ExampleScenarioInstanceComponent setDescription(String value) { + if (value == null) + this.description = null; + else { + if (this.description == null) + this.description = new MarkdownType(); + this.description.setValue(value); + } + return this; + } + + /** + * @return {@link #version} (A specific version of the resource.) + */ + public List getVersion() { + if (this.version == null) + this.version = new ArrayList(); + return this.version; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenarioInstanceComponent setVersion(List theVersion) { + this.version = theVersion; + return this; + } + + public boolean hasVersion() { + if (this.version == null) + return false; + for (ExampleScenarioInstanceVersionComponent item : this.version) + if (!item.isEmpty()) + return true; + return false; + } + + public ExampleScenarioInstanceVersionComponent addVersion() { //3 + ExampleScenarioInstanceVersionComponent t = new ExampleScenarioInstanceVersionComponent(); + if (this.version == null) + this.version = new ArrayList(); + this.version.add(t); + return t; + } + + public ExampleScenarioInstanceComponent addVersion(ExampleScenarioInstanceVersionComponent t) { //3 + if (t == null) + return this; + if (this.version == null) + this.version = new ArrayList(); + this.version.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #version}, creating it if it does not already exist {3} + */ + public ExampleScenarioInstanceVersionComponent getVersionFirstRep() { + if (getVersion().isEmpty()) { + addVersion(); + } + return getVersion().get(0); + } + + /** + * @return {@link #containedInstance} (Resources contained in the instance (e.g. the observations contained in a bundle).) + */ + public List getContainedInstance() { + if (this.containedInstance == null) + this.containedInstance = new ArrayList(); + return this.containedInstance; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenarioInstanceComponent setContainedInstance(List theContainedInstance) { + this.containedInstance = theContainedInstance; + return this; + } + + public boolean hasContainedInstance() { + if (this.containedInstance == null) + return false; + for (ExampleScenarioInstanceContainedInstanceComponent item : this.containedInstance) + if (!item.isEmpty()) + return true; + return false; + } + + public ExampleScenarioInstanceContainedInstanceComponent addContainedInstance() { //3 + ExampleScenarioInstanceContainedInstanceComponent t = new ExampleScenarioInstanceContainedInstanceComponent(); + if (this.containedInstance == null) + this.containedInstance = new ArrayList(); + this.containedInstance.add(t); + return t; + } + + public ExampleScenarioInstanceComponent addContainedInstance(ExampleScenarioInstanceContainedInstanceComponent t) { //3 + if (t == null) + return this; + if (this.containedInstance == null) + this.containedInstance = new ArrayList(); + this.containedInstance.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #containedInstance}, creating it if it does not already exist {3} + */ + public ExampleScenarioInstanceContainedInstanceComponent getContainedInstanceFirstRep() { + if (getContainedInstance().isEmpty()) { + addContainedInstance(); + } + return getContainedInstance().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("resourceId", "string", "The id of the resource for referencing.", 0, 1, resourceId)); + children.add(new Property("resourceType", "code", "The type of the resource.", 0, 1, resourceType)); + children.add(new Property("name", "string", "A short name for the resource instance.", 0, 1, name)); + children.add(new Property("description", "markdown", "Human-friendly description of the resource instance.", 0, 1, description)); + children.add(new Property("version", "", "A specific version of the resource.", 0, java.lang.Integer.MAX_VALUE, version)); + children.add(new Property("containedInstance", "", "Resources contained in the instance (e.g. the observations contained in a bundle).", 0, java.lang.Integer.MAX_VALUE, containedInstance)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1345650231: /*resourceId*/ return new Property("resourceId", "string", "The id of the resource for referencing.", 0, 1, resourceId); + case -384364440: /*resourceType*/ return new Property("resourceType", "code", "The type of the resource.", 0, 1, resourceType); + case 3373707: /*name*/ return new Property("name", "string", "A short name for the resource instance.", 0, 1, name); + case -1724546052: /*description*/ return new Property("description", "markdown", "Human-friendly description of the resource instance.", 0, 1, description); + case 351608024: /*version*/ return new Property("version", "", "A specific version of the resource.", 0, java.lang.Integer.MAX_VALUE, version); + case -417062360: /*containedInstance*/ return new Property("containedInstance", "", "Resources contained in the instance (e.g. the observations contained in a bundle).", 0, java.lang.Integer.MAX_VALUE, containedInstance); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1345650231: /*resourceId*/ return this.resourceId == null ? new Base[0] : new Base[] {this.resourceId}; // StringType + case -384364440: /*resourceType*/ return this.resourceType == null ? new Base[0] : new Base[] {this.resourceType}; // CodeType + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType + case 351608024: /*version*/ return this.version == null ? new Base[0] : this.version.toArray(new Base[this.version.size()]); // ExampleScenarioInstanceVersionComponent + case -417062360: /*containedInstance*/ return this.containedInstance == null ? new Base[0] : this.containedInstance.toArray(new Base[this.containedInstance.size()]); // ExampleScenarioInstanceContainedInstanceComponent + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1345650231: // resourceId + this.resourceId = TypeConvertor.castToString(value); // StringType + return value; + case -384364440: // resourceType + this.resourceType = TypeConvertor.castToCode(value); // CodeType + return value; + case 3373707: // name + this.name = TypeConvertor.castToString(value); // StringType + return value; + case -1724546052: // description + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case 351608024: // version + this.getVersion().add((ExampleScenarioInstanceVersionComponent) value); // ExampleScenarioInstanceVersionComponent + return value; + case -417062360: // containedInstance + this.getContainedInstance().add((ExampleScenarioInstanceContainedInstanceComponent) value); // ExampleScenarioInstanceContainedInstanceComponent + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("resourceId")) { + this.resourceId = TypeConvertor.castToString(value); // StringType + } else if (name.equals("resourceType")) { + this.resourceType = TypeConvertor.castToCode(value); // CodeType + } else if (name.equals("name")) { + this.name = TypeConvertor.castToString(value); // StringType + } else if (name.equals("description")) { + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("version")) { + this.getVersion().add((ExampleScenarioInstanceVersionComponent) value); + } else if (name.equals("containedInstance")) { + this.getContainedInstance().add((ExampleScenarioInstanceContainedInstanceComponent) value); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1345650231: return getResourceIdElement(); + case -384364440: return getResourceTypeElement(); + case 3373707: return getNameElement(); + case -1724546052: return getDescriptionElement(); + case 351608024: return addVersion(); + case -417062360: return addContainedInstance(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1345650231: /*resourceId*/ return new String[] {"string"}; + case -384364440: /*resourceType*/ return new String[] {"code"}; + case 3373707: /*name*/ return new String[] {"string"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; + case 351608024: /*version*/ return new String[] {}; + case -417062360: /*containedInstance*/ return new String[] {}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @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"); + } + else if (name.equals("resourceType")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.resourceType"); + } + else if (name.equals("name")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.name"); + } + else if (name.equals("description")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.description"); + } + else if (name.equals("version")) { + return addVersion(); + } + else if (name.equals("containedInstance")) { + return addContainedInstance(); + } + else + return super.addChild(name); + } + + public ExampleScenarioInstanceComponent copy() { + ExampleScenarioInstanceComponent dst = new ExampleScenarioInstanceComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ExampleScenarioInstanceComponent dst) { + super.copyValues(dst); + dst.resourceId = resourceId == null ? null : resourceId.copy(); + dst.resourceType = resourceType == null ? null : resourceType.copy(); + dst.name = name == null ? null : name.copy(); + dst.description = description == null ? null : description.copy(); + if (version != null) { + dst.version = new ArrayList(); + for (ExampleScenarioInstanceVersionComponent i : version) + dst.version.add(i.copy()); + }; + if (containedInstance != null) { + dst.containedInstance = new ArrayList(); + for (ExampleScenarioInstanceContainedInstanceComponent i : containedInstance) + dst.containedInstance.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ExampleScenarioInstanceComponent)) + return false; + ExampleScenarioInstanceComponent o = (ExampleScenarioInstanceComponent) other_; + return compareDeep(resourceId, o.resourceId, true) && compareDeep(resourceType, o.resourceType, true) + && compareDeep(name, o.name, true) && compareDeep(description, o.description, true) && compareDeep(version, o.version, true) + && compareDeep(containedInstance, o.containedInstance, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ExampleScenarioInstanceComponent)) + return false; + ExampleScenarioInstanceComponent o = (ExampleScenarioInstanceComponent) other_; + return compareValues(resourceId, o.resourceId, true) && compareValues(resourceType, o.resourceType, true) + && compareValues(name, o.name, true) && compareValues(description, o.description, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(resourceId, resourceType, name + , description, version, containedInstance); + } + + public String fhirType() { + return "ExampleScenario.instance"; + + } + + } + + @Block() + public static class ExampleScenarioInstanceVersionComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The identifier of a specific version of a resource. + */ + @Child(name = "versionId", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The identifier of a specific version of a resource", formalDefinition="The identifier of a specific version of a resource." ) + protected StringType versionId; + + /** + * The description of the resource version. + */ + @Child(name = "description", type = {MarkdownType.class}, order=2, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The description of the resource version", formalDefinition="The description of the resource version." ) + protected MarkdownType description; + + private static final long serialVersionUID = 960821913L; + + /** + * Constructor + */ + public ExampleScenarioInstanceVersionComponent() { + super(); + } + + /** + * Constructor + */ + public ExampleScenarioInstanceVersionComponent(String versionId, String description) { + super(); + this.setVersionId(versionId); + this.setDescription(description); + } + + /** + * @return {@link #versionId} (The identifier of a specific version of a resource.). This is the underlying object with id, value and extensions. The accessor "getVersionId" gives direct access to the value + */ + public StringType getVersionIdElement() { + if (this.versionId == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioInstanceVersionComponent.versionId"); + else if (Configuration.doAutoCreate()) + this.versionId = new StringType(); // bb + return this.versionId; + } + + public boolean hasVersionIdElement() { + return this.versionId != null && !this.versionId.isEmpty(); + } + + public boolean hasVersionId() { + return this.versionId != null && !this.versionId.isEmpty(); + } + + /** + * @param value {@link #versionId} (The identifier of a specific version of a resource.). This is the underlying object with id, value and extensions. The accessor "getVersionId" gives direct access to the value + */ + public ExampleScenarioInstanceVersionComponent setVersionIdElement(StringType value) { + this.versionId = value; + return this; + } + + /** + * @return The identifier of a specific version of a resource. + */ + public String getVersionId() { + return this.versionId == null ? null : this.versionId.getValue(); + } + + /** + * @param value The identifier of a specific version of a resource. + */ + public ExampleScenarioInstanceVersionComponent setVersionId(String value) { + if (this.versionId == null) + this.versionId = new StringType(); + this.versionId.setValue(value); + return this; + } + + /** + * @return {@link #description} (The description of the resource version.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public MarkdownType getDescriptionElement() { + if (this.description == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioInstanceVersionComponent.description"); + else if (Configuration.doAutoCreate()) + this.description = new MarkdownType(); // bb + return this.description; + } + + public boolean hasDescriptionElement() { + return this.description != null && !this.description.isEmpty(); + } + + public boolean hasDescription() { + return this.description != null && !this.description.isEmpty(); + } + + /** + * @param value {@link #description} (The description of the resource version.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public ExampleScenarioInstanceVersionComponent setDescriptionElement(MarkdownType value) { + this.description = value; + return this; + } + + /** + * @return The description of the resource version. + */ + public String getDescription() { + return this.description == null ? null : this.description.getValue(); + } + + /** + * @param value The description of the resource version. + */ + public ExampleScenarioInstanceVersionComponent setDescription(String value) { + if (this.description == null) + this.description = new MarkdownType(); + this.description.setValue(value); + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("versionId", "string", "The identifier of a specific version of a resource.", 0, 1, versionId)); + children.add(new Property("description", "markdown", "The description of the resource version.", 0, 1, description)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1407102957: /*versionId*/ return new Property("versionId", "string", "The identifier of a specific version of a resource.", 0, 1, versionId); + case -1724546052: /*description*/ return new Property("description", "markdown", "The description of the resource version.", 0, 1, description); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1407102957: /*versionId*/ return this.versionId == null ? new Base[0] : new Base[] {this.versionId}; // StringType + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1407102957: // versionId + this.versionId = TypeConvertor.castToString(value); // StringType + return value; + case -1724546052: // description + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("versionId")) { + this.versionId = TypeConvertor.castToString(value); // StringType + } else if (name.equals("description")) { + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1407102957: return getVersionIdElement(); + case -1724546052: return getDescriptionElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1407102957: /*versionId*/ return new String[] {"string"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @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"); + } + else if (name.equals("description")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.version.description"); + } + else + return super.addChild(name); + } + + public ExampleScenarioInstanceVersionComponent copy() { + ExampleScenarioInstanceVersionComponent dst = new ExampleScenarioInstanceVersionComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ExampleScenarioInstanceVersionComponent dst) { + super.copyValues(dst); + dst.versionId = versionId == null ? null : versionId.copy(); + dst.description = description == null ? null : description.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ExampleScenarioInstanceVersionComponent)) + return false; + ExampleScenarioInstanceVersionComponent o = (ExampleScenarioInstanceVersionComponent) other_; + return compareDeep(versionId, o.versionId, true) && compareDeep(description, o.description, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ExampleScenarioInstanceVersionComponent)) + return false; + ExampleScenarioInstanceVersionComponent o = (ExampleScenarioInstanceVersionComponent) other_; + return compareValues(versionId, o.versionId, true) && compareValues(description, o.description, true) + ; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(versionId, description); + } + + public String fhirType() { + return "ExampleScenario.instance.version"; + + } + + } + + @Block() + public static class ExampleScenarioInstanceContainedInstanceComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Each resource contained in the instance. + */ + @Child(name = "resourceId", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Each resource contained in the instance", formalDefinition="Each resource contained in the instance." ) + protected StringType resourceId; + + /** + * A specific version of a resource contained in the instance. + */ + @Child(name = "versionId", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A specific version of a resource contained in the instance", formalDefinition="A specific version of a resource contained in the instance." ) + protected StringType versionId; + + private static final long serialVersionUID = 908084124L; + + /** + * Constructor + */ + public ExampleScenarioInstanceContainedInstanceComponent() { + super(); + } + + /** + * Constructor + */ + public ExampleScenarioInstanceContainedInstanceComponent(String resourceId) { + super(); + this.setResourceId(resourceId); + } + + /** + * @return {@link #resourceId} (Each resource contained in the instance.). This is the underlying object with id, value and extensions. The accessor "getResourceId" gives direct access to the value + */ + public StringType getResourceIdElement() { + if (this.resourceId == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioInstanceContainedInstanceComponent.resourceId"); + else if (Configuration.doAutoCreate()) + this.resourceId = new StringType(); // bb + return this.resourceId; + } + + public boolean hasResourceIdElement() { + return this.resourceId != null && !this.resourceId.isEmpty(); + } + + public boolean hasResourceId() { + return this.resourceId != null && !this.resourceId.isEmpty(); + } + + /** + * @param value {@link #resourceId} (Each resource contained in the instance.). This is the underlying object with id, value and extensions. The accessor "getResourceId" gives direct access to the value + */ + public ExampleScenarioInstanceContainedInstanceComponent setResourceIdElement(StringType value) { + this.resourceId = value; + return this; + } + + /** + * @return Each resource contained in the instance. + */ + public String getResourceId() { + return this.resourceId == null ? null : this.resourceId.getValue(); + } + + /** + * @param value Each resource contained in the instance. + */ + public ExampleScenarioInstanceContainedInstanceComponent setResourceId(String value) { + if (this.resourceId == null) + this.resourceId = new StringType(); + this.resourceId.setValue(value); + return this; + } + + /** + * @return {@link #versionId} (A specific version of a resource contained in the instance.). This is the underlying object with id, value and extensions. The accessor "getVersionId" gives direct access to the value + */ + public StringType getVersionIdElement() { + if (this.versionId == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioInstanceContainedInstanceComponent.versionId"); + else if (Configuration.doAutoCreate()) + this.versionId = new StringType(); // bb + return this.versionId; + } + + public boolean hasVersionIdElement() { + return this.versionId != null && !this.versionId.isEmpty(); + } + + public boolean hasVersionId() { + return this.versionId != null && !this.versionId.isEmpty(); + } + + /** + * @param value {@link #versionId} (A specific version of a resource contained in the instance.). This is the underlying object with id, value and extensions. The accessor "getVersionId" gives direct access to the value + */ + public ExampleScenarioInstanceContainedInstanceComponent setVersionIdElement(StringType value) { + this.versionId = value; + return this; + } + + /** + * @return A specific version of a resource contained in the instance. + */ + public String getVersionId() { + return this.versionId == null ? null : this.versionId.getValue(); + } + + /** + * @param value A specific version of a resource contained in the instance. + */ + public ExampleScenarioInstanceContainedInstanceComponent setVersionId(String value) { + if (Utilities.noString(value)) + this.versionId = null; + else { + if (this.versionId == null) + this.versionId = new StringType(); + this.versionId.setValue(value); + } + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("resourceId", "string", "Each resource contained in the instance.", 0, 1, resourceId)); + children.add(new Property("versionId", "string", "A specific version of a resource contained in the instance.", 0, 1, versionId)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1345650231: /*resourceId*/ return new Property("resourceId", "string", "Each resource contained in the instance.", 0, 1, resourceId); + case -1407102957: /*versionId*/ return new Property("versionId", "string", "A specific version of a resource contained in the instance.", 0, 1, versionId); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1345650231: /*resourceId*/ return this.resourceId == null ? new Base[0] : new Base[] {this.resourceId}; // StringType + case -1407102957: /*versionId*/ return this.versionId == null ? new Base[0] : new Base[] {this.versionId}; // StringType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1345650231: // resourceId + this.resourceId = TypeConvertor.castToString(value); // StringType + return value; + case -1407102957: // versionId + this.versionId = TypeConvertor.castToString(value); // StringType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("resourceId")) { + this.resourceId = TypeConvertor.castToString(value); // StringType + } else if (name.equals("versionId")) { + this.versionId = TypeConvertor.castToString(value); // StringType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1345650231: return getResourceIdElement(); + case -1407102957: return getVersionIdElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1345650231: /*resourceId*/ return new String[] {"string"}; + case -1407102957: /*versionId*/ return new String[] {"string"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + 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"); + } + else if (name.equals("versionId")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.containedInstance.versionId"); + } + else + return super.addChild(name); + } + + public ExampleScenarioInstanceContainedInstanceComponent copy() { + ExampleScenarioInstanceContainedInstanceComponent dst = new ExampleScenarioInstanceContainedInstanceComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ExampleScenarioInstanceContainedInstanceComponent dst) { + super.copyValues(dst); + dst.resourceId = resourceId == null ? null : resourceId.copy(); + dst.versionId = versionId == null ? null : versionId.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ExampleScenarioInstanceContainedInstanceComponent)) + return false; + ExampleScenarioInstanceContainedInstanceComponent o = (ExampleScenarioInstanceContainedInstanceComponent) other_; + return compareDeep(resourceId, o.resourceId, true) && compareDeep(versionId, o.versionId, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ExampleScenarioInstanceContainedInstanceComponent)) + return false; + ExampleScenarioInstanceContainedInstanceComponent o = (ExampleScenarioInstanceContainedInstanceComponent) other_; + return compareValues(resourceId, o.resourceId, true) && compareValues(versionId, o.versionId, true) + ; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(resourceId, versionId); + } + + public String fhirType() { + return "ExampleScenario.instance.containedInstance"; + + } + + } + + @Block() + public static class ExampleScenarioProcessComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The diagram title of the group of operations. + */ + @Child(name = "title", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true) + @Description(shortDefinition="The diagram title of the group of operations", formalDefinition="The diagram title of the group of operations." ) + protected StringType title; + + /** + * A longer description of the group of operations. + */ + @Child(name = "description", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A longer description of the group of operations", formalDefinition="A longer description of the group of operations." ) + protected MarkdownType description; + + /** + * Description of initial status before the process starts. + */ + @Child(name = "preConditions", type = {MarkdownType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Description of initial status before the process starts", formalDefinition="Description of initial status before the process starts." ) + protected MarkdownType preConditions; + + /** + * Description of final status after the process ends. + */ + @Child(name = "postConditions", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Description of final status after the process ends", formalDefinition="Description of final status after the process ends." ) + protected MarkdownType postConditions; + + /** + * Each step of the process. + */ + @Child(name = "step", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Each step of the process", formalDefinition="Each step of the process." ) + protected List step; + + private static final long serialVersionUID = 325578043L; + + /** + * Constructor + */ + public ExampleScenarioProcessComponent() { + super(); + } + + /** + * Constructor + */ + public ExampleScenarioProcessComponent(String title) { + super(); + this.setTitle(title); + } + + /** + * @return {@link #title} (The diagram title of the group of operations.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public StringType getTitleElement() { + if (this.title == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessComponent.title"); + else if (Configuration.doAutoCreate()) + this.title = new StringType(); // bb + return this.title; + } + + public boolean hasTitleElement() { + return this.title != null && !this.title.isEmpty(); + } + + public boolean hasTitle() { + return this.title != null && !this.title.isEmpty(); + } + + /** + * @param value {@link #title} (The diagram title of the group of operations.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public ExampleScenarioProcessComponent setTitleElement(StringType value) { + this.title = value; + return this; + } + + /** + * @return The diagram title of the group of operations. + */ + public String getTitle() { + return this.title == null ? null : this.title.getValue(); + } + + /** + * @param value The diagram title of the group of operations. + */ + public ExampleScenarioProcessComponent setTitle(String value) { + if (this.title == null) + this.title = new StringType(); + this.title.setValue(value); + return this; + } + + /** + * @return {@link #description} (A longer description of the group of operations.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public MarkdownType getDescriptionElement() { + if (this.description == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessComponent.description"); + else if (Configuration.doAutoCreate()) + this.description = new MarkdownType(); // bb + return this.description; + } + + public boolean hasDescriptionElement() { + return this.description != null && !this.description.isEmpty(); + } + + public boolean hasDescription() { + return this.description != null && !this.description.isEmpty(); + } + + /** + * @param value {@link #description} (A longer description of the group of operations.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public ExampleScenarioProcessComponent setDescriptionElement(MarkdownType value) { + this.description = value; + return this; + } + + /** + * @return A longer description of the group of operations. + */ + public String getDescription() { + return this.description == null ? null : this.description.getValue(); + } + + /** + * @param value A longer description of the group of operations. + */ + public ExampleScenarioProcessComponent setDescription(String value) { + if (value == null) + this.description = null; + else { + if (this.description == null) + this.description = new MarkdownType(); + this.description.setValue(value); + } + return this; + } + + /** + * @return {@link #preConditions} (Description of initial status before the process starts.). This is the underlying object with id, value and extensions. The accessor "getPreConditions" gives direct access to the value + */ + public MarkdownType getPreConditionsElement() { + if (this.preConditions == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessComponent.preConditions"); + else if (Configuration.doAutoCreate()) + this.preConditions = new MarkdownType(); // bb + return this.preConditions; + } + + public boolean hasPreConditionsElement() { + return this.preConditions != null && !this.preConditions.isEmpty(); + } + + public boolean hasPreConditions() { + return this.preConditions != null && !this.preConditions.isEmpty(); + } + + /** + * @param value {@link #preConditions} (Description of initial status before the process starts.). This is the underlying object with id, value and extensions. The accessor "getPreConditions" gives direct access to the value + */ + public ExampleScenarioProcessComponent setPreConditionsElement(MarkdownType value) { + this.preConditions = value; + return this; + } + + /** + * @return Description of initial status before the process starts. + */ + public String getPreConditions() { + return this.preConditions == null ? null : this.preConditions.getValue(); + } + + /** + * @param value Description of initial status before the process starts. + */ + public ExampleScenarioProcessComponent setPreConditions(String value) { + if (value == null) + this.preConditions = null; + else { + if (this.preConditions == null) + this.preConditions = new MarkdownType(); + this.preConditions.setValue(value); + } + return this; + } + + /** + * @return {@link #postConditions} (Description of final status after the process ends.). This is the underlying object with id, value and extensions. The accessor "getPostConditions" gives direct access to the value + */ + public MarkdownType getPostConditionsElement() { + if (this.postConditions == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessComponent.postConditions"); + else if (Configuration.doAutoCreate()) + this.postConditions = new MarkdownType(); // bb + return this.postConditions; + } + + public boolean hasPostConditionsElement() { + return this.postConditions != null && !this.postConditions.isEmpty(); + } + + public boolean hasPostConditions() { + return this.postConditions != null && !this.postConditions.isEmpty(); + } + + /** + * @param value {@link #postConditions} (Description of final status after the process ends.). This is the underlying object with id, value and extensions. The accessor "getPostConditions" gives direct access to the value + */ + public ExampleScenarioProcessComponent setPostConditionsElement(MarkdownType value) { + this.postConditions = value; + return this; + } + + /** + * @return Description of final status after the process ends. + */ + public String getPostConditions() { + return this.postConditions == null ? null : this.postConditions.getValue(); + } + + /** + * @param value Description of final status after the process ends. + */ + public ExampleScenarioProcessComponent setPostConditions(String value) { + if (value == null) + this.postConditions = null; + else { + if (this.postConditions == null) + this.postConditions = new MarkdownType(); + this.postConditions.setValue(value); + } + return this; + } + + /** + * @return {@link #step} (Each step of the process.) + */ + public List getStep() { + if (this.step == null) + this.step = new ArrayList(); + return this.step; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenarioProcessComponent setStep(List theStep) { + this.step = theStep; + return this; + } + + public boolean hasStep() { + if (this.step == null) + return false; + for (ExampleScenarioProcessStepComponent item : this.step) + if (!item.isEmpty()) + return true; + return false; + } + + public ExampleScenarioProcessStepComponent addStep() { //3 + ExampleScenarioProcessStepComponent t = new ExampleScenarioProcessStepComponent(); + if (this.step == null) + this.step = new ArrayList(); + this.step.add(t); + return t; + } + + public ExampleScenarioProcessComponent addStep(ExampleScenarioProcessStepComponent t) { //3 + if (t == null) + return this; + if (this.step == null) + this.step = new ArrayList(); + this.step.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #step}, creating it if it does not already exist {3} + */ + public ExampleScenarioProcessStepComponent getStepFirstRep() { + if (getStep().isEmpty()) { + addStep(); + } + return getStep().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("title", "string", "The diagram title of the group of operations.", 0, 1, title)); + children.add(new Property("description", "markdown", "A longer description of the group of operations.", 0, 1, description)); + children.add(new Property("preConditions", "markdown", "Description of initial status before the process starts.", 0, 1, preConditions)); + children.add(new Property("postConditions", "markdown", "Description of final status after the process ends.", 0, 1, postConditions)); + children.add(new Property("step", "", "Each step of the process.", 0, java.lang.Integer.MAX_VALUE, step)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 110371416: /*title*/ return new Property("title", "string", "The diagram title of the group of operations.", 0, 1, title); + case -1724546052: /*description*/ return new Property("description", "markdown", "A longer description of the group of operations.", 0, 1, description); + case -1006692933: /*preConditions*/ return new Property("preConditions", "markdown", "Description of initial status before the process starts.", 0, 1, preConditions); + case 1738302328: /*postConditions*/ return new Property("postConditions", "markdown", "Description of final status after the process ends.", 0, 1, postConditions); + case 3540684: /*step*/ return new Property("step", "", "Each step of the process.", 0, java.lang.Integer.MAX_VALUE, step); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType + case -1006692933: /*preConditions*/ return this.preConditions == null ? new Base[0] : new Base[] {this.preConditions}; // MarkdownType + case 1738302328: /*postConditions*/ return this.postConditions == null ? new Base[0] : new Base[] {this.postConditions}; // MarkdownType + case 3540684: /*step*/ return this.step == null ? new Base[0] : this.step.toArray(new Base[this.step.size()]); // ExampleScenarioProcessStepComponent + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 110371416: // title + this.title = TypeConvertor.castToString(value); // StringType + return value; + case -1724546052: // description + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case -1006692933: // preConditions + this.preConditions = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case 1738302328: // postConditions + this.postConditions = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case 3540684: // step + this.getStep().add((ExampleScenarioProcessStepComponent) value); // ExampleScenarioProcessStepComponent + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = TypeConvertor.castToString(value); // StringType + } else if (name.equals("description")) { + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("preConditions")) { + this.preConditions = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("postConditions")) { + this.postConditions = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("step")) { + this.getStep().add((ExampleScenarioProcessStepComponent) value); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 110371416: return getTitleElement(); + case -1724546052: return getDescriptionElement(); + case -1006692933: return getPreConditionsElement(); + case 1738302328: return getPostConditionsElement(); + case 3540684: return addStep(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 110371416: /*title*/ return new String[] {"string"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; + case -1006692933: /*preConditions*/ return new String[] {"markdown"}; + case 1738302328: /*postConditions*/ return new String[] {"markdown"}; + case 3540684: /*step*/ return new String[] {}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("title")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.title"); + } + else if (name.equals("description")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.description"); + } + else if (name.equals("preConditions")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.preConditions"); + } + else if (name.equals("postConditions")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.postConditions"); + } + else if (name.equals("step")) { + return addStep(); + } + else + return super.addChild(name); + } + + public ExampleScenarioProcessComponent copy() { + ExampleScenarioProcessComponent dst = new ExampleScenarioProcessComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ExampleScenarioProcessComponent dst) { + super.copyValues(dst); + dst.title = title == null ? null : title.copy(); + dst.description = description == null ? null : description.copy(); + dst.preConditions = preConditions == null ? null : preConditions.copy(); + dst.postConditions = postConditions == null ? null : postConditions.copy(); + if (step != null) { + dst.step = new ArrayList(); + for (ExampleScenarioProcessStepComponent i : step) + dst.step.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ExampleScenarioProcessComponent)) + return false; + ExampleScenarioProcessComponent o = (ExampleScenarioProcessComponent) other_; + return compareDeep(title, o.title, true) && compareDeep(description, o.description, true) && compareDeep(preConditions, o.preConditions, true) + && compareDeep(postConditions, o.postConditions, true) && compareDeep(step, o.step, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ExampleScenarioProcessComponent)) + return false; + ExampleScenarioProcessComponent o = (ExampleScenarioProcessComponent) other_; + return compareValues(title, o.title, true) && compareValues(description, o.description, true) && compareValues(preConditions, o.preConditions, true) + && compareValues(postConditions, o.postConditions, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(title, description, preConditions + , postConditions, step); + } + + public String fhirType() { + return "ExampleScenario.process"; + + } + + } + + @Block() + public static class ExampleScenarioProcessStepComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Nested process. + */ + @Child(name = "process", type = {ExampleScenarioProcessComponent.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Nested process", formalDefinition="Nested process." ) + protected List process; + + /** + * If there is a pause in the flow. + */ + @Child(name = "pause", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="If there is a pause in the flow", formalDefinition="If there is a pause in the flow." ) + protected BooleanType pause; + + /** + * Each interaction or action. + */ + @Child(name = "operation", type = {}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Each interaction or action", formalDefinition="Each interaction or action." ) + protected ExampleScenarioProcessStepOperationComponent operation; + + /** + * Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances. + */ + @Child(name = "alternative", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Alternate non-typical step action", formalDefinition="Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances." ) + protected List alternative; + + private static final long serialVersionUID = -894029605L; + + /** + * Constructor + */ + public ExampleScenarioProcessStepComponent() { + super(); + } + + /** + * @return {@link #process} (Nested process.) + */ + public List getProcess() { + if (this.process == null) + this.process = new ArrayList(); + return this.process; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenarioProcessStepComponent setProcess(List theProcess) { + this.process = theProcess; + return this; + } + + public boolean hasProcess() { + if (this.process == null) + return false; + for (ExampleScenarioProcessComponent item : this.process) + if (!item.isEmpty()) + return true; + return false; + } + + public ExampleScenarioProcessComponent addProcess() { //3 + ExampleScenarioProcessComponent t = new ExampleScenarioProcessComponent(); + if (this.process == null) + this.process = new ArrayList(); + this.process.add(t); + return t; + } + + public ExampleScenarioProcessStepComponent addProcess(ExampleScenarioProcessComponent t) { //3 + if (t == null) + return this; + if (this.process == null) + this.process = new ArrayList(); + this.process.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #process}, creating it if it does not already exist {3} + */ + public ExampleScenarioProcessComponent getProcessFirstRep() { + if (getProcess().isEmpty()) { + addProcess(); + } + return getProcess().get(0); + } + + /** + * @return {@link #pause} (If there is a pause in the flow.). This is the underlying object with id, value and extensions. The accessor "getPause" gives direct access to the value + */ + public BooleanType getPauseElement() { + if (this.pause == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepComponent.pause"); + else if (Configuration.doAutoCreate()) + this.pause = new BooleanType(); // bb + return this.pause; + } + + public boolean hasPauseElement() { + return this.pause != null && !this.pause.isEmpty(); + } + + public boolean hasPause() { + return this.pause != null && !this.pause.isEmpty(); + } + + /** + * @param value {@link #pause} (If there is a pause in the flow.). This is the underlying object with id, value and extensions. The accessor "getPause" gives direct access to the value + */ + public ExampleScenarioProcessStepComponent setPauseElement(BooleanType value) { + this.pause = value; + return this; + } + + /** + * @return If there is a pause in the flow. + */ + public boolean getPause() { + return this.pause == null || this.pause.isEmpty() ? false : this.pause.getValue(); + } + + /** + * @param value If there is a pause in the flow. + */ + public ExampleScenarioProcessStepComponent setPause(boolean value) { + if (this.pause == null) + this.pause = new BooleanType(); + this.pause.setValue(value); + return this; + } + + /** + * @return {@link #operation} (Each interaction or action.) + */ + public ExampleScenarioProcessStepOperationComponent getOperation() { + if (this.operation == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepComponent.operation"); + else if (Configuration.doAutoCreate()) + this.operation = new ExampleScenarioProcessStepOperationComponent(); // cc + return this.operation; + } + + public boolean hasOperation() { + return this.operation != null && !this.operation.isEmpty(); + } + + /** + * @param value {@link #operation} (Each interaction or action.) + */ + public ExampleScenarioProcessStepComponent setOperation(ExampleScenarioProcessStepOperationComponent value) { + this.operation = value; + return this; + } + + /** + * @return {@link #alternative} (Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances.) + */ + public List getAlternative() { + if (this.alternative == null) + this.alternative = new ArrayList(); + return this.alternative; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenarioProcessStepComponent setAlternative(List theAlternative) { + this.alternative = theAlternative; + return this; + } + + public boolean hasAlternative() { + if (this.alternative == null) + return false; + for (ExampleScenarioProcessStepAlternativeComponent item : this.alternative) + if (!item.isEmpty()) + return true; + return false; + } + + public ExampleScenarioProcessStepAlternativeComponent addAlternative() { //3 + ExampleScenarioProcessStepAlternativeComponent t = new ExampleScenarioProcessStepAlternativeComponent(); + if (this.alternative == null) + this.alternative = new ArrayList(); + this.alternative.add(t); + return t; + } + + public ExampleScenarioProcessStepComponent addAlternative(ExampleScenarioProcessStepAlternativeComponent t) { //3 + if (t == null) + return this; + if (this.alternative == null) + this.alternative = new ArrayList(); + this.alternative.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #alternative}, creating it if it does not already exist {3} + */ + public ExampleScenarioProcessStepAlternativeComponent getAlternativeFirstRep() { + if (getAlternative().isEmpty()) { + addAlternative(); + } + return getAlternative().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("process", "@ExampleScenario.process", "Nested process.", 0, java.lang.Integer.MAX_VALUE, process)); + children.add(new Property("pause", "boolean", "If there is a pause in the flow.", 0, 1, pause)); + children.add(new Property("operation", "", "Each interaction or action.", 0, 1, operation)); + children.add(new Property("alternative", "", "Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances.", 0, java.lang.Integer.MAX_VALUE, alternative)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -309518737: /*process*/ return new Property("process", "@ExampleScenario.process", "Nested process.", 0, java.lang.Integer.MAX_VALUE, process); + case 106440182: /*pause*/ return new Property("pause", "boolean", "If there is a pause in the flow.", 0, 1, pause); + case 1662702951: /*operation*/ return new Property("operation", "", "Each interaction or action.", 0, 1, operation); + case -196794451: /*alternative*/ return new Property("alternative", "", "Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances.", 0, java.lang.Integer.MAX_VALUE, alternative); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -309518737: /*process*/ return this.process == null ? new Base[0] : this.process.toArray(new Base[this.process.size()]); // ExampleScenarioProcessComponent + case 106440182: /*pause*/ return this.pause == null ? new Base[0] : new Base[] {this.pause}; // BooleanType + case 1662702951: /*operation*/ return this.operation == null ? new Base[0] : new Base[] {this.operation}; // ExampleScenarioProcessStepOperationComponent + case -196794451: /*alternative*/ return this.alternative == null ? new Base[0] : this.alternative.toArray(new Base[this.alternative.size()]); // ExampleScenarioProcessStepAlternativeComponent + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -309518737: // process + this.getProcess().add((ExampleScenarioProcessComponent) value); // ExampleScenarioProcessComponent + return value; + case 106440182: // pause + this.pause = TypeConvertor.castToBoolean(value); // BooleanType + return value; + case 1662702951: // operation + this.operation = (ExampleScenarioProcessStepOperationComponent) value; // ExampleScenarioProcessStepOperationComponent + return value; + case -196794451: // alternative + this.getAlternative().add((ExampleScenarioProcessStepAlternativeComponent) value); // ExampleScenarioProcessStepAlternativeComponent + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("process")) { + this.getProcess().add((ExampleScenarioProcessComponent) value); + } else if (name.equals("pause")) { + this.pause = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("operation")) { + this.operation = (ExampleScenarioProcessStepOperationComponent) value; // ExampleScenarioProcessStepOperationComponent + } else if (name.equals("alternative")) { + this.getAlternative().add((ExampleScenarioProcessStepAlternativeComponent) value); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -309518737: return addProcess(); + case 106440182: return getPauseElement(); + case 1662702951: return getOperation(); + case -196794451: return addAlternative(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -309518737: /*process*/ return new String[] {"@ExampleScenario.process"}; + case 106440182: /*pause*/ return new String[] {"boolean"}; + case 1662702951: /*operation*/ return new String[] {}; + case -196794451: /*alternative*/ return new String[] {}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + 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"); + } + else if (name.equals("operation")) { + this.operation = new ExampleScenarioProcessStepOperationComponent(); + return this.operation; + } + else if (name.equals("alternative")) { + return addAlternative(); + } + else + return super.addChild(name); + } + + public ExampleScenarioProcessStepComponent copy() { + ExampleScenarioProcessStepComponent dst = new ExampleScenarioProcessStepComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ExampleScenarioProcessStepComponent dst) { + super.copyValues(dst); + if (process != null) { + dst.process = new ArrayList(); + for (ExampleScenarioProcessComponent i : process) + dst.process.add(i.copy()); + }; + dst.pause = pause == null ? null : pause.copy(); + dst.operation = operation == null ? null : operation.copy(); + if (alternative != null) { + dst.alternative = new ArrayList(); + for (ExampleScenarioProcessStepAlternativeComponent i : alternative) + dst.alternative.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ExampleScenarioProcessStepComponent)) + return false; + ExampleScenarioProcessStepComponent o = (ExampleScenarioProcessStepComponent) other_; + return compareDeep(process, o.process, true) && compareDeep(pause, o.pause, true) && compareDeep(operation, o.operation, true) + && compareDeep(alternative, o.alternative, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ExampleScenarioProcessStepComponent)) + return false; + ExampleScenarioProcessStepComponent o = (ExampleScenarioProcessStepComponent) other_; + return compareValues(pause, o.pause, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(process, pause, operation + , alternative); + } + + public String fhirType() { + return "ExampleScenario.process.step"; + + } + + } + + @Block() + public static class ExampleScenarioProcessStepOperationComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The sequential number of the interaction, e.g. 1.2.5. + */ + @Child(name = "number", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The sequential number of the interaction", formalDefinition="The sequential number of the interaction, e.g. 1.2.5." ) + protected StringType number; + + /** + * The type of operation - CRUD. + */ + @Child(name = "type", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The type of operation - CRUD", formalDefinition="The type of operation - CRUD." ) + protected StringType type; + + /** + * The human-friendly name of the interaction. + */ + @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The human-friendly name of the interaction", formalDefinition="The human-friendly name of the interaction." ) + protected StringType name; + + /** + * Who starts the transaction. + */ + @Child(name = "initiator", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Who starts the transaction", formalDefinition="Who starts the transaction." ) + protected StringType initiator; + + /** + * Who receives the transaction. + */ + @Child(name = "receiver", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Who receives the transaction", formalDefinition="Who receives the transaction." ) + protected StringType receiver; + + /** + * A comment to be inserted in the diagram. + */ + @Child(name = "description", type = {MarkdownType.class}, order=6, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A comment to be inserted in the diagram", formalDefinition="A comment to be inserted in the diagram." ) + protected MarkdownType description; + + /** + * Whether the initiator is deactivated right after the transaction. + */ + @Child(name = "initiatorActive", type = {BooleanType.class}, order=7, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Whether the initiator is deactivated right after the transaction", formalDefinition="Whether the initiator is deactivated right after the transaction." ) + protected BooleanType initiatorActive; + + /** + * Whether the receiver is deactivated right after the transaction. + */ + @Child(name = "receiverActive", type = {BooleanType.class}, order=8, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Whether the receiver is deactivated right after the transaction", formalDefinition="Whether the receiver is deactivated right after the transaction." ) + protected BooleanType receiverActive; + + /** + * Each resource instance used by the initiator. + */ + @Child(name = "request", type = {ExampleScenarioInstanceContainedInstanceComponent.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Each resource instance used by the initiator", formalDefinition="Each resource instance used by the initiator." ) + protected ExampleScenarioInstanceContainedInstanceComponent request; + + /** + * Each resource instance used by the responder. + */ + @Child(name = "response", type = {ExampleScenarioInstanceContainedInstanceComponent.class}, order=10, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Each resource instance used by the responder", formalDefinition="Each resource instance used by the responder." ) + protected ExampleScenarioInstanceContainedInstanceComponent response; + + private static final long serialVersionUID = 911241906L; + + /** + * Constructor + */ + public ExampleScenarioProcessStepOperationComponent() { + super(); + } + + /** + * Constructor + */ + public ExampleScenarioProcessStepOperationComponent(String number) { + super(); + this.setNumber(number); + } + + /** + * @return {@link #number} (The sequential number of the interaction, e.g. 1.2.5.). This is the underlying object with id, value and extensions. The accessor "getNumber" gives direct access to the value + */ + public StringType getNumberElement() { + if (this.number == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.number"); + else if (Configuration.doAutoCreate()) + this.number = new StringType(); // bb + return this.number; + } + + public boolean hasNumberElement() { + return this.number != null && !this.number.isEmpty(); + } + + public boolean hasNumber() { + return this.number != null && !this.number.isEmpty(); + } + + /** + * @param value {@link #number} (The sequential number of the interaction, e.g. 1.2.5.). This is the underlying object with id, value and extensions. The accessor "getNumber" gives direct access to the value + */ + public ExampleScenarioProcessStepOperationComponent setNumberElement(StringType value) { + this.number = value; + return this; + } + + /** + * @return The sequential number of the interaction, e.g. 1.2.5. + */ + public String getNumber() { + return this.number == null ? null : this.number.getValue(); + } + + /** + * @param value The sequential number of the interaction, e.g. 1.2.5. + */ + public ExampleScenarioProcessStepOperationComponent setNumber(String value) { + if (this.number == null) + this.number = new StringType(); + this.number.setValue(value); + return this; + } + + /** + * @return {@link #type} (The type of operation - CRUD.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value + */ + public StringType getTypeElement() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new StringType(); // bb + return this.type; + } + + public boolean hasTypeElement() { + return this.type != null && !this.type.isEmpty(); + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (The type of operation - CRUD.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value + */ + public ExampleScenarioProcessStepOperationComponent setTypeElement(StringType value) { + this.type = value; + return this; + } + + /** + * @return The type of operation - CRUD. + */ + public String getType() { + return this.type == null ? null : this.type.getValue(); + } + + /** + * @param value The type of operation - CRUD. + */ + public ExampleScenarioProcessStepOperationComponent setType(String value) { + if (Utilities.noString(value)) + this.type = null; + else { + if (this.type == null) + this.type = new StringType(); + this.type.setValue(value); + } + return this; + } + + /** + * @return {@link #name} (The human-friendly name of the interaction.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public StringType getNameElement() { + if (this.name == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.name"); + else if (Configuration.doAutoCreate()) + this.name = new StringType(); // bb + return this.name; + } + + public boolean hasNameElement() { + return this.name != null && !this.name.isEmpty(); + } + + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); + } + + /** + * @param value {@link #name} (The human-friendly name of the interaction.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public ExampleScenarioProcessStepOperationComponent setNameElement(StringType value) { + this.name = value; + return this; + } + + /** + * @return The human-friendly name of the interaction. + */ + public String getName() { + return this.name == null ? null : this.name.getValue(); + } + + /** + * @param value The human-friendly name of the interaction. + */ + public ExampleScenarioProcessStepOperationComponent setName(String value) { + if (Utilities.noString(value)) + this.name = null; + else { + if (this.name == null) + this.name = new StringType(); + this.name.setValue(value); + } + return this; + } + + /** + * @return {@link #initiator} (Who starts the transaction.). This is the underlying object with id, value and extensions. The accessor "getInitiator" gives direct access to the value + */ + public StringType getInitiatorElement() { + if (this.initiator == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.initiator"); + else if (Configuration.doAutoCreate()) + this.initiator = new StringType(); // bb + return this.initiator; + } + + public boolean hasInitiatorElement() { + return this.initiator != null && !this.initiator.isEmpty(); + } + + public boolean hasInitiator() { + return this.initiator != null && !this.initiator.isEmpty(); + } + + /** + * @param value {@link #initiator} (Who starts the transaction.). This is the underlying object with id, value and extensions. The accessor "getInitiator" gives direct access to the value + */ + public ExampleScenarioProcessStepOperationComponent setInitiatorElement(StringType value) { + this.initiator = value; + return this; + } + + /** + * @return Who starts the transaction. + */ + public String getInitiator() { + return this.initiator == null ? null : this.initiator.getValue(); + } + + /** + * @param value Who starts the transaction. + */ + public ExampleScenarioProcessStepOperationComponent setInitiator(String value) { + if (Utilities.noString(value)) + this.initiator = null; + else { + if (this.initiator == null) + this.initiator = new StringType(); + this.initiator.setValue(value); + } + return this; + } + + /** + * @return {@link #receiver} (Who receives the transaction.). This is the underlying object with id, value and extensions. The accessor "getReceiver" gives direct access to the value + */ + public StringType getReceiverElement() { + if (this.receiver == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.receiver"); + else if (Configuration.doAutoCreate()) + this.receiver = new StringType(); // bb + return this.receiver; + } + + public boolean hasReceiverElement() { + return this.receiver != null && !this.receiver.isEmpty(); + } + + public boolean hasReceiver() { + return this.receiver != null && !this.receiver.isEmpty(); + } + + /** + * @param value {@link #receiver} (Who receives the transaction.). This is the underlying object with id, value and extensions. The accessor "getReceiver" gives direct access to the value + */ + public ExampleScenarioProcessStepOperationComponent setReceiverElement(StringType value) { + this.receiver = value; + return this; + } + + /** + * @return Who receives the transaction. + */ + public String getReceiver() { + return this.receiver == null ? null : this.receiver.getValue(); + } + + /** + * @param value Who receives the transaction. + */ + public ExampleScenarioProcessStepOperationComponent setReceiver(String value) { + if (Utilities.noString(value)) + this.receiver = null; + else { + if (this.receiver == null) + this.receiver = new StringType(); + this.receiver.setValue(value); + } + return this; + } + + /** + * @return {@link #description} (A comment to be inserted in the diagram.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public MarkdownType getDescriptionElement() { + if (this.description == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.description"); + else if (Configuration.doAutoCreate()) + this.description = new MarkdownType(); // bb + return this.description; + } + + public boolean hasDescriptionElement() { + return this.description != null && !this.description.isEmpty(); + } + + public boolean hasDescription() { + return this.description != null && !this.description.isEmpty(); + } + + /** + * @param value {@link #description} (A comment to be inserted in the diagram.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public ExampleScenarioProcessStepOperationComponent setDescriptionElement(MarkdownType value) { + this.description = value; + return this; + } + + /** + * @return A comment to be inserted in the diagram. + */ + public String getDescription() { + return this.description == null ? null : this.description.getValue(); + } + + /** + * @param value A comment to be inserted in the diagram. + */ + public ExampleScenarioProcessStepOperationComponent setDescription(String value) { + if (value == null) + this.description = null; + else { + if (this.description == null) + this.description = new MarkdownType(); + this.description.setValue(value); + } + return this; + } + + /** + * @return {@link #initiatorActive} (Whether the initiator is deactivated right after the transaction.). This is the underlying object with id, value and extensions. The accessor "getInitiatorActive" gives direct access to the value + */ + public BooleanType getInitiatorActiveElement() { + if (this.initiatorActive == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.initiatorActive"); + else if (Configuration.doAutoCreate()) + this.initiatorActive = new BooleanType(); // bb + return this.initiatorActive; + } + + public boolean hasInitiatorActiveElement() { + return this.initiatorActive != null && !this.initiatorActive.isEmpty(); + } + + public boolean hasInitiatorActive() { + return this.initiatorActive != null && !this.initiatorActive.isEmpty(); + } + + /** + * @param value {@link #initiatorActive} (Whether the initiator is deactivated right after the transaction.). This is the underlying object with id, value and extensions. The accessor "getInitiatorActive" gives direct access to the value + */ + public ExampleScenarioProcessStepOperationComponent setInitiatorActiveElement(BooleanType value) { + this.initiatorActive = value; + return this; + } + + /** + * @return Whether the initiator is deactivated right after the transaction. + */ + public boolean getInitiatorActive() { + return this.initiatorActive == null || this.initiatorActive.isEmpty() ? false : this.initiatorActive.getValue(); + } + + /** + * @param value Whether the initiator is deactivated right after the transaction. + */ + public ExampleScenarioProcessStepOperationComponent setInitiatorActive(boolean value) { + if (this.initiatorActive == null) + this.initiatorActive = new BooleanType(); + this.initiatorActive.setValue(value); + return this; + } + + /** + * @return {@link #receiverActive} (Whether the receiver is deactivated right after the transaction.). This is the underlying object with id, value and extensions. The accessor "getReceiverActive" gives direct access to the value + */ + public BooleanType getReceiverActiveElement() { + if (this.receiverActive == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.receiverActive"); + else if (Configuration.doAutoCreate()) + this.receiverActive = new BooleanType(); // bb + return this.receiverActive; + } + + public boolean hasReceiverActiveElement() { + return this.receiverActive != null && !this.receiverActive.isEmpty(); + } + + public boolean hasReceiverActive() { + return this.receiverActive != null && !this.receiverActive.isEmpty(); + } + + /** + * @param value {@link #receiverActive} (Whether the receiver is deactivated right after the transaction.). This is the underlying object with id, value and extensions. The accessor "getReceiverActive" gives direct access to the value + */ + public ExampleScenarioProcessStepOperationComponent setReceiverActiveElement(BooleanType value) { + this.receiverActive = value; + return this; + } + + /** + * @return Whether the receiver is deactivated right after the transaction. + */ + public boolean getReceiverActive() { + return this.receiverActive == null || this.receiverActive.isEmpty() ? false : this.receiverActive.getValue(); + } + + /** + * @param value Whether the receiver is deactivated right after the transaction. + */ + public ExampleScenarioProcessStepOperationComponent setReceiverActive(boolean value) { + if (this.receiverActive == null) + this.receiverActive = new BooleanType(); + this.receiverActive.setValue(value); + return this; + } + + /** + * @return {@link #request} (Each resource instance used by the initiator.) + */ + public ExampleScenarioInstanceContainedInstanceComponent getRequest() { + if (this.request == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.request"); + else if (Configuration.doAutoCreate()) + this.request = new ExampleScenarioInstanceContainedInstanceComponent(); // cc + return this.request; + } + + public boolean hasRequest() { + return this.request != null && !this.request.isEmpty(); + } + + /** + * @param value {@link #request} (Each resource instance used by the initiator.) + */ + public ExampleScenarioProcessStepOperationComponent setRequest(ExampleScenarioInstanceContainedInstanceComponent value) { + this.request = value; + return this; + } + + /** + * @return {@link #response} (Each resource instance used by the responder.) + */ + public ExampleScenarioInstanceContainedInstanceComponent getResponse() { + if (this.response == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.response"); + else if (Configuration.doAutoCreate()) + this.response = new ExampleScenarioInstanceContainedInstanceComponent(); // cc + return this.response; + } + + public boolean hasResponse() { + return this.response != null && !this.response.isEmpty(); + } + + /** + * @param value {@link #response} (Each resource instance used by the responder.) + */ + public ExampleScenarioProcessStepOperationComponent setResponse(ExampleScenarioInstanceContainedInstanceComponent value) { + this.response = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("number", "string", "The sequential number of the interaction, e.g. 1.2.5.", 0, 1, number)); + children.add(new Property("type", "string", "The type of operation - CRUD.", 0, 1, type)); + children.add(new Property("name", "string", "The human-friendly name of the interaction.", 0, 1, name)); + children.add(new Property("initiator", "string", "Who starts the transaction.", 0, 1, initiator)); + children.add(new Property("receiver", "string", "Who receives the transaction.", 0, 1, receiver)); + children.add(new Property("description", "markdown", "A comment to be inserted in the diagram.", 0, 1, description)); + children.add(new Property("initiatorActive", "boolean", "Whether the initiator is deactivated right after the transaction.", 0, 1, initiatorActive)); + children.add(new Property("receiverActive", "boolean", "Whether the receiver is deactivated right after the transaction.", 0, 1, receiverActive)); + children.add(new Property("request", "@ExampleScenario.instance.containedInstance", "Each resource instance used by the initiator.", 0, 1, request)); + children.add(new Property("response", "@ExampleScenario.instance.containedInstance", "Each resource instance used by the responder.", 0, 1, response)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1034364087: /*number*/ return new Property("number", "string", "The sequential number of the interaction, e.g. 1.2.5.", 0, 1, number); + case 3575610: /*type*/ return new Property("type", "string", "The type of operation - CRUD.", 0, 1, type); + case 3373707: /*name*/ return new Property("name", "string", "The human-friendly name of the interaction.", 0, 1, name); + case -248987089: /*initiator*/ return new Property("initiator", "string", "Who starts the transaction.", 0, 1, initiator); + case -808719889: /*receiver*/ return new Property("receiver", "string", "Who receives the transaction.", 0, 1, receiver); + case -1724546052: /*description*/ return new Property("description", "markdown", "A comment to be inserted in the diagram.", 0, 1, description); + case 384339477: /*initiatorActive*/ return new Property("initiatorActive", "boolean", "Whether the initiator is deactivated right after the transaction.", 0, 1, initiatorActive); + case -285284907: /*receiverActive*/ return new Property("receiverActive", "boolean", "Whether the receiver is deactivated right after the transaction.", 0, 1, receiverActive); + case 1095692943: /*request*/ return new Property("request", "@ExampleScenario.instance.containedInstance", "Each resource instance used by the initiator.", 0, 1, request); + case -340323263: /*response*/ return new Property("response", "@ExampleScenario.instance.containedInstance", "Each resource instance used by the responder.", 0, 1, response); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1034364087: /*number*/ return this.number == null ? new Base[0] : new Base[] {this.number}; // StringType + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // StringType + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType + case -248987089: /*initiator*/ return this.initiator == null ? new Base[0] : new Base[] {this.initiator}; // StringType + case -808719889: /*receiver*/ return this.receiver == null ? new Base[0] : new Base[] {this.receiver}; // StringType + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType + case 384339477: /*initiatorActive*/ return this.initiatorActive == null ? new Base[0] : new Base[] {this.initiatorActive}; // BooleanType + case -285284907: /*receiverActive*/ return this.receiverActive == null ? new Base[0] : new Base[] {this.receiverActive}; // BooleanType + case 1095692943: /*request*/ return this.request == null ? new Base[0] : new Base[] {this.request}; // ExampleScenarioInstanceContainedInstanceComponent + case -340323263: /*response*/ return this.response == null ? new Base[0] : new Base[] {this.response}; // ExampleScenarioInstanceContainedInstanceComponent + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1034364087: // number + this.number = TypeConvertor.castToString(value); // StringType + return value; + case 3575610: // type + this.type = TypeConvertor.castToString(value); // StringType + return value; + case 3373707: // name + this.name = TypeConvertor.castToString(value); // StringType + return value; + case -248987089: // initiator + this.initiator = TypeConvertor.castToString(value); // StringType + return value; + case -808719889: // receiver + this.receiver = TypeConvertor.castToString(value); // StringType + return value; + case -1724546052: // description + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case 384339477: // initiatorActive + this.initiatorActive = TypeConvertor.castToBoolean(value); // BooleanType + return value; + case -285284907: // receiverActive + this.receiverActive = TypeConvertor.castToBoolean(value); // BooleanType + return value; + case 1095692943: // request + this.request = (ExampleScenarioInstanceContainedInstanceComponent) value; // ExampleScenarioInstanceContainedInstanceComponent + return value; + case -340323263: // response + this.response = (ExampleScenarioInstanceContainedInstanceComponent) value; // ExampleScenarioInstanceContainedInstanceComponent + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("number")) { + this.number = TypeConvertor.castToString(value); // StringType + } else if (name.equals("type")) { + this.type = TypeConvertor.castToString(value); // StringType + } else if (name.equals("name")) { + this.name = TypeConvertor.castToString(value); // StringType + } else if (name.equals("initiator")) { + this.initiator = TypeConvertor.castToString(value); // StringType + } else if (name.equals("receiver")) { + this.receiver = TypeConvertor.castToString(value); // StringType + } else if (name.equals("description")) { + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("initiatorActive")) { + this.initiatorActive = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("receiverActive")) { + this.receiverActive = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("request")) { + this.request = (ExampleScenarioInstanceContainedInstanceComponent) value; // ExampleScenarioInstanceContainedInstanceComponent + } else if (name.equals("response")) { + this.response = (ExampleScenarioInstanceContainedInstanceComponent) value; // ExampleScenarioInstanceContainedInstanceComponent + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1034364087: return getNumberElement(); + case 3575610: return getTypeElement(); + case 3373707: return getNameElement(); + case -248987089: return getInitiatorElement(); + case -808719889: return getReceiverElement(); + case -1724546052: return getDescriptionElement(); + case 384339477: return getInitiatorActiveElement(); + case -285284907: return getReceiverActiveElement(); + case 1095692943: return getRequest(); + case -340323263: return getResponse(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1034364087: /*number*/ return new String[] {"string"}; + case 3575610: /*type*/ return new String[] {"string"}; + case 3373707: /*name*/ return new String[] {"string"}; + case -248987089: /*initiator*/ return new String[] {"string"}; + case -808719889: /*receiver*/ return new String[] {"string"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; + case 384339477: /*initiatorActive*/ return new String[] {"boolean"}; + case -285284907: /*receiverActive*/ return new String[] {"boolean"}; + case 1095692943: /*request*/ return new String[] {"@ExampleScenario.instance.containedInstance"}; + case -340323263: /*response*/ return new String[] {"@ExampleScenario.instance.containedInstance"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @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.operation.number"); + } + else if (name.equals("type")) { + throw new FHIRException("Cannot call addChild on a primitive type 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"); + } + else if (name.equals("initiator")) { + throw new FHIRException("Cannot call addChild on a primitive type 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"); + } + else if (name.equals("description")) { + throw new FHIRException("Cannot call addChild on a primitive type 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"); + } + else if (name.equals("receiverActive")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.operation.receiverActive"); + } + else if (name.equals("request")) { + this.request = new ExampleScenarioInstanceContainedInstanceComponent(); + return this.request; + } + else if (name.equals("response")) { + this.response = new ExampleScenarioInstanceContainedInstanceComponent(); + return this.response; + } + else + return super.addChild(name); + } + + public ExampleScenarioProcessStepOperationComponent copy() { + ExampleScenarioProcessStepOperationComponent dst = new ExampleScenarioProcessStepOperationComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ExampleScenarioProcessStepOperationComponent dst) { + super.copyValues(dst); + dst.number = number == null ? null : number.copy(); + dst.type = type == null ? null : type.copy(); + dst.name = name == null ? null : name.copy(); + dst.initiator = initiator == null ? null : initiator.copy(); + dst.receiver = receiver == null ? null : receiver.copy(); + dst.description = description == null ? null : description.copy(); + dst.initiatorActive = initiatorActive == null ? null : initiatorActive.copy(); + dst.receiverActive = receiverActive == null ? null : receiverActive.copy(); + dst.request = request == null ? null : request.copy(); + dst.response = response == null ? null : response.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ExampleScenarioProcessStepOperationComponent)) + return false; + ExampleScenarioProcessStepOperationComponent o = (ExampleScenarioProcessStepOperationComponent) other_; + return compareDeep(number, o.number, true) && compareDeep(type, o.type, true) && compareDeep(name, o.name, true) + && compareDeep(initiator, o.initiator, true) && compareDeep(receiver, o.receiver, true) && compareDeep(description, o.description, true) + && compareDeep(initiatorActive, o.initiatorActive, true) && compareDeep(receiverActive, o.receiverActive, true) + && compareDeep(request, o.request, true) && compareDeep(response, o.response, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ExampleScenarioProcessStepOperationComponent)) + return false; + ExampleScenarioProcessStepOperationComponent o = (ExampleScenarioProcessStepOperationComponent) other_; + return compareValues(number, o.number, true) && compareValues(type, o.type, true) && compareValues(name, o.name, true) + && compareValues(initiator, o.initiator, true) && compareValues(receiver, o.receiver, true) && compareValues(description, o.description, true) + && compareValues(initiatorActive, o.initiatorActive, true) && compareValues(receiverActive, o.receiverActive, true) + ; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(number, type, name, initiator + , receiver, description, initiatorActive, receiverActive, request, response); + } + + public String fhirType() { + return "ExampleScenario.process.step.operation"; + + } + + } + + @Block() + public static class ExampleScenarioProcessStepAlternativeComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked. + */ + @Child(name = "title", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Label for alternative", formalDefinition="The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked." ) + protected StringType title; + + /** + * A human-readable description of the alternative explaining when the alternative should occur rather than the base step. + */ + @Child(name = "description", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A human-readable description of each option", formalDefinition="A human-readable description of the alternative explaining when the alternative should occur rather than the base step." ) + protected MarkdownType description; + + /** + * What happens in each alternative option. + */ + @Child(name = "step", type = {ExampleScenarioProcessStepComponent.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="What happens in each alternative option", formalDefinition="What happens in each alternative option." ) + protected List step; + + private static final long serialVersionUID = -254687460L; + + /** + * Constructor + */ + public ExampleScenarioProcessStepAlternativeComponent() { + super(); + } + + /** + * Constructor + */ + public ExampleScenarioProcessStepAlternativeComponent(String title) { + super(); + this.setTitle(title); + } + + /** + * @return {@link #title} (The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public StringType getTitleElement() { + if (this.title == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepAlternativeComponent.title"); + else if (Configuration.doAutoCreate()) + this.title = new StringType(); // bb + return this.title; + } + + public boolean hasTitleElement() { + return this.title != null && !this.title.isEmpty(); + } + + public boolean hasTitle() { + return this.title != null && !this.title.isEmpty(); + } + + /** + * @param value {@link #title} (The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public ExampleScenarioProcessStepAlternativeComponent setTitleElement(StringType value) { + this.title = value; + return this; + } + + /** + * @return The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked. + */ + public String getTitle() { + return this.title == null ? null : this.title.getValue(); + } + + /** + * @param value The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked. + */ + public ExampleScenarioProcessStepAlternativeComponent setTitle(String value) { + if (this.title == null) + this.title = new StringType(); + this.title.setValue(value); + return this; + } + + /** + * @return {@link #description} (A human-readable description of the alternative explaining when the alternative should occur rather than the base step.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public MarkdownType getDescriptionElement() { + if (this.description == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenarioProcessStepAlternativeComponent.description"); + else if (Configuration.doAutoCreate()) + this.description = new MarkdownType(); // bb + return this.description; + } + + public boolean hasDescriptionElement() { + return this.description != null && !this.description.isEmpty(); + } + + public boolean hasDescription() { + return this.description != null && !this.description.isEmpty(); + } + + /** + * @param value {@link #description} (A human-readable description of the alternative explaining when the alternative should occur rather than the base step.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public ExampleScenarioProcessStepAlternativeComponent setDescriptionElement(MarkdownType value) { + this.description = value; + return this; + } + + /** + * @return A human-readable description of the alternative explaining when the alternative should occur rather than the base step. + */ + public String getDescription() { + return this.description == null ? null : this.description.getValue(); + } + + /** + * @param value A human-readable description of the alternative explaining when the alternative should occur rather than the base step. + */ + public ExampleScenarioProcessStepAlternativeComponent setDescription(String value) { + if (value == null) + this.description = null; + else { + if (this.description == null) + this.description = new MarkdownType(); + this.description.setValue(value); + } + return this; + } + + /** + * @return {@link #step} (What happens in each alternative option.) + */ + public List getStep() { + if (this.step == null) + this.step = new ArrayList(); + return this.step; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenarioProcessStepAlternativeComponent setStep(List theStep) { + this.step = theStep; + return this; + } + + public boolean hasStep() { + if (this.step == null) + return false; + for (ExampleScenarioProcessStepComponent item : this.step) + if (!item.isEmpty()) + return true; + return false; + } + + public ExampleScenarioProcessStepComponent addStep() { //3 + ExampleScenarioProcessStepComponent t = new ExampleScenarioProcessStepComponent(); + if (this.step == null) + this.step = new ArrayList(); + this.step.add(t); + return t; + } + + public ExampleScenarioProcessStepAlternativeComponent addStep(ExampleScenarioProcessStepComponent t) { //3 + if (t == null) + return this; + if (this.step == null) + this.step = new ArrayList(); + this.step.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #step}, creating it if it does not already exist {3} + */ + public ExampleScenarioProcessStepComponent getStepFirstRep() { + if (getStep().isEmpty()) { + addStep(); + } + return getStep().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("title", "string", "The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked.", 0, 1, title)); + children.add(new Property("description", "markdown", "A human-readable description of the alternative explaining when the alternative should occur rather than the base step.", 0, 1, description)); + children.add(new Property("step", "@ExampleScenario.process.step", "What happens in each alternative option.", 0, java.lang.Integer.MAX_VALUE, step)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 110371416: /*title*/ return new Property("title", "string", "The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked.", 0, 1, title); + case -1724546052: /*description*/ return new Property("description", "markdown", "A human-readable description of the alternative explaining when the alternative should occur rather than the base step.", 0, 1, description); + case 3540684: /*step*/ return new Property("step", "@ExampleScenario.process.step", "What happens in each alternative option.", 0, java.lang.Integer.MAX_VALUE, step); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType + case 3540684: /*step*/ return this.step == null ? new Base[0] : this.step.toArray(new Base[this.step.size()]); // ExampleScenarioProcessStepComponent + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 110371416: // title + this.title = TypeConvertor.castToString(value); // StringType + return value; + case -1724546052: // description + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case 3540684: // step + this.getStep().add((ExampleScenarioProcessStepComponent) value); // ExampleScenarioProcessStepComponent + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = TypeConvertor.castToString(value); // StringType + } else if (name.equals("description")) { + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("step")) { + this.getStep().add((ExampleScenarioProcessStepComponent) value); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 110371416: return getTitleElement(); + case -1724546052: return getDescriptionElement(); + case 3540684: return addStep(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 110371416: /*title*/ return new String[] {"string"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; + case 3540684: /*step*/ return new String[] {"@ExampleScenario.process.step"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("title")) { + throw new FHIRException("Cannot call addChild on a primitive type 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"); + } + else if (name.equals("step")) { + return addStep(); + } + else + return super.addChild(name); + } + + public ExampleScenarioProcessStepAlternativeComponent copy() { + ExampleScenarioProcessStepAlternativeComponent dst = new ExampleScenarioProcessStepAlternativeComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ExampleScenarioProcessStepAlternativeComponent dst) { + super.copyValues(dst); + dst.title = title == null ? null : title.copy(); + dst.description = description == null ? null : description.copy(); + if (step != null) { + dst.step = new ArrayList(); + for (ExampleScenarioProcessStepComponent i : step) + dst.step.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ExampleScenarioProcessStepAlternativeComponent)) + return false; + ExampleScenarioProcessStepAlternativeComponent o = (ExampleScenarioProcessStepAlternativeComponent) other_; + return compareDeep(title, o.title, true) && compareDeep(description, o.description, true) && compareDeep(step, o.step, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ExampleScenarioProcessStepAlternativeComponent)) + return false; + ExampleScenarioProcessStepAlternativeComponent o = (ExampleScenarioProcessStepAlternativeComponent) other_; + return compareValues(title, o.title, true) && compareValues(description, o.description, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(title, description, step + ); + } + + public String fhirType() { + return "ExampleScenario.process.step.alternative"; + + } + + } + + /** + * An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers. + */ + @Child(name = "url", type = {UriType.class}, order=0, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Canonical identifier for this example scenario, represented as a URI (globally unique)", formalDefinition="An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers." ) + protected UriType url; + + /** + * A formal identifier that is used to identify this example scenario when it is represented in other formats, or referenced in a specification, model, design or an instance. + */ + @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Additional identifier for the example scenario", formalDefinition="A formal identifier that is used to identify this example scenario when it is represented in other formats, or referenced in a specification, model, design or an instance." ) + protected List identifier; + + /** + * The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. + */ + @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Business version of the example scenario", formalDefinition="The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." ) + protected StringType version; + + /** + * A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation. + */ + @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Name for this example scenario (computer friendly)", formalDefinition="A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation." ) protected StringType name; /** - * Human-friendly description of the resource instance. + * The status of this example scenario. Enables tracking the life-cycle of the content. */ - @Child(name = "description", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Human-friendly description of the resource instance", formalDefinition="Human-friendly description of the resource instance." ) - protected MarkdownType description; + @Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1, modifier=true, summary=true) + @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The status of this example scenario. Enables tracking the life-cycle of the content." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status") + protected Enumeration status; /** - * A specific version of the resource. + * A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. */ - @Child(name = "version", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="A specific version of the resource", formalDefinition="A specific version of the resource." ) - protected List version; + @Child(name = "experimental", type = {BooleanType.class}, order=5, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="For testing purposes, not real usage", formalDefinition="A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage." ) + protected BooleanType experimental; /** - * Resources contained in the instance (e.g. the observations contained in a bundle). + * The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition'). */ - @Child(name = "containedInstance", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Resources contained in the instance", formalDefinition="Resources contained in the instance (e.g. the observations contained in a bundle)." ) - protected List containedInstance; - - private static final long serialVersionUID = -1928273130L; - - /** - * Constructor - */ - public ExampleScenarioInstanceComponent() { - super(); - } - - /** - * Constructor - */ - public ExampleScenarioInstanceComponent(String resourceId, String resourceType) { - super(); - this.setResourceId(resourceId); - this.setResourceType(resourceType); - } - - /** - * @return {@link #resourceId} (The id of the resource for referencing.). This is the underlying object with id, value and extensions. The accessor "getResourceId" gives direct access to the value - */ - public StringType getResourceIdElement() { - if (this.resourceId == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioInstanceComponent.resourceId"); - else if (Configuration.doAutoCreate()) - this.resourceId = new StringType(); // bb - return this.resourceId; - } - - public boolean hasResourceIdElement() { - return this.resourceId != null && !this.resourceId.isEmpty(); - } - - public boolean hasResourceId() { - return this.resourceId != null && !this.resourceId.isEmpty(); - } - - /** - * @param value {@link #resourceId} (The id of the resource for referencing.). This is the underlying object with id, value and extensions. The accessor "getResourceId" gives direct access to the value - */ - public ExampleScenarioInstanceComponent setResourceIdElement(StringType value) { - this.resourceId = value; - return this; - } - - /** - * @return The id of the resource for referencing. - */ - public String getResourceId() { - return this.resourceId == null ? null : this.resourceId.getValue(); - } - - /** - * @param value The id of the resource for referencing. - */ - public ExampleScenarioInstanceComponent setResourceId(String value) { - if (this.resourceId == null) - this.resourceId = new StringType(); - this.resourceId.setValue(value); - return this; - } - - /** - * @return {@link #resourceType} (The type of the resource.). This is the underlying object with id, value and extensions. The accessor "getResourceType" gives direct access to the value - */ - public CodeType getResourceTypeElement() { - if (this.resourceType == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioInstanceComponent.resourceType"); - else if (Configuration.doAutoCreate()) - this.resourceType = new CodeType(); // bb - return this.resourceType; - } - - public boolean hasResourceTypeElement() { - return this.resourceType != null && !this.resourceType.isEmpty(); - } - - public boolean hasResourceType() { - return this.resourceType != null && !this.resourceType.isEmpty(); - } - - /** - * @param value {@link #resourceType} (The type of the resource.). This is the underlying object with id, value and extensions. The accessor "getResourceType" gives direct access to the value - */ - public ExampleScenarioInstanceComponent setResourceTypeElement(CodeType value) { - this.resourceType = value; - return this; - } - - /** - * @return The type of the resource. - */ - public String getResourceType() { - return this.resourceType == null ? null : this.resourceType.getValue(); - } - - /** - * @param value The type of the resource. - */ - public ExampleScenarioInstanceComponent setResourceType(String value) { - if (this.resourceType == null) - this.resourceType = new CodeType(); - this.resourceType.setValue(value); - return this; - } - - /** - * @return {@link #name} (A short name for the resource instance.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public StringType getNameElement() { - if (this.name == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioInstanceComponent.name"); - else if (Configuration.doAutoCreate()) - this.name = new StringType(); // bb - return this.name; - } - - public boolean hasNameElement() { - return this.name != null && !this.name.isEmpty(); - } - - public boolean hasName() { - return this.name != null && !this.name.isEmpty(); - } - - /** - * @param value {@link #name} (A short name for the resource instance.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public ExampleScenarioInstanceComponent setNameElement(StringType value) { - this.name = value; - return this; - } - - /** - * @return A short name for the resource instance. - */ - public String getName() { - return this.name == null ? null : this.name.getValue(); - } - - /** - * @param value A short name for the resource instance. - */ - public ExampleScenarioInstanceComponent setName(String value) { - if (Utilities.noString(value)) - this.name = null; - else { - if (this.name == null) - this.name = new StringType(); - this.name.setValue(value); - } - return this; - } - - /** - * @return {@link #description} (Human-friendly description of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public MarkdownType getDescriptionElement() { - if (this.description == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioInstanceComponent.description"); - else if (Configuration.doAutoCreate()) - this.description = new MarkdownType(); // bb - return this.description; - } - - public boolean hasDescriptionElement() { - return this.description != null && !this.description.isEmpty(); - } - - public boolean hasDescription() { - return this.description != null && !this.description.isEmpty(); - } - - /** - * @param value {@link #description} (Human-friendly description of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public ExampleScenarioInstanceComponent setDescriptionElement(MarkdownType value) { - this.description = value; - return this; - } - - /** - * @return Human-friendly description of the resource instance. - */ - public String getDescription() { - return this.description == null ? null : this.description.getValue(); - } - - /** - * @param value Human-friendly description of the resource instance. - */ - public ExampleScenarioInstanceComponent setDescription(String value) { - if (value == null) - this.description = null; - else { - if (this.description == null) - this.description = new MarkdownType(); - this.description.setValue(value); - } - return this; - } - - /** - * @return {@link #version} (A specific version of the resource.) - */ - public List getVersion() { - if (this.version == null) - this.version = new ArrayList(); - return this.version; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenarioInstanceComponent setVersion(List theVersion) { - this.version = theVersion; - return this; - } - - public boolean hasVersion() { - if (this.version == null) - return false; - for (ExampleScenarioInstanceVersionComponent item : this.version) - if (!item.isEmpty()) - return true; - return false; - } - - public ExampleScenarioInstanceVersionComponent addVersion() { //3 - ExampleScenarioInstanceVersionComponent t = new ExampleScenarioInstanceVersionComponent(); - if (this.version == null) - this.version = new ArrayList(); - this.version.add(t); - return t; - } - - public ExampleScenarioInstanceComponent addVersion(ExampleScenarioInstanceVersionComponent t) { //3 - if (t == null) - return this; - if (this.version == null) - this.version = new ArrayList(); - this.version.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #version}, creating it if it does not already exist {3} - */ - public ExampleScenarioInstanceVersionComponent getVersionFirstRep() { - if (getVersion().isEmpty()) { - addVersion(); - } - return getVersion().get(0); - } - - /** - * @return {@link #containedInstance} (Resources contained in the instance (e.g. the observations contained in a bundle).) - */ - public List getContainedInstance() { - if (this.containedInstance == null) - this.containedInstance = new ArrayList(); - return this.containedInstance; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenarioInstanceComponent setContainedInstance(List theContainedInstance) { - this.containedInstance = theContainedInstance; - return this; - } - - public boolean hasContainedInstance() { - if (this.containedInstance == null) - return false; - for (ExampleScenarioInstanceContainedInstanceComponent item : this.containedInstance) - if (!item.isEmpty()) - return true; - return false; - } - - public ExampleScenarioInstanceContainedInstanceComponent addContainedInstance() { //3 - ExampleScenarioInstanceContainedInstanceComponent t = new ExampleScenarioInstanceContainedInstanceComponent(); - if (this.containedInstance == null) - this.containedInstance = new ArrayList(); - this.containedInstance.add(t); - return t; - } - - public ExampleScenarioInstanceComponent addContainedInstance(ExampleScenarioInstanceContainedInstanceComponent t) { //3 - if (t == null) - return this; - if (this.containedInstance == null) - this.containedInstance = new ArrayList(); - this.containedInstance.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #containedInstance}, creating it if it does not already exist {3} - */ - public ExampleScenarioInstanceContainedInstanceComponent getContainedInstanceFirstRep() { - if (getContainedInstance().isEmpty()) { - addContainedInstance(); - } - return getContainedInstance().get(0); - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("resourceId", "string", "The id of the resource for referencing.", 0, 1, resourceId)); - children.add(new Property("resourceType", "code", "The type of the resource.", 0, 1, resourceType)); - children.add(new Property("name", "string", "A short name for the resource instance.", 0, 1, name)); - children.add(new Property("description", "markdown", "Human-friendly description of the resource instance.", 0, 1, description)); - children.add(new Property("version", "", "A specific version of the resource.", 0, java.lang.Integer.MAX_VALUE, version)); - children.add(new Property("containedInstance", "", "Resources contained in the instance (e.g. the observations contained in a bundle).", 0, java.lang.Integer.MAX_VALUE, containedInstance)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -1345650231: /*resourceId*/ return new Property("resourceId", "string", "The id of the resource for referencing.", 0, 1, resourceId); - case -384364440: /*resourceType*/ return new Property("resourceType", "code", "The type of the resource.", 0, 1, resourceType); - case 3373707: /*name*/ return new Property("name", "string", "A short name for the resource instance.", 0, 1, name); - case -1724546052: /*description*/ return new Property("description", "markdown", "Human-friendly description of the resource instance.", 0, 1, description); - case 351608024: /*version*/ return new Property("version", "", "A specific version of the resource.", 0, java.lang.Integer.MAX_VALUE, version); - case -417062360: /*containedInstance*/ return new Property("containedInstance", "", "Resources contained in the instance (e.g. the observations contained in a bundle).", 0, java.lang.Integer.MAX_VALUE, containedInstance); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -1345650231: /*resourceId*/ return this.resourceId == null ? new Base[0] : new Base[] {this.resourceId}; // StringType - case -384364440: /*resourceType*/ return this.resourceType == null ? new Base[0] : new Base[] {this.resourceType}; // CodeType - case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType - case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType - case 351608024: /*version*/ return this.version == null ? new Base[0] : this.version.toArray(new Base[this.version.size()]); // ExampleScenarioInstanceVersionComponent - case -417062360: /*containedInstance*/ return this.containedInstance == null ? new Base[0] : this.containedInstance.toArray(new Base[this.containedInstance.size()]); // ExampleScenarioInstanceContainedInstanceComponent - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -1345650231: // resourceId - this.resourceId = TypeConvertor.castToString(value); // StringType - return value; - case -384364440: // resourceType - this.resourceType = TypeConvertor.castToCode(value); // CodeType - return value; - case 3373707: // name - this.name = TypeConvertor.castToString(value); // StringType - return value; - case -1724546052: // description - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case 351608024: // version - this.getVersion().add((ExampleScenarioInstanceVersionComponent) value); // ExampleScenarioInstanceVersionComponent - return value; - case -417062360: // containedInstance - this.getContainedInstance().add((ExampleScenarioInstanceContainedInstanceComponent) value); // ExampleScenarioInstanceContainedInstanceComponent - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("resourceId")) { - this.resourceId = TypeConvertor.castToString(value); // StringType - } else if (name.equals("resourceType")) { - this.resourceType = TypeConvertor.castToCode(value); // CodeType - } else if (name.equals("name")) { - this.name = TypeConvertor.castToString(value); // StringType - } else if (name.equals("description")) { - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("version")) { - this.getVersion().add((ExampleScenarioInstanceVersionComponent) value); - } else if (name.equals("containedInstance")) { - this.getContainedInstance().add((ExampleScenarioInstanceContainedInstanceComponent) value); - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1345650231: return getResourceIdElement(); - case -384364440: return getResourceTypeElement(); - case 3373707: return getNameElement(); - case -1724546052: return getDescriptionElement(); - case 351608024: return addVersion(); - case -417062360: return addContainedInstance(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1345650231: /*resourceId*/ return new String[] {"string"}; - case -384364440: /*resourceType*/ return new String[] {"code"}; - case 3373707: /*name*/ return new String[] {"string"}; - case -1724546052: /*description*/ return new String[] {"markdown"}; - case 351608024: /*version*/ return new String[] {}; - case -417062360: /*containedInstance*/ return new String[] {}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @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"); - } - else if (name.equals("resourceType")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.resourceType"); - } - else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.name"); - } - else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.description"); - } - else if (name.equals("version")) { - return addVersion(); - } - else if (name.equals("containedInstance")) { - return addContainedInstance(); - } - else - return super.addChild(name); - } - - public ExampleScenarioInstanceComponent copy() { - ExampleScenarioInstanceComponent dst = new ExampleScenarioInstanceComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(ExampleScenarioInstanceComponent dst) { - super.copyValues(dst); - dst.resourceId = resourceId == null ? null : resourceId.copy(); - dst.resourceType = resourceType == null ? null : resourceType.copy(); - dst.name = name == null ? null : name.copy(); - dst.description = description == null ? null : description.copy(); - if (version != null) { - dst.version = new ArrayList(); - for (ExampleScenarioInstanceVersionComponent i : version) - dst.version.add(i.copy()); - }; - if (containedInstance != null) { - dst.containedInstance = new ArrayList(); - for (ExampleScenarioInstanceContainedInstanceComponent i : containedInstance) - dst.containedInstance.add(i.copy()); - }; - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof ExampleScenarioInstanceComponent)) - return false; - ExampleScenarioInstanceComponent o = (ExampleScenarioInstanceComponent) other_; - return compareDeep(resourceId, o.resourceId, true) && compareDeep(resourceType, o.resourceType, true) - && compareDeep(name, o.name, true) && compareDeep(description, o.description, true) && compareDeep(version, o.version, true) - && compareDeep(containedInstance, o.containedInstance, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof ExampleScenarioInstanceComponent)) - return false; - ExampleScenarioInstanceComponent o = (ExampleScenarioInstanceComponent) other_; - return compareValues(resourceId, o.resourceId, true) && compareValues(resourceType, o.resourceType, true) - && compareValues(name, o.name, true) && compareValues(description, o.description, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(resourceId, resourceType, name - , description, version, containedInstance); - } - - public String fhirType() { - return "ExampleScenario.instance"; - - } - - } - - @Block() - public static class ExampleScenarioInstanceVersionComponent extends BackboneElement implements IBaseBackboneElement { - /** - * The identifier of a specific version of a resource. - */ - @Child(name = "versionId", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="The identifier of a specific version of a resource", formalDefinition="The identifier of a specific version of a resource." ) - protected StringType versionId; - - /** - * The description of the resource version. - */ - @Child(name = "description", type = {MarkdownType.class}, order=2, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="The description of the resource version", formalDefinition="The description of the resource version." ) - protected MarkdownType description; - - private static final long serialVersionUID = 960821913L; - - /** - * Constructor - */ - public ExampleScenarioInstanceVersionComponent() { - super(); - } - - /** - * Constructor - */ - public ExampleScenarioInstanceVersionComponent(String versionId, String description) { - super(); - this.setVersionId(versionId); - this.setDescription(description); - } - - /** - * @return {@link #versionId} (The identifier of a specific version of a resource.). This is the underlying object with id, value and extensions. The accessor "getVersionId" gives direct access to the value - */ - public StringType getVersionIdElement() { - if (this.versionId == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioInstanceVersionComponent.versionId"); - else if (Configuration.doAutoCreate()) - this.versionId = new StringType(); // bb - return this.versionId; - } - - public boolean hasVersionIdElement() { - return this.versionId != null && !this.versionId.isEmpty(); - } - - public boolean hasVersionId() { - return this.versionId != null && !this.versionId.isEmpty(); - } - - /** - * @param value {@link #versionId} (The identifier of a specific version of a resource.). This is the underlying object with id, value and extensions. The accessor "getVersionId" gives direct access to the value - */ - public ExampleScenarioInstanceVersionComponent setVersionIdElement(StringType value) { - this.versionId = value; - return this; - } - - /** - * @return The identifier of a specific version of a resource. - */ - public String getVersionId() { - return this.versionId == null ? null : this.versionId.getValue(); - } - - /** - * @param value The identifier of a specific version of a resource. - */ - public ExampleScenarioInstanceVersionComponent setVersionId(String value) { - if (this.versionId == null) - this.versionId = new StringType(); - this.versionId.setValue(value); - return this; - } + @Child(name = "date", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Date last changed", formalDefinition="The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition')." ) + protected DateTimeType date; /** - * @return {@link #description} (The description of the resource version.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + * The name of the organization or individual that published the example scenario. */ - public MarkdownType getDescriptionElement() { - if (this.description == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioInstanceVersionComponent.description"); - else if (Configuration.doAutoCreate()) - this.description = new MarkdownType(); // bb - return this.description; - } - - public boolean hasDescriptionElement() { - return this.description != null && !this.description.isEmpty(); - } - - public boolean hasDescription() { - return this.description != null && !this.description.isEmpty(); - } + @Child(name = "publisher", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Name of the publisher (organization or individual)", formalDefinition="The name of the organization or individual that published the example scenario." ) + protected StringType publisher; /** - * @param value {@link #description} (The description of the resource version.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + * Contact details to assist a user in finding and communicating with the publisher. */ - public ExampleScenarioInstanceVersionComponent setDescriptionElement(MarkdownType value) { - this.description = value; - return this; - } + @Child(name = "contact", type = {ContactDetail.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Contact details for the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) + protected List contact; /** - * @return The description of the resource version. + * The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances. */ - public String getDescription() { - return this.description == null ? null : this.description.getValue(); - } + @Child(name = "useContext", type = {UsageContext.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="The context that the content is intended to support", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances." ) + protected List useContext; /** - * @param value The description of the resource version. + * A legal or geographic region in which the example scenario is intended to be used. */ - public ExampleScenarioInstanceVersionComponent setDescription(String value) { - if (this.description == null) - this.description = new MarkdownType(); - this.description.setValue(value); - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("versionId", "string", "The identifier of a specific version of a resource.", 0, 1, versionId)); - children.add(new Property("description", "markdown", "The description of the resource version.", 0, 1, description)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -1407102957: /*versionId*/ return new Property("versionId", "string", "The identifier of a specific version of a resource.", 0, 1, versionId); - case -1724546052: /*description*/ return new Property("description", "markdown", "The description of the resource version.", 0, 1, description); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } + @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Intended jurisdiction for example scenario (if applicable)", formalDefinition="A legal or geographic region in which the example scenario is intended to be used." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction") + protected List jurisdiction; - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -1407102957: /*versionId*/ return this.versionId == null ? new Base[0] : new Base[] {this.versionId}; // StringType - case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -1407102957: // versionId - this.versionId = TypeConvertor.castToString(value); // StringType - return value; - case -1724546052: // description - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("versionId")) { - this.versionId = TypeConvertor.castToString(value); // StringType - } else if (name.equals("description")) { - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1407102957: return getVersionIdElement(); - case -1724546052: return getDescriptionElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1407102957: /*versionId*/ return new String[] {"string"}; - case -1724546052: /*description*/ return new String[] {"markdown"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @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"); - } - else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.version.description"); - } - else - return super.addChild(name); - } - - public ExampleScenarioInstanceVersionComponent copy() { - ExampleScenarioInstanceVersionComponent dst = new ExampleScenarioInstanceVersionComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(ExampleScenarioInstanceVersionComponent dst) { - super.copyValues(dst); - dst.versionId = versionId == null ? null : versionId.copy(); - dst.description = description == null ? null : description.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof ExampleScenarioInstanceVersionComponent)) - return false; - ExampleScenarioInstanceVersionComponent o = (ExampleScenarioInstanceVersionComponent) other_; - return compareDeep(versionId, o.versionId, true) && compareDeep(description, o.description, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof ExampleScenarioInstanceVersionComponent)) - return false; - ExampleScenarioInstanceVersionComponent o = (ExampleScenarioInstanceVersionComponent) other_; - return compareValues(versionId, o.versionId, true) && compareValues(description, o.description, true) - ; - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(versionId, description); - } - - public String fhirType() { - return "ExampleScenario.instance.version"; - - } - - } - - @Block() - public static class ExampleScenarioInstanceContainedInstanceComponent extends BackboneElement implements IBaseBackboneElement { /** - * Each resource contained in the instance. + * A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario. */ - @Child(name = "resourceId", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="Each resource contained in the instance", formalDefinition="Each resource contained in the instance." ) - protected StringType resourceId; + @Child(name = "copyright", type = {MarkdownType.class}, order=11, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario." ) + protected MarkdownType copyright; /** - * A specific version of a resource contained in the instance. + * What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario. */ - @Child(name = "versionId", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="A specific version of a resource contained in the instance", formalDefinition="A specific version of a resource contained in the instance." ) - protected StringType versionId; - - private static final long serialVersionUID = 908084124L; + @Child(name = "purpose", type = {MarkdownType.class}, order=12, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The purpose of the example, e.g. to illustrate a scenario", formalDefinition="What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario." ) + protected MarkdownType purpose; /** - * Constructor + * Actor participating in the resource. */ - public ExampleScenarioInstanceContainedInstanceComponent() { - super(); - } + @Child(name = "actor", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Actor participating in the resource", formalDefinition="Actor participating in the resource." ) + protected List actor; /** - * Constructor + * Each resource and each version that is present in the workflow. */ - public ExampleScenarioInstanceContainedInstanceComponent(String resourceId) { - super(); - this.setResourceId(resourceId); - } - - /** - * @return {@link #resourceId} (Each resource contained in the instance.). This is the underlying object with id, value and extensions. The accessor "getResourceId" gives direct access to the value - */ - public StringType getResourceIdElement() { - if (this.resourceId == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioInstanceContainedInstanceComponent.resourceId"); - else if (Configuration.doAutoCreate()) - this.resourceId = new StringType(); // bb - return this.resourceId; - } - - public boolean hasResourceIdElement() { - return this.resourceId != null && !this.resourceId.isEmpty(); - } - - public boolean hasResourceId() { - return this.resourceId != null && !this.resourceId.isEmpty(); - } - - /** - * @param value {@link #resourceId} (Each resource contained in the instance.). This is the underlying object with id, value and extensions. The accessor "getResourceId" gives direct access to the value - */ - public ExampleScenarioInstanceContainedInstanceComponent setResourceIdElement(StringType value) { - this.resourceId = value; - return this; - } - - /** - * @return Each resource contained in the instance. - */ - public String getResourceId() { - return this.resourceId == null ? null : this.resourceId.getValue(); - } - - /** - * @param value Each resource contained in the instance. - */ - public ExampleScenarioInstanceContainedInstanceComponent setResourceId(String value) { - if (this.resourceId == null) - this.resourceId = new StringType(); - this.resourceId.setValue(value); - return this; - } - - /** - * @return {@link #versionId} (A specific version of a resource contained in the instance.). This is the underlying object with id, value and extensions. The accessor "getVersionId" gives direct access to the value - */ - public StringType getVersionIdElement() { - if (this.versionId == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioInstanceContainedInstanceComponent.versionId"); - else if (Configuration.doAutoCreate()) - this.versionId = new StringType(); // bb - return this.versionId; - } - - public boolean hasVersionIdElement() { - return this.versionId != null && !this.versionId.isEmpty(); - } - - public boolean hasVersionId() { - return this.versionId != null && !this.versionId.isEmpty(); - } - - /** - * @param value {@link #versionId} (A specific version of a resource contained in the instance.). This is the underlying object with id, value and extensions. The accessor "getVersionId" gives direct access to the value - */ - public ExampleScenarioInstanceContainedInstanceComponent setVersionIdElement(StringType value) { - this.versionId = value; - return this; - } - - /** - * @return A specific version of a resource contained in the instance. - */ - public String getVersionId() { - return this.versionId == null ? null : this.versionId.getValue(); - } - - /** - * @param value A specific version of a resource contained in the instance. - */ - public ExampleScenarioInstanceContainedInstanceComponent setVersionId(String value) { - if (Utilities.noString(value)) - this.versionId = null; - else { - if (this.versionId == null) - this.versionId = new StringType(); - this.versionId.setValue(value); - } - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("resourceId", "string", "Each resource contained in the instance.", 0, 1, resourceId)); - children.add(new Property("versionId", "string", "A specific version of a resource contained in the instance.", 0, 1, versionId)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -1345650231: /*resourceId*/ return new Property("resourceId", "string", "Each resource contained in the instance.", 0, 1, resourceId); - case -1407102957: /*versionId*/ return new Property("versionId", "string", "A specific version of a resource contained in the instance.", 0, 1, versionId); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -1345650231: /*resourceId*/ return this.resourceId == null ? new Base[0] : new Base[] {this.resourceId}; // StringType - case -1407102957: /*versionId*/ return this.versionId == null ? new Base[0] : new Base[] {this.versionId}; // StringType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -1345650231: // resourceId - this.resourceId = TypeConvertor.castToString(value); // StringType - return value; - case -1407102957: // versionId - this.versionId = TypeConvertor.castToString(value); // StringType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("resourceId")) { - this.resourceId = TypeConvertor.castToString(value); // StringType - } else if (name.equals("versionId")) { - this.versionId = TypeConvertor.castToString(value); // StringType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1345650231: return getResourceIdElement(); - case -1407102957: return getVersionIdElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1345650231: /*resourceId*/ return new String[] {"string"}; - case -1407102957: /*versionId*/ return new String[] {"string"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - 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"); - } - else if (name.equals("versionId")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.instance.containedInstance.versionId"); - } - else - return super.addChild(name); - } - - public ExampleScenarioInstanceContainedInstanceComponent copy() { - ExampleScenarioInstanceContainedInstanceComponent dst = new ExampleScenarioInstanceContainedInstanceComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(ExampleScenarioInstanceContainedInstanceComponent dst) { - super.copyValues(dst); - dst.resourceId = resourceId == null ? null : resourceId.copy(); - dst.versionId = versionId == null ? null : versionId.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof ExampleScenarioInstanceContainedInstanceComponent)) - return false; - ExampleScenarioInstanceContainedInstanceComponent o = (ExampleScenarioInstanceContainedInstanceComponent) other_; - return compareDeep(resourceId, o.resourceId, true) && compareDeep(versionId, o.versionId, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof ExampleScenarioInstanceContainedInstanceComponent)) - return false; - ExampleScenarioInstanceContainedInstanceComponent o = (ExampleScenarioInstanceContainedInstanceComponent) other_; - return compareValues(resourceId, o.resourceId, true) && compareValues(versionId, o.versionId, true) - ; - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(resourceId, versionId); - } - - public String fhirType() { - return "ExampleScenario.instance.containedInstance"; - - } - - } - - @Block() - public static class ExampleScenarioProcessComponent extends BackboneElement implements IBaseBackboneElement { - /** - * The diagram title of the group of operations. - */ - @Child(name = "title", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="The diagram title of the group of operations", formalDefinition="The diagram title of the group of operations." ) - protected StringType title; - - /** - * A longer description of the group of operations. - */ - @Child(name = "description", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="A longer description of the group of operations", formalDefinition="A longer description of the group of operations." ) - protected MarkdownType description; - - /** - * Description of initial status before the process starts. - */ - @Child(name = "preConditions", type = {MarkdownType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Description of initial status before the process starts", formalDefinition="Description of initial status before the process starts." ) - protected MarkdownType preConditions; - - /** - * Description of final status after the process ends. - */ - @Child(name = "postConditions", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Description of final status after the process ends", formalDefinition="Description of final status after the process ends." ) - protected MarkdownType postConditions; - - /** - * Each step of the process. - */ - @Child(name = "step", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Each step of the process", formalDefinition="Each step of the process." ) - protected List step; - - private static final long serialVersionUID = 325578043L; - - /** - * Constructor - */ - public ExampleScenarioProcessComponent() { - super(); - } - - /** - * Constructor - */ - public ExampleScenarioProcessComponent(String title) { - super(); - this.setTitle(title); - } - - /** - * @return {@link #title} (The diagram title of the group of operations.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public StringType getTitleElement() { - if (this.title == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessComponent.title"); - else if (Configuration.doAutoCreate()) - this.title = new StringType(); // bb - return this.title; - } - - public boolean hasTitleElement() { - return this.title != null && !this.title.isEmpty(); - } - - public boolean hasTitle() { - return this.title != null && !this.title.isEmpty(); - } - - /** - * @param value {@link #title} (The diagram title of the group of operations.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public ExampleScenarioProcessComponent setTitleElement(StringType value) { - this.title = value; - return this; - } - - /** - * @return The diagram title of the group of operations. - */ - public String getTitle() { - return this.title == null ? null : this.title.getValue(); - } - - /** - * @param value The diagram title of the group of operations. - */ - public ExampleScenarioProcessComponent setTitle(String value) { - if (this.title == null) - this.title = new StringType(); - this.title.setValue(value); - return this; - } - - /** - * @return {@link #description} (A longer description of the group of operations.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public MarkdownType getDescriptionElement() { - if (this.description == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessComponent.description"); - else if (Configuration.doAutoCreate()) - this.description = new MarkdownType(); // bb - return this.description; - } - - public boolean hasDescriptionElement() { - return this.description != null && !this.description.isEmpty(); - } - - public boolean hasDescription() { - return this.description != null && !this.description.isEmpty(); - } - - /** - * @param value {@link #description} (A longer description of the group of operations.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public ExampleScenarioProcessComponent setDescriptionElement(MarkdownType value) { - this.description = value; - return this; - } - - /** - * @return A longer description of the group of operations. - */ - public String getDescription() { - return this.description == null ? null : this.description.getValue(); - } - - /** - * @param value A longer description of the group of operations. - */ - public ExampleScenarioProcessComponent setDescription(String value) { - if (value == null) - this.description = null; - else { - if (this.description == null) - this.description = new MarkdownType(); - this.description.setValue(value); - } - return this; - } - - /** - * @return {@link #preConditions} (Description of initial status before the process starts.). This is the underlying object with id, value and extensions. The accessor "getPreConditions" gives direct access to the value - */ - public MarkdownType getPreConditionsElement() { - if (this.preConditions == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessComponent.preConditions"); - else if (Configuration.doAutoCreate()) - this.preConditions = new MarkdownType(); // bb - return this.preConditions; - } - - public boolean hasPreConditionsElement() { - return this.preConditions != null && !this.preConditions.isEmpty(); - } - - public boolean hasPreConditions() { - return this.preConditions != null && !this.preConditions.isEmpty(); - } - - /** - * @param value {@link #preConditions} (Description of initial status before the process starts.). This is the underlying object with id, value and extensions. The accessor "getPreConditions" gives direct access to the value - */ - public ExampleScenarioProcessComponent setPreConditionsElement(MarkdownType value) { - this.preConditions = value; - return this; - } - - /** - * @return Description of initial status before the process starts. - */ - public String getPreConditions() { - return this.preConditions == null ? null : this.preConditions.getValue(); - } - - /** - * @param value Description of initial status before the process starts. - */ - public ExampleScenarioProcessComponent setPreConditions(String value) { - if (value == null) - this.preConditions = null; - else { - if (this.preConditions == null) - this.preConditions = new MarkdownType(); - this.preConditions.setValue(value); - } - return this; - } - - /** - * @return {@link #postConditions} (Description of final status after the process ends.). This is the underlying object with id, value and extensions. The accessor "getPostConditions" gives direct access to the value - */ - public MarkdownType getPostConditionsElement() { - if (this.postConditions == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessComponent.postConditions"); - else if (Configuration.doAutoCreate()) - this.postConditions = new MarkdownType(); // bb - return this.postConditions; - } - - public boolean hasPostConditionsElement() { - return this.postConditions != null && !this.postConditions.isEmpty(); - } - - public boolean hasPostConditions() { - return this.postConditions != null && !this.postConditions.isEmpty(); - } - - /** - * @param value {@link #postConditions} (Description of final status after the process ends.). This is the underlying object with id, value and extensions. The accessor "getPostConditions" gives direct access to the value - */ - public ExampleScenarioProcessComponent setPostConditionsElement(MarkdownType value) { - this.postConditions = value; - return this; - } - - /** - * @return Description of final status after the process ends. - */ - public String getPostConditions() { - return this.postConditions == null ? null : this.postConditions.getValue(); - } - - /** - * @param value Description of final status after the process ends. - */ - public ExampleScenarioProcessComponent setPostConditions(String value) { - if (value == null) - this.postConditions = null; - else { - if (this.postConditions == null) - this.postConditions = new MarkdownType(); - this.postConditions.setValue(value); - } - return this; - } - - /** - * @return {@link #step} (Each step of the process.) - */ - public List getStep() { - if (this.step == null) - this.step = new ArrayList(); - return this.step; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenarioProcessComponent setStep(List theStep) { - this.step = theStep; - return this; - } - - public boolean hasStep() { - if (this.step == null) - return false; - for (ExampleScenarioProcessStepComponent item : this.step) - if (!item.isEmpty()) - return true; - return false; - } - - public ExampleScenarioProcessStepComponent addStep() { //3 - ExampleScenarioProcessStepComponent t = new ExampleScenarioProcessStepComponent(); - if (this.step == null) - this.step = new ArrayList(); - this.step.add(t); - return t; - } - - public ExampleScenarioProcessComponent addStep(ExampleScenarioProcessStepComponent t) { //3 - if (t == null) - return this; - if (this.step == null) - this.step = new ArrayList(); - this.step.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #step}, creating it if it does not already exist {3} - */ - public ExampleScenarioProcessStepComponent getStepFirstRep() { - if (getStep().isEmpty()) { - addStep(); - } - return getStep().get(0); - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("title", "string", "The diagram title of the group of operations.", 0, 1, title)); - children.add(new Property("description", "markdown", "A longer description of the group of operations.", 0, 1, description)); - children.add(new Property("preConditions", "markdown", "Description of initial status before the process starts.", 0, 1, preConditions)); - children.add(new Property("postConditions", "markdown", "Description of final status after the process ends.", 0, 1, postConditions)); - children.add(new Property("step", "", "Each step of the process.", 0, java.lang.Integer.MAX_VALUE, step)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 110371416: /*title*/ return new Property("title", "string", "The diagram title of the group of operations.", 0, 1, title); - case -1724546052: /*description*/ return new Property("description", "markdown", "A longer description of the group of operations.", 0, 1, description); - case -1006692933: /*preConditions*/ return new Property("preConditions", "markdown", "Description of initial status before the process starts.", 0, 1, preConditions); - case 1738302328: /*postConditions*/ return new Property("postConditions", "markdown", "Description of final status after the process ends.", 0, 1, postConditions); - case 3540684: /*step*/ return new Property("step", "", "Each step of the process.", 0, java.lang.Integer.MAX_VALUE, step); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType - case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType - case -1006692933: /*preConditions*/ return this.preConditions == null ? new Base[0] : new Base[] {this.preConditions}; // MarkdownType - case 1738302328: /*postConditions*/ return this.postConditions == null ? new Base[0] : new Base[] {this.postConditions}; // MarkdownType - case 3540684: /*step*/ return this.step == null ? new Base[0] : this.step.toArray(new Base[this.step.size()]); // ExampleScenarioProcessStepComponent - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 110371416: // title - this.title = TypeConvertor.castToString(value); // StringType - return value; - case -1724546052: // description - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case -1006692933: // preConditions - this.preConditions = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case 1738302328: // postConditions - this.postConditions = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case 3540684: // step - this.getStep().add((ExampleScenarioProcessStepComponent) value); // ExampleScenarioProcessStepComponent - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("title")) { - this.title = TypeConvertor.castToString(value); // StringType - } else if (name.equals("description")) { - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("preConditions")) { - this.preConditions = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("postConditions")) { - this.postConditions = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("step")) { - this.getStep().add((ExampleScenarioProcessStepComponent) value); - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 110371416: return getTitleElement(); - case -1724546052: return getDescriptionElement(); - case -1006692933: return getPreConditionsElement(); - case 1738302328: return getPostConditionsElement(); - case 3540684: return addStep(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 110371416: /*title*/ return new String[] {"string"}; - case -1724546052: /*description*/ return new String[] {"markdown"}; - case -1006692933: /*preConditions*/ return new String[] {"markdown"}; - case 1738302328: /*postConditions*/ return new String[] {"markdown"}; - case 3540684: /*step*/ return new String[] {}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.title"); - } - else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.description"); - } - else if (name.equals("preConditions")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.preConditions"); - } - else if (name.equals("postConditions")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.postConditions"); - } - else if (name.equals("step")) { - return addStep(); - } - else - return super.addChild(name); - } - - public ExampleScenarioProcessComponent copy() { - ExampleScenarioProcessComponent dst = new ExampleScenarioProcessComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(ExampleScenarioProcessComponent dst) { - super.copyValues(dst); - dst.title = title == null ? null : title.copy(); - dst.description = description == null ? null : description.copy(); - dst.preConditions = preConditions == null ? null : preConditions.copy(); - dst.postConditions = postConditions == null ? null : postConditions.copy(); - if (step != null) { - dst.step = new ArrayList(); - for (ExampleScenarioProcessStepComponent i : step) - dst.step.add(i.copy()); - }; - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof ExampleScenarioProcessComponent)) - return false; - ExampleScenarioProcessComponent o = (ExampleScenarioProcessComponent) other_; - return compareDeep(title, o.title, true) && compareDeep(description, o.description, true) && compareDeep(preConditions, o.preConditions, true) - && compareDeep(postConditions, o.postConditions, true) && compareDeep(step, o.step, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof ExampleScenarioProcessComponent)) - return false; - ExampleScenarioProcessComponent o = (ExampleScenarioProcessComponent) other_; - return compareValues(title, o.title, true) && compareValues(description, o.description, true) && compareValues(preConditions, o.preConditions, true) - && compareValues(postConditions, o.postConditions, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(title, description, preConditions - , postConditions, step); - } - - public String fhirType() { - return "ExampleScenario.process"; - - } - - } + @Child(name = "instance", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Each resource and each version that is present in the workflow", formalDefinition="Each resource and each version that is present in the workflow." ) + protected List instance; - @Block() - public static class ExampleScenarioProcessStepComponent extends BackboneElement implements IBaseBackboneElement { /** - * Nested process. + * Each major process - a group of operations. */ - @Child(name = "process", type = {ExampleScenarioProcessComponent.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Nested process", formalDefinition="Nested process." ) + @Child(name = "process", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Each major process - a group of operations", formalDefinition="Each major process - a group of operations." ) protected List process; /** - * If there is a pause in the flow. + * Another nested workflow. */ - @Child(name = "pause", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="If there is a pause in the flow", formalDefinition="If there is a pause in the flow." ) - protected BooleanType pause; + @Child(name = "workflow", type = {CanonicalType.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Another nested workflow", formalDefinition="Another nested workflow." ) + protected List workflow; - /** - * Each interaction or action. - */ - @Child(name = "operation", type = {}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Each interaction or action", formalDefinition="Each interaction or action." ) - protected ExampleScenarioProcessStepOperationComponent operation; + private static final long serialVersionUID = 771935313L; - /** - * Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances. - */ - @Child(name = "alternative", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Alternate non-typical step action", formalDefinition="Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances." ) - protected List alternative; - - private static final long serialVersionUID = -894029605L; - - /** - * Constructor - */ - public ExampleScenarioProcessStepComponent() { + /** + * Constructor + */ + public ExampleScenario() { super(); } + /** + * Constructor + */ + public ExampleScenario(PublicationStatus status) { + super(); + this.setStatus(status); + } + /** - * @return {@link #process} (Nested process.) + * @return {@link #url} (An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value + */ + public UriType getUrlElement() { + if (this.url == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenario.url"); + else if (Configuration.doAutoCreate()) + this.url = new UriType(); // bb + return this.url; + } + + public boolean hasUrlElement() { + return this.url != null && !this.url.isEmpty(); + } + + public boolean hasUrl() { + return this.url != null && !this.url.isEmpty(); + } + + /** + * @param value {@link #url} (An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value + */ + public ExampleScenario setUrlElement(UriType value) { + this.url = value; + return this; + } + + /** + * @return An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers. + */ + public String getUrl() { + return this.url == null ? null : this.url.getValue(); + } + + /** + * @param value An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers. + */ + public ExampleScenario setUrl(String value) { + if (Utilities.noString(value)) + this.url = null; + else { + if (this.url == null) + this.url = new UriType(); + this.url.setValue(value); + } + return this; + } + + /** + * @return {@link #identifier} (A formal identifier that is used to identify this example scenario when it is represented in other formats, or referenced in a specification, model, design or an instance.) + */ + public List getIdentifier() { + if (this.identifier == null) + this.identifier = new ArrayList(); + return this.identifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenario setIdentifier(List theIdentifier) { + this.identifier = theIdentifier; + return this; + } + + public boolean hasIdentifier() { + if (this.identifier == null) + return false; + for (Identifier item : this.identifier) + if (!item.isEmpty()) + return true; + return false; + } + + public Identifier addIdentifier() { //3 + Identifier t = new Identifier(); + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return t; + } + + public ExampleScenario addIdentifier(Identifier t) { //3 + if (t == null) + return this; + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} + */ + public Identifier getIdentifierFirstRep() { + if (getIdentifier().isEmpty()) { + addIdentifier(); + } + return getIdentifier().get(0); + } + + /** + * @return {@link #version} (The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value + */ + public StringType getVersionElement() { + if (this.version == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenario.version"); + else if (Configuration.doAutoCreate()) + this.version = new StringType(); // bb + return this.version; + } + + public boolean hasVersionElement() { + return this.version != null && !this.version.isEmpty(); + } + + public boolean hasVersion() { + return this.version != null && !this.version.isEmpty(); + } + + /** + * @param value {@link #version} (The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value + */ + public ExampleScenario setVersionElement(StringType value) { + this.version = value; + return this; + } + + /** + * @return The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. + */ + public String getVersion() { + return this.version == null ? null : this.version.getValue(); + } + + /** + * @param value The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. + */ + public ExampleScenario setVersion(String value) { + if (Utilities.noString(value)) + this.version = null; + else { + if (this.version == null) + this.version = new StringType(); + this.version.setValue(value); + } + return this; + } + + /** + * @return {@link #name} (A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public StringType getNameElement() { + if (this.name == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenario.name"); + else if (Configuration.doAutoCreate()) + this.name = new StringType(); // bb + return this.name; + } + + public boolean hasNameElement() { + return this.name != null && !this.name.isEmpty(); + } + + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); + } + + /** + * @param value {@link #name} (A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public ExampleScenario setNameElement(StringType value) { + this.name = value; + return this; + } + + /** + * @return A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation. + */ + public String getName() { + return this.name == null ? null : this.name.getValue(); + } + + /** + * @param value A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation. + */ + public ExampleScenario setName(String value) { + if (Utilities.noString(value)) + this.name = null; + else { + if (this.name == null) + this.name = new StringType(); + this.name.setValue(value); + } + return this; + } + + /** + * @return {@link #status} (The status of this example scenario. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + */ + public Enumeration getStatusElement() { + if (this.status == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenario.status"); + else if (Configuration.doAutoCreate()) + this.status = new Enumeration(new PublicationStatusEnumFactory()); // bb + return this.status; + } + + public boolean hasStatusElement() { + return this.status != null && !this.status.isEmpty(); + } + + public boolean hasStatus() { + return this.status != null && !this.status.isEmpty(); + } + + /** + * @param value {@link #status} (The status of this example scenario. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + */ + public ExampleScenario setStatusElement(Enumeration value) { + this.status = value; + return this; + } + + /** + * @return The status of this example scenario. Enables tracking the life-cycle of the content. + */ + public PublicationStatus getStatus() { + return this.status == null ? null : this.status.getValue(); + } + + /** + * @param value The status of this example scenario. Enables tracking the life-cycle of the content. + */ + public ExampleScenario setStatus(PublicationStatus value) { + if (this.status == null) + this.status = new Enumeration(new PublicationStatusEnumFactory()); + this.status.setValue(value); + return this; + } + + /** + * @return {@link #experimental} (A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value + */ + public BooleanType getExperimentalElement() { + if (this.experimental == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenario.experimental"); + else if (Configuration.doAutoCreate()) + this.experimental = new BooleanType(); // bb + return this.experimental; + } + + public boolean hasExperimentalElement() { + return this.experimental != null && !this.experimental.isEmpty(); + } + + public boolean hasExperimental() { + return this.experimental != null && !this.experimental.isEmpty(); + } + + /** + * @param value {@link #experimental} (A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value + */ + public ExampleScenario setExperimentalElement(BooleanType value) { + this.experimental = value; + return this; + } + + /** + * @return A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. + */ + public boolean getExperimental() { + return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); + } + + /** + * @param value A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. + */ + public ExampleScenario setExperimental(boolean value) { + if (this.experimental == null) + this.experimental = new BooleanType(); + this.experimental.setValue(value); + return this; + } + + /** + * @return {@link #date} (The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition').). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value + */ + public DateTimeType getDateElement() { + if (this.date == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenario.date"); + else if (Configuration.doAutoCreate()) + this.date = new DateTimeType(); // bb + return this.date; + } + + public boolean hasDateElement() { + return this.date != null && !this.date.isEmpty(); + } + + public boolean hasDate() { + return this.date != null && !this.date.isEmpty(); + } + + /** + * @param value {@link #date} (The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition').). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value + */ + public ExampleScenario setDateElement(DateTimeType value) { + this.date = value; + return this; + } + + /** + * @return The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition'). + */ + public Date getDate() { + return this.date == null ? null : this.date.getValue(); + } + + /** + * @param value The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition'). + */ + public ExampleScenario setDate(Date value) { + if (value == null) + this.date = null; + else { + if (this.date == null) + this.date = new DateTimeType(); + this.date.setValue(value); + } + return this; + } + + /** + * @return {@link #publisher} (The name of the organization or individual that published the example scenario.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value + */ + public StringType getPublisherElement() { + if (this.publisher == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenario.publisher"); + else if (Configuration.doAutoCreate()) + this.publisher = new StringType(); // bb + return this.publisher; + } + + public boolean hasPublisherElement() { + return this.publisher != null && !this.publisher.isEmpty(); + } + + public boolean hasPublisher() { + return this.publisher != null && !this.publisher.isEmpty(); + } + + /** + * @param value {@link #publisher} (The name of the organization or individual that published the example scenario.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value + */ + public ExampleScenario setPublisherElement(StringType value) { + this.publisher = value; + return this; + } + + /** + * @return The name of the organization or individual that published the example scenario. + */ + public String getPublisher() { + return this.publisher == null ? null : this.publisher.getValue(); + } + + /** + * @param value The name of the organization or individual that published the example scenario. + */ + public ExampleScenario setPublisher(String value) { + if (Utilities.noString(value)) + this.publisher = null; + else { + if (this.publisher == null) + this.publisher = new StringType(); + this.publisher.setValue(value); + } + return this; + } + + /** + * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) + */ + public List getContact() { + if (this.contact == null) + this.contact = new ArrayList(); + return this.contact; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenario setContact(List theContact) { + this.contact = theContact; + return this; + } + + public boolean hasContact() { + if (this.contact == null) + return false; + for (ContactDetail item : this.contact) + if (!item.isEmpty()) + return true; + return false; + } + + public ContactDetail addContact() { //3 + ContactDetail t = new ContactDetail(); + if (this.contact == null) + this.contact = new ArrayList(); + this.contact.add(t); + return t; + } + + public ExampleScenario addContact(ContactDetail t) { //3 + if (t == null) + return this; + if (this.contact == null) + this.contact = new ArrayList(); + this.contact.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {3} + */ + public ContactDetail getContactFirstRep() { + if (getContact().isEmpty()) { + addContact(); + } + return getContact().get(0); + } + + /** + * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances.) + */ + public List getUseContext() { + if (this.useContext == null) + this.useContext = new ArrayList(); + return this.useContext; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenario setUseContext(List theUseContext) { + this.useContext = theUseContext; + return this; + } + + public boolean hasUseContext() { + if (this.useContext == null) + return false; + for (UsageContext item : this.useContext) + if (!item.isEmpty()) + return true; + return false; + } + + public UsageContext addUseContext() { //3 + UsageContext t = new UsageContext(); + if (this.useContext == null) + this.useContext = new ArrayList(); + this.useContext.add(t); + return t; + } + + public ExampleScenario addUseContext(UsageContext t) { //3 + if (t == null) + return this; + if (this.useContext == null) + this.useContext = new ArrayList(); + this.useContext.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist {3} + */ + public UsageContext getUseContextFirstRep() { + if (getUseContext().isEmpty()) { + addUseContext(); + } + return getUseContext().get(0); + } + + /** + * @return {@link #jurisdiction} (A legal or geographic region in which the example scenario is intended to be used.) + */ + public List getJurisdiction() { + if (this.jurisdiction == null) + this.jurisdiction = new ArrayList(); + return this.jurisdiction; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenario setJurisdiction(List theJurisdiction) { + this.jurisdiction = theJurisdiction; + return this; + } + + public boolean hasJurisdiction() { + if (this.jurisdiction == null) + return false; + for (CodeableConcept item : this.jurisdiction) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addJurisdiction() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.jurisdiction == null) + this.jurisdiction = new ArrayList(); + this.jurisdiction.add(t); + return t; + } + + public ExampleScenario addJurisdiction(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.jurisdiction == null) + this.jurisdiction = new ArrayList(); + this.jurisdiction.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist {3} + */ + public CodeableConcept getJurisdictionFirstRep() { + if (getJurisdiction().isEmpty()) { + addJurisdiction(); + } + return getJurisdiction().get(0); + } + + /** + * @return {@link #copyright} (A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value + */ + public MarkdownType getCopyrightElement() { + if (this.copyright == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenario.copyright"); + else if (Configuration.doAutoCreate()) + this.copyright = new MarkdownType(); // bb + return this.copyright; + } + + public boolean hasCopyrightElement() { + return this.copyright != null && !this.copyright.isEmpty(); + } + + public boolean hasCopyright() { + return this.copyright != null && !this.copyright.isEmpty(); + } + + /** + * @param value {@link #copyright} (A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value + */ + public ExampleScenario setCopyrightElement(MarkdownType value) { + this.copyright = value; + return this; + } + + /** + * @return A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario. + */ + public String getCopyright() { + return this.copyright == null ? null : this.copyright.getValue(); + } + + /** + * @param value A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario. + */ + public ExampleScenario setCopyright(String value) { + if (value == null) + this.copyright = null; + else { + if (this.copyright == null) + this.copyright = new MarkdownType(); + this.copyright.setValue(value); + } + return this; + } + + /** + * @return {@link #purpose} (What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value + */ + public MarkdownType getPurposeElement() { + if (this.purpose == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ExampleScenario.purpose"); + else if (Configuration.doAutoCreate()) + this.purpose = new MarkdownType(); // bb + return this.purpose; + } + + public boolean hasPurposeElement() { + return this.purpose != null && !this.purpose.isEmpty(); + } + + public boolean hasPurpose() { + return this.purpose != null && !this.purpose.isEmpty(); + } + + /** + * @param value {@link #purpose} (What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value + */ + public ExampleScenario setPurposeElement(MarkdownType value) { + this.purpose = value; + return this; + } + + /** + * @return What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario. + */ + public String getPurpose() { + return this.purpose == null ? null : this.purpose.getValue(); + } + + /** + * @param value What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario. + */ + public ExampleScenario setPurpose(String value) { + if (value == null) + this.purpose = null; + else { + if (this.purpose == null) + this.purpose = new MarkdownType(); + this.purpose.setValue(value); + } + return this; + } + + /** + * @return {@link #actor} (Actor participating in the resource.) + */ + public List getActor() { + if (this.actor == null) + this.actor = new ArrayList(); + return this.actor; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenario setActor(List theActor) { + this.actor = theActor; + return this; + } + + public boolean hasActor() { + if (this.actor == null) + return false; + for (ExampleScenarioActorComponent item : this.actor) + if (!item.isEmpty()) + return true; + return false; + } + + public ExampleScenarioActorComponent addActor() { //3 + ExampleScenarioActorComponent t = new ExampleScenarioActorComponent(); + if (this.actor == null) + this.actor = new ArrayList(); + this.actor.add(t); + return t; + } + + public ExampleScenario addActor(ExampleScenarioActorComponent t) { //3 + if (t == null) + return this; + if (this.actor == null) + this.actor = new ArrayList(); + this.actor.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #actor}, creating it if it does not already exist {3} + */ + public ExampleScenarioActorComponent getActorFirstRep() { + if (getActor().isEmpty()) { + addActor(); + } + return getActor().get(0); + } + + /** + * @return {@link #instance} (Each resource and each version that is present in the workflow.) + */ + public List getInstance() { + if (this.instance == null) + this.instance = new ArrayList(); + return this.instance; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ExampleScenario setInstance(List theInstance) { + this.instance = theInstance; + return this; + } + + public boolean hasInstance() { + if (this.instance == null) + return false; + for (ExampleScenarioInstanceComponent item : this.instance) + if (!item.isEmpty()) + return true; + return false; + } + + public ExampleScenarioInstanceComponent addInstance() { //3 + ExampleScenarioInstanceComponent t = new ExampleScenarioInstanceComponent(); + if (this.instance == null) + this.instance = new ArrayList(); + this.instance.add(t); + return t; + } + + public ExampleScenario addInstance(ExampleScenarioInstanceComponent t) { //3 + if (t == null) + return this; + if (this.instance == null) + this.instance = new ArrayList(); + this.instance.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #instance}, creating it if it does not already exist {3} + */ + public ExampleScenarioInstanceComponent getInstanceFirstRep() { + if (getInstance().isEmpty()) { + addInstance(); + } + return getInstance().get(0); + } + + /** + * @return {@link #process} (Each major process - a group of operations.) */ public List getProcess() { if (this.process == null) @@ -2128,7 +4454,7 @@ public class ExampleScenario extends CanonicalResource { /** * @return Returns a reference to this for easy method chaining */ - public ExampleScenarioProcessStepComponent setProcess(List theProcess) { + public ExampleScenario setProcess(List theProcess) { this.process = theProcess; return this; } @@ -2150,7 +4476,7 @@ public class ExampleScenario extends CanonicalResource { return t; } - public ExampleScenarioProcessStepComponent addProcess(ExampleScenarioProcessComponent t) { //3 + public ExampleScenario addProcess(ExampleScenarioProcessComponent t) { //3 if (t == null) return this; if (this.process == null) @@ -2170,2781 +4496,455 @@ public class ExampleScenario extends CanonicalResource { } /** - * @return {@link #pause} (If there is a pause in the flow.). This is the underlying object with id, value and extensions. The accessor "getPause" gives direct access to the value + * @return {@link #workflow} (Another nested workflow.) */ - public BooleanType getPauseElement() { - if (this.pause == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepComponent.pause"); - else if (Configuration.doAutoCreate()) - this.pause = new BooleanType(); // bb - return this.pause; - } - - public boolean hasPauseElement() { - return this.pause != null && !this.pause.isEmpty(); - } - - public boolean hasPause() { - return this.pause != null && !this.pause.isEmpty(); - } - - /** - * @param value {@link #pause} (If there is a pause in the flow.). This is the underlying object with id, value and extensions. The accessor "getPause" gives direct access to the value - */ - public ExampleScenarioProcessStepComponent setPauseElement(BooleanType value) { - this.pause = value; - return this; - } - - /** - * @return If there is a pause in the flow. - */ - public boolean getPause() { - return this.pause == null || this.pause.isEmpty() ? false : this.pause.getValue(); - } - - /** - * @param value If there is a pause in the flow. - */ - public ExampleScenarioProcessStepComponent setPause(boolean value) { - if (this.pause == null) - this.pause = new BooleanType(); - this.pause.setValue(value); - return this; - } - - /** - * @return {@link #operation} (Each interaction or action.) - */ - public ExampleScenarioProcessStepOperationComponent getOperation() { - if (this.operation == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepComponent.operation"); - else if (Configuration.doAutoCreate()) - this.operation = new ExampleScenarioProcessStepOperationComponent(); // cc - return this.operation; - } - - public boolean hasOperation() { - return this.operation != null && !this.operation.isEmpty(); - } - - /** - * @param value {@link #operation} (Each interaction or action.) - */ - public ExampleScenarioProcessStepComponent setOperation(ExampleScenarioProcessStepOperationComponent value) { - this.operation = value; - return this; - } - - /** - * @return {@link #alternative} (Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances.) - */ - public List getAlternative() { - if (this.alternative == null) - this.alternative = new ArrayList(); - return this.alternative; + public List getWorkflow() { + if (this.workflow == null) + this.workflow = new ArrayList(); + return this.workflow; } /** * @return Returns a reference to this for easy method chaining */ - public ExampleScenarioProcessStepComponent setAlternative(List theAlternative) { - this.alternative = theAlternative; + public ExampleScenario setWorkflow(List theWorkflow) { + this.workflow = theWorkflow; return this; } - public boolean hasAlternative() { - if (this.alternative == null) + public boolean hasWorkflow() { + if (this.workflow == null) return false; - for (ExampleScenarioProcessStepAlternativeComponent item : this.alternative) + for (CanonicalType item : this.workflow) if (!item.isEmpty()) return true; return false; } - public ExampleScenarioProcessStepAlternativeComponent addAlternative() { //3 - ExampleScenarioProcessStepAlternativeComponent t = new ExampleScenarioProcessStepAlternativeComponent(); - if (this.alternative == null) - this.alternative = new ArrayList(); - this.alternative.add(t); + /** + * @return {@link #workflow} (Another nested workflow.) + */ + public CanonicalType addWorkflowElement() {//2 + CanonicalType t = new CanonicalType(); + if (this.workflow == null) + this.workflow = new ArrayList(); + this.workflow.add(t); return t; } - public ExampleScenarioProcessStepComponent addAlternative(ExampleScenarioProcessStepAlternativeComponent t) { //3 - if (t == null) - return this; - if (this.alternative == null) - this.alternative = new ArrayList(); - this.alternative.add(t); + /** + * @param value {@link #workflow} (Another nested workflow.) + */ + public ExampleScenario addWorkflow(String value) { //1 + CanonicalType t = new CanonicalType(); + t.setValue(value); + if (this.workflow == null) + this.workflow = new ArrayList(); + this.workflow.add(t); return this; } /** - * @return The first repetition of repeating field {@link #alternative}, creating it if it does not already exist {3} + * @param value {@link #workflow} (Another nested workflow.) */ - public ExampleScenarioProcessStepAlternativeComponent getAlternativeFirstRep() { - if (getAlternative().isEmpty()) { - addAlternative(); - } - return getAlternative().get(0); - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("process", "@ExampleScenario.process", "Nested process.", 0, java.lang.Integer.MAX_VALUE, process)); - children.add(new Property("pause", "boolean", "If there is a pause in the flow.", 0, 1, pause)); - children.add(new Property("operation", "", "Each interaction or action.", 0, 1, operation)); - children.add(new Property("alternative", "", "Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances.", 0, java.lang.Integer.MAX_VALUE, alternative)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -309518737: /*process*/ return new Property("process", "@ExampleScenario.process", "Nested process.", 0, java.lang.Integer.MAX_VALUE, process); - case 106440182: /*pause*/ return new Property("pause", "boolean", "If there is a pause in the flow.", 0, 1, pause); - case 1662702951: /*operation*/ return new Property("operation", "", "Each interaction or action.", 0, 1, operation); - case -196794451: /*alternative*/ return new Property("alternative", "", "Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances.", 0, java.lang.Integer.MAX_VALUE, alternative); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -309518737: /*process*/ return this.process == null ? new Base[0] : this.process.toArray(new Base[this.process.size()]); // ExampleScenarioProcessComponent - case 106440182: /*pause*/ return this.pause == null ? new Base[0] : new Base[] {this.pause}; // BooleanType - case 1662702951: /*operation*/ return this.operation == null ? new Base[0] : new Base[] {this.operation}; // ExampleScenarioProcessStepOperationComponent - case -196794451: /*alternative*/ return this.alternative == null ? new Base[0] : this.alternative.toArray(new Base[this.alternative.size()]); // ExampleScenarioProcessStepAlternativeComponent - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -309518737: // process - this.getProcess().add((ExampleScenarioProcessComponent) value); // ExampleScenarioProcessComponent - return value; - case 106440182: // pause - this.pause = TypeConvertor.castToBoolean(value); // BooleanType - return value; - case 1662702951: // operation - this.operation = (ExampleScenarioProcessStepOperationComponent) value; // ExampleScenarioProcessStepOperationComponent - return value; - case -196794451: // alternative - this.getAlternative().add((ExampleScenarioProcessStepAlternativeComponent) value); // ExampleScenarioProcessStepAlternativeComponent - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("process")) { - this.getProcess().add((ExampleScenarioProcessComponent) value); - } else if (name.equals("pause")) { - this.pause = TypeConvertor.castToBoolean(value); // BooleanType - } else if (name.equals("operation")) { - this.operation = (ExampleScenarioProcessStepOperationComponent) value; // ExampleScenarioProcessStepOperationComponent - } else if (name.equals("alternative")) { - this.getAlternative().add((ExampleScenarioProcessStepAlternativeComponent) value); - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -309518737: return addProcess(); - case 106440182: return getPauseElement(); - case 1662702951: return getOperation(); - case -196794451: return addAlternative(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -309518737: /*process*/ return new String[] {"@ExampleScenario.process"}; - case 106440182: /*pause*/ return new String[] {"boolean"}; - case 1662702951: /*operation*/ return new String[] {}; - case -196794451: /*alternative*/ return new String[] {}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - 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"); - } - else if (name.equals("operation")) { - this.operation = new ExampleScenarioProcessStepOperationComponent(); - return this.operation; - } - else if (name.equals("alternative")) { - return addAlternative(); - } - else - return super.addChild(name); - } - - public ExampleScenarioProcessStepComponent copy() { - ExampleScenarioProcessStepComponent dst = new ExampleScenarioProcessStepComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(ExampleScenarioProcessStepComponent dst) { - super.copyValues(dst); - if (process != null) { - dst.process = new ArrayList(); - for (ExampleScenarioProcessComponent i : process) - dst.process.add(i.copy()); - }; - dst.pause = pause == null ? null : pause.copy(); - dst.operation = operation == null ? null : operation.copy(); - if (alternative != null) { - dst.alternative = new ArrayList(); - for (ExampleScenarioProcessStepAlternativeComponent i : alternative) - dst.alternative.add(i.copy()); - }; - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) + public boolean hasWorkflow(String value) { + if (this.workflow == null) return false; - if (!(other_ instanceof ExampleScenarioProcessStepComponent)) - return false; - ExampleScenarioProcessStepComponent o = (ExampleScenarioProcessStepComponent) other_; - return compareDeep(process, o.process, true) && compareDeep(pause, o.pause, true) && compareDeep(operation, o.operation, true) - && compareDeep(alternative, o.alternative, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof ExampleScenarioProcessStepComponent)) - return false; - ExampleScenarioProcessStepComponent o = (ExampleScenarioProcessStepComponent) other_; - return compareValues(pause, o.pause, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(process, pause, operation - , alternative); - } - - public String fhirType() { - return "ExampleScenario.process.step"; - - } - - } - - @Block() - public static class ExampleScenarioProcessStepOperationComponent extends BackboneElement implements IBaseBackboneElement { - /** - * The sequential number of the interaction, e.g. 1.2.5. - */ - @Child(name = "number", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="The sequential number of the interaction", formalDefinition="The sequential number of the interaction, e.g. 1.2.5." ) - protected StringType number; - - /** - * The type of operation - CRUD. - */ - @Child(name = "type", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The type of operation - CRUD", formalDefinition="The type of operation - CRUD." ) - protected StringType type; - - /** - * The human-friendly name of the interaction. - */ - @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The human-friendly name of the interaction", formalDefinition="The human-friendly name of the interaction." ) - protected StringType name; - - /** - * Who starts the transaction. - */ - @Child(name = "initiator", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Who starts the transaction", formalDefinition="Who starts the transaction." ) - protected StringType initiator; - - /** - * Who receives the transaction. - */ - @Child(name = "receiver", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Who receives the transaction", formalDefinition="Who receives the transaction." ) - protected StringType receiver; - - /** - * A comment to be inserted in the diagram. - */ - @Child(name = "description", type = {MarkdownType.class}, order=6, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="A comment to be inserted in the diagram", formalDefinition="A comment to be inserted in the diagram." ) - protected MarkdownType description; - - /** - * Whether the initiator is deactivated right after the transaction. - */ - @Child(name = "initiatorActive", type = {BooleanType.class}, order=7, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Whether the initiator is deactivated right after the transaction", formalDefinition="Whether the initiator is deactivated right after the transaction." ) - protected BooleanType initiatorActive; - - /** - * Whether the receiver is deactivated right after the transaction. - */ - @Child(name = "receiverActive", type = {BooleanType.class}, order=8, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Whether the receiver is deactivated right after the transaction", formalDefinition="Whether the receiver is deactivated right after the transaction." ) - protected BooleanType receiverActive; - - /** - * Each resource instance used by the initiator. - */ - @Child(name = "request", type = {ExampleScenarioInstanceContainedInstanceComponent.class}, order=9, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Each resource instance used by the initiator", formalDefinition="Each resource instance used by the initiator." ) - protected ExampleScenarioInstanceContainedInstanceComponent request; - - /** - * Each resource instance used by the responder. - */ - @Child(name = "response", type = {ExampleScenarioInstanceContainedInstanceComponent.class}, order=10, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Each resource instance used by the responder", formalDefinition="Each resource instance used by the responder." ) - protected ExampleScenarioInstanceContainedInstanceComponent response; - - private static final long serialVersionUID = 911241906L; - - /** - * Constructor - */ - public ExampleScenarioProcessStepOperationComponent() { - super(); - } - - /** - * Constructor - */ - public ExampleScenarioProcessStepOperationComponent(String number) { - super(); - this.setNumber(number); - } - - /** - * @return {@link #number} (The sequential number of the interaction, e.g. 1.2.5.). This is the underlying object with id, value and extensions. The accessor "getNumber" gives direct access to the value - */ - public StringType getNumberElement() { - if (this.number == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.number"); - else if (Configuration.doAutoCreate()) - this.number = new StringType(); // bb - return this.number; - } - - public boolean hasNumberElement() { - return this.number != null && !this.number.isEmpty(); - } - - public boolean hasNumber() { - return this.number != null && !this.number.isEmpty(); - } - - /** - * @param value {@link #number} (The sequential number of the interaction, e.g. 1.2.5.). This is the underlying object with id, value and extensions. The accessor "getNumber" gives direct access to the value - */ - public ExampleScenarioProcessStepOperationComponent setNumberElement(StringType value) { - this.number = value; - return this; - } - - /** - * @return The sequential number of the interaction, e.g. 1.2.5. - */ - public String getNumber() { - return this.number == null ? null : this.number.getValue(); - } - - /** - * @param value The sequential number of the interaction, e.g. 1.2.5. - */ - public ExampleScenarioProcessStepOperationComponent setNumber(String value) { - if (this.number == null) - this.number = new StringType(); - this.number.setValue(value); - return this; - } - - /** - * @return {@link #type} (The type of operation - CRUD.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value - */ - public StringType getTypeElement() { - if (this.type == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.type"); - else if (Configuration.doAutoCreate()) - this.type = new StringType(); // bb - return this.type; - } - - public boolean hasTypeElement() { - return this.type != null && !this.type.isEmpty(); - } - - public boolean hasType() { - return this.type != null && !this.type.isEmpty(); - } - - /** - * @param value {@link #type} (The type of operation - CRUD.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value - */ - public ExampleScenarioProcessStepOperationComponent setTypeElement(StringType value) { - this.type = value; - return this; - } - - /** - * @return The type of operation - CRUD. - */ - public String getType() { - return this.type == null ? null : this.type.getValue(); - } - - /** - * @param value The type of operation - CRUD. - */ - public ExampleScenarioProcessStepOperationComponent setType(String value) { - if (Utilities.noString(value)) - this.type = null; - else { - if (this.type == null) - this.type = new StringType(); - this.type.setValue(value); - } - return this; - } - - /** - * @return {@link #name} (The human-friendly name of the interaction.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public StringType getNameElement() { - if (this.name == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.name"); - else if (Configuration.doAutoCreate()) - this.name = new StringType(); // bb - return this.name; - } - - public boolean hasNameElement() { - return this.name != null && !this.name.isEmpty(); - } - - public boolean hasName() { - return this.name != null && !this.name.isEmpty(); - } - - /** - * @param value {@link #name} (The human-friendly name of the interaction.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public ExampleScenarioProcessStepOperationComponent setNameElement(StringType value) { - this.name = value; - return this; - } - - /** - * @return The human-friendly name of the interaction. - */ - public String getName() { - return this.name == null ? null : this.name.getValue(); - } - - /** - * @param value The human-friendly name of the interaction. - */ - public ExampleScenarioProcessStepOperationComponent setName(String value) { - if (Utilities.noString(value)) - this.name = null; - else { - if (this.name == null) - this.name = new StringType(); - this.name.setValue(value); - } - return this; - } - - /** - * @return {@link #initiator} (Who starts the transaction.). This is the underlying object with id, value and extensions. The accessor "getInitiator" gives direct access to the value - */ - public StringType getInitiatorElement() { - if (this.initiator == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.initiator"); - else if (Configuration.doAutoCreate()) - this.initiator = new StringType(); // bb - return this.initiator; - } - - public boolean hasInitiatorElement() { - return this.initiator != null && !this.initiator.isEmpty(); - } - - public boolean hasInitiator() { - return this.initiator != null && !this.initiator.isEmpty(); - } - - /** - * @param value {@link #initiator} (Who starts the transaction.). This is the underlying object with id, value and extensions. The accessor "getInitiator" gives direct access to the value - */ - public ExampleScenarioProcessStepOperationComponent setInitiatorElement(StringType value) { - this.initiator = value; - return this; - } - - /** - * @return Who starts the transaction. - */ - public String getInitiator() { - return this.initiator == null ? null : this.initiator.getValue(); - } - - /** - * @param value Who starts the transaction. - */ - public ExampleScenarioProcessStepOperationComponent setInitiator(String value) { - if (Utilities.noString(value)) - this.initiator = null; - else { - if (this.initiator == null) - this.initiator = new StringType(); - this.initiator.setValue(value); - } - return this; - } - - /** - * @return {@link #receiver} (Who receives the transaction.). This is the underlying object with id, value and extensions. The accessor "getReceiver" gives direct access to the value - */ - public StringType getReceiverElement() { - if (this.receiver == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.receiver"); - else if (Configuration.doAutoCreate()) - this.receiver = new StringType(); // bb - return this.receiver; - } - - public boolean hasReceiverElement() { - return this.receiver != null && !this.receiver.isEmpty(); - } - - public boolean hasReceiver() { - return this.receiver != null && !this.receiver.isEmpty(); - } - - /** - * @param value {@link #receiver} (Who receives the transaction.). This is the underlying object with id, value and extensions. The accessor "getReceiver" gives direct access to the value - */ - public ExampleScenarioProcessStepOperationComponent setReceiverElement(StringType value) { - this.receiver = value; - return this; - } - - /** - * @return Who receives the transaction. - */ - public String getReceiver() { - return this.receiver == null ? null : this.receiver.getValue(); - } - - /** - * @param value Who receives the transaction. - */ - public ExampleScenarioProcessStepOperationComponent setReceiver(String value) { - if (Utilities.noString(value)) - this.receiver = null; - else { - if (this.receiver == null) - this.receiver = new StringType(); - this.receiver.setValue(value); - } - return this; - } - - /** - * @return {@link #description} (A comment to be inserted in the diagram.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public MarkdownType getDescriptionElement() { - if (this.description == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.description"); - else if (Configuration.doAutoCreate()) - this.description = new MarkdownType(); // bb - return this.description; - } - - public boolean hasDescriptionElement() { - return this.description != null && !this.description.isEmpty(); - } - - public boolean hasDescription() { - return this.description != null && !this.description.isEmpty(); - } - - /** - * @param value {@link #description} (A comment to be inserted in the diagram.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public ExampleScenarioProcessStepOperationComponent setDescriptionElement(MarkdownType value) { - this.description = value; - return this; - } - - /** - * @return A comment to be inserted in the diagram. - */ - public String getDescription() { - return this.description == null ? null : this.description.getValue(); - } - - /** - * @param value A comment to be inserted in the diagram. - */ - public ExampleScenarioProcessStepOperationComponent setDescription(String value) { - if (value == null) - this.description = null; - else { - if (this.description == null) - this.description = new MarkdownType(); - this.description.setValue(value); - } - return this; - } - - /** - * @return {@link #initiatorActive} (Whether the initiator is deactivated right after the transaction.). This is the underlying object with id, value and extensions. The accessor "getInitiatorActive" gives direct access to the value - */ - public BooleanType getInitiatorActiveElement() { - if (this.initiatorActive == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.initiatorActive"); - else if (Configuration.doAutoCreate()) - this.initiatorActive = new BooleanType(); // bb - return this.initiatorActive; - } - - public boolean hasInitiatorActiveElement() { - return this.initiatorActive != null && !this.initiatorActive.isEmpty(); - } - - public boolean hasInitiatorActive() { - return this.initiatorActive != null && !this.initiatorActive.isEmpty(); - } - - /** - * @param value {@link #initiatorActive} (Whether the initiator is deactivated right after the transaction.). This is the underlying object with id, value and extensions. The accessor "getInitiatorActive" gives direct access to the value - */ - public ExampleScenarioProcessStepOperationComponent setInitiatorActiveElement(BooleanType value) { - this.initiatorActive = value; - return this; - } - - /** - * @return Whether the initiator is deactivated right after the transaction. - */ - public boolean getInitiatorActive() { - return this.initiatorActive == null || this.initiatorActive.isEmpty() ? false : this.initiatorActive.getValue(); - } - - /** - * @param value Whether the initiator is deactivated right after the transaction. - */ - public ExampleScenarioProcessStepOperationComponent setInitiatorActive(boolean value) { - if (this.initiatorActive == null) - this.initiatorActive = new BooleanType(); - this.initiatorActive.setValue(value); - return this; - } - - /** - * @return {@link #receiverActive} (Whether the receiver is deactivated right after the transaction.). This is the underlying object with id, value and extensions. The accessor "getReceiverActive" gives direct access to the value - */ - public BooleanType getReceiverActiveElement() { - if (this.receiverActive == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.receiverActive"); - else if (Configuration.doAutoCreate()) - this.receiverActive = new BooleanType(); // bb - return this.receiverActive; - } - - public boolean hasReceiverActiveElement() { - return this.receiverActive != null && !this.receiverActive.isEmpty(); - } - - public boolean hasReceiverActive() { - return this.receiverActive != null && !this.receiverActive.isEmpty(); - } - - /** - * @param value {@link #receiverActive} (Whether the receiver is deactivated right after the transaction.). This is the underlying object with id, value and extensions. The accessor "getReceiverActive" gives direct access to the value - */ - public ExampleScenarioProcessStepOperationComponent setReceiverActiveElement(BooleanType value) { - this.receiverActive = value; - return this; - } - - /** - * @return Whether the receiver is deactivated right after the transaction. - */ - public boolean getReceiverActive() { - return this.receiverActive == null || this.receiverActive.isEmpty() ? false : this.receiverActive.getValue(); - } - - /** - * @param value Whether the receiver is deactivated right after the transaction. - */ - public ExampleScenarioProcessStepOperationComponent setReceiverActive(boolean value) { - if (this.receiverActive == null) - this.receiverActive = new BooleanType(); - this.receiverActive.setValue(value); - return this; - } - - /** - * @return {@link #request} (Each resource instance used by the initiator.) - */ - public ExampleScenarioInstanceContainedInstanceComponent getRequest() { - if (this.request == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.request"); - else if (Configuration.doAutoCreate()) - this.request = new ExampleScenarioInstanceContainedInstanceComponent(); // cc - return this.request; - } - - public boolean hasRequest() { - return this.request != null && !this.request.isEmpty(); - } - - /** - * @param value {@link #request} (Each resource instance used by the initiator.) - */ - public ExampleScenarioProcessStepOperationComponent setRequest(ExampleScenarioInstanceContainedInstanceComponent value) { - this.request = value; - return this; - } - - /** - * @return {@link #response} (Each resource instance used by the responder.) - */ - public ExampleScenarioInstanceContainedInstanceComponent getResponse() { - if (this.response == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepOperationComponent.response"); - else if (Configuration.doAutoCreate()) - this.response = new ExampleScenarioInstanceContainedInstanceComponent(); // cc - return this.response; - } - - public boolean hasResponse() { - return this.response != null && !this.response.isEmpty(); - } - - /** - * @param value {@link #response} (Each resource instance used by the responder.) - */ - public ExampleScenarioProcessStepOperationComponent setResponse(ExampleScenarioInstanceContainedInstanceComponent value) { - this.response = value; - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("number", "string", "The sequential number of the interaction, e.g. 1.2.5.", 0, 1, number)); - children.add(new Property("type", "string", "The type of operation - CRUD.", 0, 1, type)); - children.add(new Property("name", "string", "The human-friendly name of the interaction.", 0, 1, name)); - children.add(new Property("initiator", "string", "Who starts the transaction.", 0, 1, initiator)); - children.add(new Property("receiver", "string", "Who receives the transaction.", 0, 1, receiver)); - children.add(new Property("description", "markdown", "A comment to be inserted in the diagram.", 0, 1, description)); - children.add(new Property("initiatorActive", "boolean", "Whether the initiator is deactivated right after the transaction.", 0, 1, initiatorActive)); - children.add(new Property("receiverActive", "boolean", "Whether the receiver is deactivated right after the transaction.", 0, 1, receiverActive)); - children.add(new Property("request", "@ExampleScenario.instance.containedInstance", "Each resource instance used by the initiator.", 0, 1, request)); - children.add(new Property("response", "@ExampleScenario.instance.containedInstance", "Each resource instance used by the responder.", 0, 1, response)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -1034364087: /*number*/ return new Property("number", "string", "The sequential number of the interaction, e.g. 1.2.5.", 0, 1, number); - case 3575610: /*type*/ return new Property("type", "string", "The type of operation - CRUD.", 0, 1, type); - case 3373707: /*name*/ return new Property("name", "string", "The human-friendly name of the interaction.", 0, 1, name); - case -248987089: /*initiator*/ return new Property("initiator", "string", "Who starts the transaction.", 0, 1, initiator); - case -808719889: /*receiver*/ return new Property("receiver", "string", "Who receives the transaction.", 0, 1, receiver); - case -1724546052: /*description*/ return new Property("description", "markdown", "A comment to be inserted in the diagram.", 0, 1, description); - case 384339477: /*initiatorActive*/ return new Property("initiatorActive", "boolean", "Whether the initiator is deactivated right after the transaction.", 0, 1, initiatorActive); - case -285284907: /*receiverActive*/ return new Property("receiverActive", "boolean", "Whether the receiver is deactivated right after the transaction.", 0, 1, receiverActive); - case 1095692943: /*request*/ return new Property("request", "@ExampleScenario.instance.containedInstance", "Each resource instance used by the initiator.", 0, 1, request); - case -340323263: /*response*/ return new Property("response", "@ExampleScenario.instance.containedInstance", "Each resource instance used by the responder.", 0, 1, response); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -1034364087: /*number*/ return this.number == null ? new Base[0] : new Base[] {this.number}; // StringType - case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // StringType - case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType - case -248987089: /*initiator*/ return this.initiator == null ? new Base[0] : new Base[] {this.initiator}; // StringType - case -808719889: /*receiver*/ return this.receiver == null ? new Base[0] : new Base[] {this.receiver}; // StringType - case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType - case 384339477: /*initiatorActive*/ return this.initiatorActive == null ? new Base[0] : new Base[] {this.initiatorActive}; // BooleanType - case -285284907: /*receiverActive*/ return this.receiverActive == null ? new Base[0] : new Base[] {this.receiverActive}; // BooleanType - case 1095692943: /*request*/ return this.request == null ? new Base[0] : new Base[] {this.request}; // ExampleScenarioInstanceContainedInstanceComponent - case -340323263: /*response*/ return this.response == null ? new Base[0] : new Base[] {this.response}; // ExampleScenarioInstanceContainedInstanceComponent - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -1034364087: // number - this.number = TypeConvertor.castToString(value); // StringType - return value; - case 3575610: // type - this.type = TypeConvertor.castToString(value); // StringType - return value; - case 3373707: // name - this.name = TypeConvertor.castToString(value); // StringType - return value; - case -248987089: // initiator - this.initiator = TypeConvertor.castToString(value); // StringType - return value; - case -808719889: // receiver - this.receiver = TypeConvertor.castToString(value); // StringType - return value; - case -1724546052: // description - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case 384339477: // initiatorActive - this.initiatorActive = TypeConvertor.castToBoolean(value); // BooleanType - return value; - case -285284907: // receiverActive - this.receiverActive = TypeConvertor.castToBoolean(value); // BooleanType - return value; - case 1095692943: // request - this.request = (ExampleScenarioInstanceContainedInstanceComponent) value; // ExampleScenarioInstanceContainedInstanceComponent - return value; - case -340323263: // response - this.response = (ExampleScenarioInstanceContainedInstanceComponent) value; // ExampleScenarioInstanceContainedInstanceComponent - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("number")) { - this.number = TypeConvertor.castToString(value); // StringType - } else if (name.equals("type")) { - this.type = TypeConvertor.castToString(value); // StringType - } else if (name.equals("name")) { - this.name = TypeConvertor.castToString(value); // StringType - } else if (name.equals("initiator")) { - this.initiator = TypeConvertor.castToString(value); // StringType - } else if (name.equals("receiver")) { - this.receiver = TypeConvertor.castToString(value); // StringType - } else if (name.equals("description")) { - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("initiatorActive")) { - this.initiatorActive = TypeConvertor.castToBoolean(value); // BooleanType - } else if (name.equals("receiverActive")) { - this.receiverActive = TypeConvertor.castToBoolean(value); // BooleanType - } else if (name.equals("request")) { - this.request = (ExampleScenarioInstanceContainedInstanceComponent) value; // ExampleScenarioInstanceContainedInstanceComponent - } else if (name.equals("response")) { - this.response = (ExampleScenarioInstanceContainedInstanceComponent) value; // ExampleScenarioInstanceContainedInstanceComponent - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1034364087: return getNumberElement(); - case 3575610: return getTypeElement(); - case 3373707: return getNameElement(); - case -248987089: return getInitiatorElement(); - case -808719889: return getReceiverElement(); - case -1724546052: return getDescriptionElement(); - case 384339477: return getInitiatorActiveElement(); - case -285284907: return getReceiverActiveElement(); - case 1095692943: return getRequest(); - case -340323263: return getResponse(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1034364087: /*number*/ return new String[] {"string"}; - case 3575610: /*type*/ return new String[] {"string"}; - case 3373707: /*name*/ return new String[] {"string"}; - case -248987089: /*initiator*/ return new String[] {"string"}; - case -808719889: /*receiver*/ return new String[] {"string"}; - case -1724546052: /*description*/ return new String[] {"markdown"}; - case 384339477: /*initiatorActive*/ return new String[] {"boolean"}; - case -285284907: /*receiverActive*/ return new String[] {"boolean"}; - case 1095692943: /*request*/ return new String[] {"@ExampleScenario.instance.containedInstance"}; - case -340323263: /*response*/ return new String[] {"@ExampleScenario.instance.containedInstance"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @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.operation.number"); - } - else if (name.equals("type")) { - throw new FHIRException("Cannot call addChild on a primitive type 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"); - } - else if (name.equals("initiator")) { - throw new FHIRException("Cannot call addChild on a primitive type 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"); - } - else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type 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"); - } - else if (name.equals("receiverActive")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.operation.receiverActive"); - } - else if (name.equals("request")) { - this.request = new ExampleScenarioInstanceContainedInstanceComponent(); - return this.request; - } - else if (name.equals("response")) { - this.response = new ExampleScenarioInstanceContainedInstanceComponent(); - return this.response; - } - else - return super.addChild(name); - } - - public ExampleScenarioProcessStepOperationComponent copy() { - ExampleScenarioProcessStepOperationComponent dst = new ExampleScenarioProcessStepOperationComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(ExampleScenarioProcessStepOperationComponent dst) { - super.copyValues(dst); - dst.number = number == null ? null : number.copy(); - dst.type = type == null ? null : type.copy(); - dst.name = name == null ? null : name.copy(); - dst.initiator = initiator == null ? null : initiator.copy(); - dst.receiver = receiver == null ? null : receiver.copy(); - dst.description = description == null ? null : description.copy(); - dst.initiatorActive = initiatorActive == null ? null : initiatorActive.copy(); - dst.receiverActive = receiverActive == null ? null : receiverActive.copy(); - dst.request = request == null ? null : request.copy(); - dst.response = response == null ? null : response.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof ExampleScenarioProcessStepOperationComponent)) - return false; - ExampleScenarioProcessStepOperationComponent o = (ExampleScenarioProcessStepOperationComponent) other_; - return compareDeep(number, o.number, true) && compareDeep(type, o.type, true) && compareDeep(name, o.name, true) - && compareDeep(initiator, o.initiator, true) && compareDeep(receiver, o.receiver, true) && compareDeep(description, o.description, true) - && compareDeep(initiatorActive, o.initiatorActive, true) && compareDeep(receiverActive, o.receiverActive, true) - && compareDeep(request, o.request, true) && compareDeep(response, o.response, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof ExampleScenarioProcessStepOperationComponent)) - return false; - ExampleScenarioProcessStepOperationComponent o = (ExampleScenarioProcessStepOperationComponent) other_; - return compareValues(number, o.number, true) && compareValues(type, o.type, true) && compareValues(name, o.name, true) - && compareValues(initiator, o.initiator, true) && compareValues(receiver, o.receiver, true) && compareValues(description, o.description, true) - && compareValues(initiatorActive, o.initiatorActive, true) && compareValues(receiverActive, o.receiverActive, true) - ; - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(number, type, name, initiator - , receiver, description, initiatorActive, receiverActive, request, response); - } - - public String fhirType() { - return "ExampleScenario.process.step.operation"; - - } - - } - - @Block() - public static class ExampleScenarioProcessStepAlternativeComponent extends BackboneElement implements IBaseBackboneElement { - /** - * The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked. - */ - @Child(name = "title", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="Label for alternative", formalDefinition="The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked." ) - protected StringType title; - - /** - * A human-readable description of the alternative explaining when the alternative should occur rather than the base step. - */ - @Child(name = "description", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="A human-readable description of each option", formalDefinition="A human-readable description of the alternative explaining when the alternative should occur rather than the base step." ) - protected MarkdownType description; - - /** - * What happens in each alternative option. - */ - @Child(name = "step", type = {ExampleScenarioProcessStepComponent.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="What happens in each alternative option", formalDefinition="What happens in each alternative option." ) - protected List step; - - private static final long serialVersionUID = -254687460L; - - /** - * Constructor - */ - public ExampleScenarioProcessStepAlternativeComponent() { - super(); - } - - /** - * Constructor - */ - public ExampleScenarioProcessStepAlternativeComponent(String title) { - super(); - this.setTitle(title); - } - - /** - * @return {@link #title} (The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public StringType getTitleElement() { - if (this.title == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepAlternativeComponent.title"); - else if (Configuration.doAutoCreate()) - this.title = new StringType(); // bb - return this.title; - } - - public boolean hasTitleElement() { - return this.title != null && !this.title.isEmpty(); - } - - public boolean hasTitle() { - return this.title != null && !this.title.isEmpty(); - } - - /** - * @param value {@link #title} (The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public ExampleScenarioProcessStepAlternativeComponent setTitleElement(StringType value) { - this.title = value; - return this; - } - - /** - * @return The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked. - */ - public String getTitle() { - return this.title == null ? null : this.title.getValue(); - } - - /** - * @param value The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked. - */ - public ExampleScenarioProcessStepAlternativeComponent setTitle(String value) { - if (this.title == null) - this.title = new StringType(); - this.title.setValue(value); - return this; - } - - /** - * @return {@link #description} (A human-readable description of the alternative explaining when the alternative should occur rather than the base step.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public MarkdownType getDescriptionElement() { - if (this.description == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenarioProcessStepAlternativeComponent.description"); - else if (Configuration.doAutoCreate()) - this.description = new MarkdownType(); // bb - return this.description; - } - - public boolean hasDescriptionElement() { - return this.description != null && !this.description.isEmpty(); - } - - public boolean hasDescription() { - return this.description != null && !this.description.isEmpty(); - } - - /** - * @param value {@link #description} (A human-readable description of the alternative explaining when the alternative should occur rather than the base step.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public ExampleScenarioProcessStepAlternativeComponent setDescriptionElement(MarkdownType value) { - this.description = value; - return this; - } - - /** - * @return A human-readable description of the alternative explaining when the alternative should occur rather than the base step. - */ - public String getDescription() { - return this.description == null ? null : this.description.getValue(); - } - - /** - * @param value A human-readable description of the alternative explaining when the alternative should occur rather than the base step. - */ - public ExampleScenarioProcessStepAlternativeComponent setDescription(String value) { - if (value == null) - this.description = null; - else { - if (this.description == null) - this.description = new MarkdownType(); - this.description.setValue(value); - } - return this; - } - - /** - * @return {@link #step} (What happens in each alternative option.) - */ - public List getStep() { - if (this.step == null) - this.step = new ArrayList(); - return this.step; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenarioProcessStepAlternativeComponent setStep(List theStep) { - this.step = theStep; - return this; - } - - public boolean hasStep() { - if (this.step == null) - return false; - for (ExampleScenarioProcessStepComponent item : this.step) - if (!item.isEmpty()) + for (CanonicalType v : this.workflow) + if (v.getValue().equals(value)) // canonical return true; return false; } - public ExampleScenarioProcessStepComponent addStep() { //3 - ExampleScenarioProcessStepComponent t = new ExampleScenarioProcessStepComponent(); - if (this.step == null) - this.step = new ArrayList(); - this.step.add(t); - return t; - } - - public ExampleScenarioProcessStepAlternativeComponent addStep(ExampleScenarioProcessStepComponent t) { //3 - if (t == null) - return this; - if (this.step == null) - this.step = new ArrayList(); - this.step.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #step}, creating it if it does not already exist {3} - */ - public ExampleScenarioProcessStepComponent getStepFirstRep() { - if (getStep().isEmpty()) { - addStep(); - } - return getStep().get(0); - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("title", "string", "The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked.", 0, 1, title)); - children.add(new Property("description", "markdown", "A human-readable description of the alternative explaining when the alternative should occur rather than the base step.", 0, 1, description)); - children.add(new Property("step", "@ExampleScenario.process.step", "What happens in each alternative option.", 0, java.lang.Integer.MAX_VALUE, step)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 110371416: /*title*/ return new Property("title", "string", "The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked.", 0, 1, title); - case -1724546052: /*description*/ return new Property("description", "markdown", "A human-readable description of the alternative explaining when the alternative should occur rather than the base step.", 0, 1, description); - case 3540684: /*step*/ return new Property("step", "@ExampleScenario.process.step", "What happens in each alternative option.", 0, java.lang.Integer.MAX_VALUE, step); - default: return super.getNamedProperty(_hash, _name, _checkValid); + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("url", "uri", "An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers.", 0, 1, url)); + children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this example scenario when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("version", "string", "The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version)); + children.add(new Property("name", "string", "A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); + children.add(new Property("status", "code", "The status of this example scenario. Enables tracking the life-cycle of the content.", 0, 1, status)); + children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); + children.add(new Property("date", "dateTime", "The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition').", 0, 1, date)); + children.add(new Property("publisher", "string", "The name of the organization or individual that published the example scenario.", 0, 1, publisher)); + children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); + children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); + children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the example scenario is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); + children.add(new Property("copyright", "markdown", "A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario.", 0, 1, copyright)); + children.add(new Property("purpose", "markdown", "What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario.", 0, 1, purpose)); + children.add(new Property("actor", "", "Actor participating in the resource.", 0, java.lang.Integer.MAX_VALUE, actor)); + children.add(new Property("instance", "", "Each resource and each version that is present in the workflow.", 0, java.lang.Integer.MAX_VALUE, instance)); + children.add(new Property("process", "", "Each major process - a group of operations.", 0, java.lang.Integer.MAX_VALUE, process)); + children.add(new Property("workflow", "canonical(ExampleScenario)", "Another nested workflow.", 0, java.lang.Integer.MAX_VALUE, workflow)); } - } + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers.", 0, 1, url); + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this example scenario when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); + case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version); + case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); + case -892481550: /*status*/ return new Property("status", "code", "The status of this example scenario. Enables tracking the life-cycle of the content.", 0, 1, status); + case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental); + case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition').", 0, 1, date); + case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the example scenario.", 0, 1, publisher); + case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); + case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances.", 0, java.lang.Integer.MAX_VALUE, useContext); + case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the example scenario is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); + case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario.", 0, 1, copyright); + case -220463842: /*purpose*/ return new Property("purpose", "markdown", "What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario.", 0, 1, purpose); + case 92645877: /*actor*/ return new Property("actor", "", "Actor participating in the resource.", 0, java.lang.Integer.MAX_VALUE, actor); + case 555127957: /*instance*/ return new Property("instance", "", "Each resource and each version that is present in the workflow.", 0, java.lang.Integer.MAX_VALUE, instance); + case -309518737: /*process*/ return new Property("process", "", "Each major process - a group of operations.", 0, java.lang.Integer.MAX_VALUE, process); + case 35379135: /*workflow*/ return new Property("workflow", "canonical(ExampleScenario)", "Another nested workflow.", 0, java.lang.Integer.MAX_VALUE, workflow); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType - case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType - case 3540684: /*step*/ return this.step == null ? new Base[0] : this.step.toArray(new Base[this.step.size()]); // ExampleScenarioProcessStepComponent - default: return super.getProperty(hash, name, checkValid); } - } + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType + case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier + case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType + case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration + case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType + case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType + case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType + case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail + case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext + case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept + case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType + case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType + case 92645877: /*actor*/ return this.actor == null ? new Base[0] : this.actor.toArray(new Base[this.actor.size()]); // ExampleScenarioActorComponent + case 555127957: /*instance*/ return this.instance == null ? new Base[0] : this.instance.toArray(new Base[this.instance.size()]); // ExampleScenarioInstanceComponent + case -309518737: /*process*/ return this.process == null ? new Base[0] : this.process.toArray(new Base[this.process.size()]); // ExampleScenarioProcessComponent + case 35379135: /*workflow*/ return this.workflow == null ? new Base[0] : this.workflow.toArray(new Base[this.workflow.size()]); // CanonicalType + default: return super.getProperty(hash, name, checkValid); + } - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 110371416: // title - this.title = TypeConvertor.castToString(value); // StringType + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 116079: // url + this.url = TypeConvertor.castToUri(value); // UriType + return value; + case -1618432855: // identifier + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier + return value; + case 351608024: // version + this.version = TypeConvertor.castToString(value); // StringType + return value; + case 3373707: // name + this.name = TypeConvertor.castToString(value); // StringType + return value; + case -892481550: // status + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + return value; + case -404562712: // experimental + this.experimental = TypeConvertor.castToBoolean(value); // BooleanType + return value; + case 3076014: // date + this.date = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + case 1447404028: // publisher + this.publisher = TypeConvertor.castToString(value); // StringType + return value; + case 951526432: // contact + this.getContact().add(TypeConvertor.castToContactDetail(value)); // ContactDetail + return value; + case -669707736: // useContext + this.getUseContext().add(TypeConvertor.castToUsageContext(value)); // UsageContext + return value; + case -507075711: // jurisdiction + this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case 1522889671: // copyright + this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case -220463842: // purpose + this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case 92645877: // actor + this.getActor().add((ExampleScenarioActorComponent) value); // ExampleScenarioActorComponent + return value; + case 555127957: // instance + this.getInstance().add((ExampleScenarioInstanceComponent) value); // ExampleScenarioInstanceComponent + return value; + case -309518737: // process + this.getProcess().add((ExampleScenarioProcessComponent) value); // ExampleScenarioProcessComponent + return value; + case 35379135: // workflow + this.getWorkflow().add(TypeConvertor.castToCanonical(value)); // CanonicalType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("url")) { + this.url = TypeConvertor.castToUri(value); // UriType + } else if (name.equals("identifier")) { + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("version")) { + this.version = TypeConvertor.castToString(value); // StringType + } else if (name.equals("name")) { + this.name = TypeConvertor.castToString(value); // StringType + } else if (name.equals("status")) { + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("date")) { + this.date = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("publisher")) { + this.publisher = TypeConvertor.castToString(value); // StringType + } else if (name.equals("contact")) { + this.getContact().add(TypeConvertor.castToContactDetail(value)); + } else if (name.equals("useContext")) { + this.getUseContext().add(TypeConvertor.castToUsageContext(value)); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("copyright")) { + this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("purpose")) { + this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("actor")) { + this.getActor().add((ExampleScenarioActorComponent) value); + } else if (name.equals("instance")) { + this.getInstance().add((ExampleScenarioInstanceComponent) value); + } else if (name.equals("process")) { + this.getProcess().add((ExampleScenarioProcessComponent) value); + } else if (name.equals("workflow")) { + this.getWorkflow().add(TypeConvertor.castToCanonical(value)); + } else + return super.setProperty(name, value); return value; - case -1724546052: // description - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case 3540684: // step - this.getStep().add((ExampleScenarioProcessStepComponent) value); // ExampleScenarioProcessStepComponent - return value; - default: return super.setProperty(hash, name, value); } - } + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 116079: return getUrlElement(); + case -1618432855: return addIdentifier(); + case 351608024: return getVersionElement(); + case 3373707: return getNameElement(); + case -892481550: return getStatusElement(); + case -404562712: return getExperimentalElement(); + case 3076014: return getDateElement(); + case 1447404028: return getPublisherElement(); + case 951526432: return addContact(); + case -669707736: return addUseContext(); + case -507075711: return addJurisdiction(); + case 1522889671: return getCopyrightElement(); + case -220463842: return getPurposeElement(); + case 92645877: return addActor(); + case 555127957: return addInstance(); + case -309518737: return addProcess(); + case 35379135: return addWorkflowElement(); + default: return super.makeProperty(hash, name); + } - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("title")) { - this.title = TypeConvertor.castToString(value); // StringType - } else if (name.equals("description")) { - this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("step")) { - this.getStep().add((ExampleScenarioProcessStepComponent) value); - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 110371416: return getTitleElement(); - case -1724546052: return getDescriptionElement(); - case 3540684: return addStep(); - default: return super.makeProperty(hash, name); } - } + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 116079: /*url*/ return new String[] {"uri"}; + case -1618432855: /*identifier*/ return new String[] {"Identifier"}; + case 351608024: /*version*/ return new String[] {"string"}; + case 3373707: /*name*/ return new String[] {"string"}; + case -892481550: /*status*/ return new String[] {"code"}; + case -404562712: /*experimental*/ return new String[] {"boolean"}; + case 3076014: /*date*/ return new String[] {"dateTime"}; + case 1447404028: /*publisher*/ return new String[] {"string"}; + case 951526432: /*contact*/ return new String[] {"ContactDetail"}; + case -669707736: /*useContext*/ return new String[] {"UsageContext"}; + case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; + case 1522889671: /*copyright*/ return new String[] {"markdown"}; + case -220463842: /*purpose*/ return new String[] {"markdown"}; + case 92645877: /*actor*/ return new String[] {}; + case 555127957: /*instance*/ return new String[] {}; + case -309518737: /*process*/ return new String[] {}; + case 35379135: /*workflow*/ return new String[] {"canonical"}; + default: return super.getTypesForProperty(hash, name); + } - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 110371416: /*title*/ return new String[] {"string"}; - case -1724546052: /*description*/ return new String[] {"markdown"}; - case 3540684: /*step*/ return new String[] {"@ExampleScenario.process.step"}; - default: return super.getTypesForProperty(hash, name); } - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.alternative.title"); + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("url")) { + throw new FHIRException("Cannot call addChild on a primitive type 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"); + } + else if (name.equals("name")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.name"); + } + else if (name.equals("status")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.status"); + } + else if (name.equals("experimental")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.experimental"); + } + else if (name.equals("date")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.date"); + } + else if (name.equals("publisher")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.publisher"); + } + else if (name.equals("contact")) { + return addContact(); + } + 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 ExampleScenario.copyright"); + } + else if (name.equals("purpose")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.purpose"); + } + else if (name.equals("actor")) { + return addActor(); + } + else if (name.equals("instance")) { + return addInstance(); + } + else if (name.equals("process")) { + return addProcess(); + } + else if (name.equals("workflow")) { + throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.workflow"); + } + else + return super.addChild(name); } - else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.process.step.alternative.description"); - } - else if (name.equals("step")) { - return addStep(); - } - else - return super.addChild(name); - } - - public ExampleScenarioProcessStepAlternativeComponent copy() { - ExampleScenarioProcessStepAlternativeComponent dst = new ExampleScenarioProcessStepAlternativeComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(ExampleScenarioProcessStepAlternativeComponent dst) { - super.copyValues(dst); - dst.title = title == null ? null : title.copy(); - dst.description = description == null ? null : description.copy(); - if (step != null) { - dst.step = new ArrayList(); - for (ExampleScenarioProcessStepComponent i : step) - dst.step.add(i.copy()); - }; - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof ExampleScenarioProcessStepAlternativeComponent)) - return false; - ExampleScenarioProcessStepAlternativeComponent o = (ExampleScenarioProcessStepAlternativeComponent) other_; - return compareDeep(title, o.title, true) && compareDeep(description, o.description, true) && compareDeep(step, o.step, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof ExampleScenarioProcessStepAlternativeComponent)) - return false; - ExampleScenarioProcessStepAlternativeComponent o = (ExampleScenarioProcessStepAlternativeComponent) other_; - return compareValues(title, o.title, true) && compareValues(description, o.description, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(title, description, step - ); - } - - public String fhirType() { - return "ExampleScenario.process.step.alternative"; - - } - - } - - /** - * An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers. - */ - @Child(name = "url", type = {UriType.class}, order=0, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Canonical identifier for this example scenario, represented as a URI (globally unique)", formalDefinition="An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers." ) - protected UriType url; - - /** - * A formal identifier that is used to identify this example scenario when it is represented in other formats, or referenced in a specification, model, design or an instance. - */ - @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Additional identifier for the example scenario", formalDefinition="A formal identifier that is used to identify this example scenario when it is represented in other formats, or referenced in a specification, model, design or an instance." ) - protected List identifier; - - /** - * The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. - */ - @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Business version of the example scenario", formalDefinition="The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." ) - protected StringType version; - - /** - * A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation. - */ - @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Name for this example scenario (computer friendly)", formalDefinition="A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation." ) - protected StringType name; - - /** - * The status of this example scenario. Enables tracking the life-cycle of the content. - */ - @Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1, modifier=true, summary=true) - @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The status of this example scenario. Enables tracking the life-cycle of the content." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status") - protected Enumeration status; - - /** - * A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. - */ - @Child(name = "experimental", type = {BooleanType.class}, order=5, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="For testing purposes, not real usage", formalDefinition="A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage." ) - protected BooleanType experimental; - - /** - * The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition'). - */ - @Child(name = "date", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Date last changed", formalDefinition="The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition')." ) - protected DateTimeType date; - - /** - * The name of the organization or individual that published the example scenario. - */ - @Child(name = "publisher", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Name of the publisher (organization or individual)", formalDefinition="The name of the organization or individual that published the example scenario." ) - protected StringType publisher; - - /** - * Contact details to assist a user in finding and communicating with the publisher. - */ - @Child(name = "contact", type = {ContactDetail.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Contact details for the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) - protected List contact; - - /** - * The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances. - */ - @Child(name = "useContext", type = {UsageContext.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="The context that the content is intended to support", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances." ) - protected List useContext; - - /** - * A legal or geographic region in which the example scenario is intended to be used. - */ - @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Intended jurisdiction for example scenario (if applicable)", formalDefinition="A legal or geographic region in which the example scenario is intended to be used." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction") - protected List jurisdiction; - - /** - * A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario. - */ - @Child(name = "copyright", type = {MarkdownType.class}, order=11, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario." ) - protected MarkdownType copyright; - - /** - * What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario. - */ - @Child(name = "purpose", type = {MarkdownType.class}, order=12, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The purpose of the example, e.g. to illustrate a scenario", formalDefinition="What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario." ) - protected MarkdownType purpose; - - /** - * Actor participating in the resource. - */ - @Child(name = "actor", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Actor participating in the resource", formalDefinition="Actor participating in the resource." ) - protected List actor; - - /** - * Each resource and each version that is present in the workflow. - */ - @Child(name = "instance", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Each resource and each version that is present in the workflow", formalDefinition="Each resource and each version that is present in the workflow." ) - protected List instance; - - /** - * Each major process - a group of operations. - */ - @Child(name = "process", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Each major process - a group of operations", formalDefinition="Each major process - a group of operations." ) - protected List process; - - /** - * Another nested workflow. - */ - @Child(name = "workflow", type = {CanonicalType.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Another nested workflow", formalDefinition="Another nested workflow." ) - protected List workflow; - - private static final long serialVersionUID = 771935313L; - - /** - * Constructor - */ - public ExampleScenario() { - super(); - } - - /** - * Constructor - */ - public ExampleScenario(PublicationStatus status) { - super(); - this.setStatus(status); - } - - /** - * @return {@link #url} (An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value - */ - public UriType getUrlElement() { - if (this.url == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenario.url"); - else if (Configuration.doAutoCreate()) - this.url = new UriType(); // bb - return this.url; - } - - public boolean hasUrlElement() { - return this.url != null && !this.url.isEmpty(); - } - - public boolean hasUrl() { - return this.url != null && !this.url.isEmpty(); - } - - /** - * @param value {@link #url} (An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value - */ - public ExampleScenario setUrlElement(UriType value) { - this.url = value; - return this; - } - - /** - * @return An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers. - */ - public String getUrl() { - return this.url == null ? null : this.url.getValue(); - } - - /** - * @param value An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers. - */ - public ExampleScenario setUrl(String value) { - if (Utilities.noString(value)) - this.url = null; - else { - if (this.url == null) - this.url = new UriType(); - this.url.setValue(value); - } - return this; - } - - /** - * @return {@link #identifier} (A formal identifier that is used to identify this example scenario when it is represented in other formats, or referenced in a specification, model, design or an instance.) - */ - public List getIdentifier() { - if (this.identifier == null) - this.identifier = new ArrayList(); - return this.identifier; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenario setIdentifier(List theIdentifier) { - this.identifier = theIdentifier; - return this; - } - - public boolean hasIdentifier() { - if (this.identifier == null) - return false; - for (Identifier item : this.identifier) - if (!item.isEmpty()) - return true; - return false; - } - - public Identifier addIdentifier() { //3 - Identifier t = new Identifier(); - if (this.identifier == null) - this.identifier = new ArrayList(); - this.identifier.add(t); - return t; - } - - public ExampleScenario addIdentifier(Identifier t) { //3 - if (t == null) - return this; - if (this.identifier == null) - this.identifier = new ArrayList(); - this.identifier.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} - */ - public Identifier getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - addIdentifier(); - } - return getIdentifier().get(0); - } - - /** - * @return {@link #version} (The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value - */ - public StringType getVersionElement() { - if (this.version == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenario.version"); - else if (Configuration.doAutoCreate()) - this.version = new StringType(); // bb - return this.version; - } - - public boolean hasVersionElement() { - return this.version != null && !this.version.isEmpty(); - } - - public boolean hasVersion() { - return this.version != null && !this.version.isEmpty(); - } - - /** - * @param value {@link #version} (The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value - */ - public ExampleScenario setVersionElement(StringType value) { - this.version = value; - return this; - } - - /** - * @return The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. - */ - public String getVersion() { - return this.version == null ? null : this.version.getValue(); - } - - /** - * @param value The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. - */ - public ExampleScenario setVersion(String value) { - if (Utilities.noString(value)) - this.version = null; - else { - if (this.version == null) - this.version = new StringType(); - this.version.setValue(value); - } - return this; - } - - /** - * @return {@link #name} (A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public StringType getNameElement() { - if (this.name == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenario.name"); - else if (Configuration.doAutoCreate()) - this.name = new StringType(); // bb - return this.name; - } - - public boolean hasNameElement() { - return this.name != null && !this.name.isEmpty(); - } - - public boolean hasName() { - return this.name != null && !this.name.isEmpty(); - } - - /** - * @param value {@link #name} (A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public ExampleScenario setNameElement(StringType value) { - this.name = value; - return this; - } - - /** - * @return A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation. - */ - public String getName() { - return this.name == null ? null : this.name.getValue(); - } - - /** - * @param value A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation. - */ - public ExampleScenario setName(String value) { - if (Utilities.noString(value)) - this.name = null; - else { - if (this.name == null) - this.name = new StringType(); - this.name.setValue(value); - } - return this; - } - - /** - * @return {@link #status} (The status of this example scenario. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value - */ - public Enumeration getStatusElement() { - if (this.status == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenario.status"); - else if (Configuration.doAutoCreate()) - this.status = new Enumeration(new PublicationStatusEnumFactory()); // bb - return this.status; - } - - public boolean hasStatusElement() { - return this.status != null && !this.status.isEmpty(); - } - - public boolean hasStatus() { - return this.status != null && !this.status.isEmpty(); - } - - /** - * @param value {@link #status} (The status of this example scenario. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value - */ - public ExampleScenario setStatusElement(Enumeration value) { - this.status = value; - return this; - } - - /** - * @return The status of this example scenario. Enables tracking the life-cycle of the content. - */ - public PublicationStatus getStatus() { - return this.status == null ? null : this.status.getValue(); - } - - /** - * @param value The status of this example scenario. Enables tracking the life-cycle of the content. - */ - public ExampleScenario setStatus(PublicationStatus value) { - if (this.status == null) - this.status = new Enumeration(new PublicationStatusEnumFactory()); - this.status.setValue(value); - return this; - } - - /** - * @return {@link #experimental} (A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value - */ - public BooleanType getExperimentalElement() { - if (this.experimental == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenario.experimental"); - else if (Configuration.doAutoCreate()) - this.experimental = new BooleanType(); // bb - return this.experimental; - } - - public boolean hasExperimentalElement() { - return this.experimental != null && !this.experimental.isEmpty(); - } - - public boolean hasExperimental() { - return this.experimental != null && !this.experimental.isEmpty(); - } - - /** - * @param value {@link #experimental} (A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value - */ - public ExampleScenario setExperimentalElement(BooleanType value) { - this.experimental = value; - return this; - } - - /** - * @return A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. - */ - public boolean getExperimental() { - return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); - } - - /** - * @param value A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. - */ - public ExampleScenario setExperimental(boolean value) { - if (this.experimental == null) - this.experimental = new BooleanType(); - this.experimental.setValue(value); - return this; - } - - /** - * @return {@link #date} (The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition').). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value - */ - public DateTimeType getDateElement() { - if (this.date == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenario.date"); - else if (Configuration.doAutoCreate()) - this.date = new DateTimeType(); // bb - return this.date; - } - - public boolean hasDateElement() { - return this.date != null && !this.date.isEmpty(); - } - - public boolean hasDate() { - return this.date != null && !this.date.isEmpty(); - } - - /** - * @param value {@link #date} (The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition').). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value - */ - public ExampleScenario setDateElement(DateTimeType value) { - this.date = value; - return this; - } - - /** - * @return The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition'). - */ - public Date getDate() { - return this.date == null ? null : this.date.getValue(); - } - - /** - * @param value The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition'). - */ - public ExampleScenario setDate(Date value) { - if (value == null) - this.date = null; - else { - if (this.date == null) - this.date = new DateTimeType(); - this.date.setValue(value); - } - return this; - } - - /** - * @return {@link #publisher} (The name of the organization or individual that published the example scenario.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value - */ - public StringType getPublisherElement() { - if (this.publisher == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenario.publisher"); - else if (Configuration.doAutoCreate()) - this.publisher = new StringType(); // bb - return this.publisher; - } - - public boolean hasPublisherElement() { - return this.publisher != null && !this.publisher.isEmpty(); - } - - public boolean hasPublisher() { - return this.publisher != null && !this.publisher.isEmpty(); - } - - /** - * @param value {@link #publisher} (The name of the organization or individual that published the example scenario.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value - */ - public ExampleScenario setPublisherElement(StringType value) { - this.publisher = value; - return this; - } - - /** - * @return The name of the organization or individual that published the example scenario. - */ - public String getPublisher() { - return this.publisher == null ? null : this.publisher.getValue(); - } - - /** - * @param value The name of the organization or individual that published the example scenario. - */ - public ExampleScenario setPublisher(String value) { - if (Utilities.noString(value)) - this.publisher = null; - else { - if (this.publisher == null) - this.publisher = new StringType(); - this.publisher.setValue(value); - } - return this; - } - - /** - * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) - */ - public List getContact() { - if (this.contact == null) - this.contact = new ArrayList(); - return this.contact; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenario setContact(List theContact) { - this.contact = theContact; - return this; - } - - public boolean hasContact() { - if (this.contact == null) - return false; - for (ContactDetail item : this.contact) - if (!item.isEmpty()) - return true; - return false; - } - - public ContactDetail addContact() { //3 - ContactDetail t = new ContactDetail(); - if (this.contact == null) - this.contact = new ArrayList(); - this.contact.add(t); - return t; - } - - public ExampleScenario addContact(ContactDetail t) { //3 - if (t == null) - return this; - if (this.contact == null) - this.contact = new ArrayList(); - this.contact.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {3} - */ - public ContactDetail getContactFirstRep() { - if (getContact().isEmpty()) { - addContact(); - } - return getContact().get(0); - } - - /** - * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances.) - */ - public List getUseContext() { - if (this.useContext == null) - this.useContext = new ArrayList(); - return this.useContext; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenario setUseContext(List theUseContext) { - this.useContext = theUseContext; - return this; - } - - public boolean hasUseContext() { - if (this.useContext == null) - return false; - for (UsageContext item : this.useContext) - if (!item.isEmpty()) - return true; - return false; - } - - public UsageContext addUseContext() { //3 - UsageContext t = new UsageContext(); - if (this.useContext == null) - this.useContext = new ArrayList(); - this.useContext.add(t); - return t; - } - - public ExampleScenario addUseContext(UsageContext t) { //3 - if (t == null) - return this; - if (this.useContext == null) - this.useContext = new ArrayList(); - this.useContext.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist {3} - */ - public UsageContext getUseContextFirstRep() { - if (getUseContext().isEmpty()) { - addUseContext(); - } - return getUseContext().get(0); - } - - /** - * @return {@link #jurisdiction} (A legal or geographic region in which the example scenario is intended to be used.) - */ - public List getJurisdiction() { - if (this.jurisdiction == null) - this.jurisdiction = new ArrayList(); - return this.jurisdiction; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenario setJurisdiction(List theJurisdiction) { - this.jurisdiction = theJurisdiction; - return this; - } - - public boolean hasJurisdiction() { - if (this.jurisdiction == null) - return false; - for (CodeableConcept item : this.jurisdiction) - if (!item.isEmpty()) - return true; - return false; - } - - public CodeableConcept addJurisdiction() { //3 - CodeableConcept t = new CodeableConcept(); - if (this.jurisdiction == null) - this.jurisdiction = new ArrayList(); - this.jurisdiction.add(t); - return t; - } - - public ExampleScenario addJurisdiction(CodeableConcept t) { //3 - if (t == null) - return this; - if (this.jurisdiction == null) - this.jurisdiction = new ArrayList(); - this.jurisdiction.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist {3} - */ - public CodeableConcept getJurisdictionFirstRep() { - if (getJurisdiction().isEmpty()) { - addJurisdiction(); - } - return getJurisdiction().get(0); - } - - /** - * @return {@link #copyright} (A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value - */ - public MarkdownType getCopyrightElement() { - if (this.copyright == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenario.copyright"); - else if (Configuration.doAutoCreate()) - this.copyright = new MarkdownType(); // bb - return this.copyright; - } - - public boolean hasCopyrightElement() { - return this.copyright != null && !this.copyright.isEmpty(); - } - - public boolean hasCopyright() { - return this.copyright != null && !this.copyright.isEmpty(); - } - - /** - * @param value {@link #copyright} (A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value - */ - public ExampleScenario setCopyrightElement(MarkdownType value) { - this.copyright = value; - return this; - } - - /** - * @return A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario. - */ - public String getCopyright() { - return this.copyright == null ? null : this.copyright.getValue(); - } - - /** - * @param value A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario. - */ - public ExampleScenario setCopyright(String value) { - if (value == null) - this.copyright = null; - else { - if (this.copyright == null) - this.copyright = new MarkdownType(); - this.copyright.setValue(value); - } - return this; - } - - /** - * @return {@link #purpose} (What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value - */ - public MarkdownType getPurposeElement() { - if (this.purpose == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ExampleScenario.purpose"); - else if (Configuration.doAutoCreate()) - this.purpose = new MarkdownType(); // bb - return this.purpose; - } - - public boolean hasPurposeElement() { - return this.purpose != null && !this.purpose.isEmpty(); - } - - public boolean hasPurpose() { - return this.purpose != null && !this.purpose.isEmpty(); - } - - /** - * @param value {@link #purpose} (What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value - */ - public ExampleScenario setPurposeElement(MarkdownType value) { - this.purpose = value; - return this; - } - - /** - * @return What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario. - */ - public String getPurpose() { - return this.purpose == null ? null : this.purpose.getValue(); - } - - /** - * @param value What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario. - */ - public ExampleScenario setPurpose(String value) { - if (value == null) - this.purpose = null; - else { - if (this.purpose == null) - this.purpose = new MarkdownType(); - this.purpose.setValue(value); - } - return this; - } - - /** - * @return {@link #actor} (Actor participating in the resource.) - */ - public List getActor() { - if (this.actor == null) - this.actor = new ArrayList(); - return this.actor; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenario setActor(List theActor) { - this.actor = theActor; - return this; - } - - public boolean hasActor() { - if (this.actor == null) - return false; - for (ExampleScenarioActorComponent item : this.actor) - if (!item.isEmpty()) - return true; - return false; - } - - public ExampleScenarioActorComponent addActor() { //3 - ExampleScenarioActorComponent t = new ExampleScenarioActorComponent(); - if (this.actor == null) - this.actor = new ArrayList(); - this.actor.add(t); - return t; - } - - public ExampleScenario addActor(ExampleScenarioActorComponent t) { //3 - if (t == null) - return this; - if (this.actor == null) - this.actor = new ArrayList(); - this.actor.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #actor}, creating it if it does not already exist {3} - */ - public ExampleScenarioActorComponent getActorFirstRep() { - if (getActor().isEmpty()) { - addActor(); - } - return getActor().get(0); - } - - /** - * @return {@link #instance} (Each resource and each version that is present in the workflow.) - */ - public List getInstance() { - if (this.instance == null) - this.instance = new ArrayList(); - return this.instance; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenario setInstance(List theInstance) { - this.instance = theInstance; - return this; - } - - public boolean hasInstance() { - if (this.instance == null) - return false; - for (ExampleScenarioInstanceComponent item : this.instance) - if (!item.isEmpty()) - return true; - return false; - } - - public ExampleScenarioInstanceComponent addInstance() { //3 - ExampleScenarioInstanceComponent t = new ExampleScenarioInstanceComponent(); - if (this.instance == null) - this.instance = new ArrayList(); - this.instance.add(t); - return t; - } - - public ExampleScenario addInstance(ExampleScenarioInstanceComponent t) { //3 - if (t == null) - return this; - if (this.instance == null) - this.instance = new ArrayList(); - this.instance.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #instance}, creating it if it does not already exist {3} - */ - public ExampleScenarioInstanceComponent getInstanceFirstRep() { - if (getInstance().isEmpty()) { - addInstance(); - } - return getInstance().get(0); - } - - /** - * @return {@link #process} (Each major process - a group of operations.) - */ - public List getProcess() { - if (this.process == null) - this.process = new ArrayList(); - return this.process; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenario setProcess(List theProcess) { - this.process = theProcess; - return this; - } - - public boolean hasProcess() { - if (this.process == null) - return false; - for (ExampleScenarioProcessComponent item : this.process) - if (!item.isEmpty()) - return true; - return false; - } - - public ExampleScenarioProcessComponent addProcess() { //3 - ExampleScenarioProcessComponent t = new ExampleScenarioProcessComponent(); - if (this.process == null) - this.process = new ArrayList(); - this.process.add(t); - return t; - } - - public ExampleScenario addProcess(ExampleScenarioProcessComponent t) { //3 - if (t == null) - return this; - if (this.process == null) - this.process = new ArrayList(); - this.process.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #process}, creating it if it does not already exist {3} - */ - public ExampleScenarioProcessComponent getProcessFirstRep() { - if (getProcess().isEmpty()) { - addProcess(); - } - return getProcess().get(0); - } - - /** - * @return {@link #workflow} (Another nested workflow.) - */ - public List getWorkflow() { - if (this.workflow == null) - this.workflow = new ArrayList(); - return this.workflow; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ExampleScenario setWorkflow(List theWorkflow) { - this.workflow = theWorkflow; - return this; - } - - public boolean hasWorkflow() { - if (this.workflow == null) - return false; - for (CanonicalType item : this.workflow) - if (!item.isEmpty()) - return true; - return false; - } - - /** - * @return {@link #workflow} (Another nested workflow.) - */ - public CanonicalType addWorkflowElement() {//2 - CanonicalType t = new CanonicalType(); - if (this.workflow == null) - this.workflow = new ArrayList(); - this.workflow.add(t); - return t; - } - - /** - * @param value {@link #workflow} (Another nested workflow.) - */ - public ExampleScenario addWorkflow(String value) { //1 - CanonicalType t = new CanonicalType(); - t.setValue(value); - if (this.workflow == null) - this.workflow = new ArrayList(); - this.workflow.add(t); - return this; - } - - /** - * @param value {@link #workflow} (Another nested workflow.) - */ - public boolean hasWorkflow(String value) { - if (this.workflow == null) - return false; - for (CanonicalType v : this.workflow) - if (v.getValue().equals(value)) // canonical - return true; - return false; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("url", "uri", "An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers.", 0, 1, url)); - children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this example scenario when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("version", "string", "The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version)); - children.add(new Property("name", "string", "A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); - children.add(new Property("status", "code", "The status of this example scenario. Enables tracking the life-cycle of the content.", 0, 1, status)); - children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); - children.add(new Property("date", "dateTime", "The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition').", 0, 1, date)); - children.add(new Property("publisher", "string", "The name of the organization or individual that published the example scenario.", 0, 1, publisher)); - children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); - children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); - children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the example scenario is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); - children.add(new Property("copyright", "markdown", "A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario.", 0, 1, copyright)); - children.add(new Property("purpose", "markdown", "What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario.", 0, 1, purpose)); - children.add(new Property("actor", "", "Actor participating in the resource.", 0, java.lang.Integer.MAX_VALUE, actor)); - children.add(new Property("instance", "", "Each resource and each version that is present in the workflow.", 0, java.lang.Integer.MAX_VALUE, instance)); - children.add(new Property("process", "", "Each major process - a group of operations.", 0, java.lang.Integer.MAX_VALUE, process)); - children.add(new Property("workflow", "canonical(ExampleScenario)", "Another nested workflow.", 0, java.lang.Integer.MAX_VALUE, workflow)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this example scenario when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this example scenario is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the example scenario is stored on different servers.", 0, 1, url); - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this example scenario when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); - case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version); - case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); - case -892481550: /*status*/ return new Property("status", "code", "The status of this example scenario. Enables tracking the life-cycle of the content.", 0, 1, status); - case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental); - case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition').", 0, 1, date); - case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the example scenario.", 0, 1, publisher); - case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); - case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances.", 0, java.lang.Integer.MAX_VALUE, useContext); - case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the example scenario is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); - case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario.", 0, 1, copyright); - case -220463842: /*purpose*/ return new Property("purpose", "markdown", "What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario.", 0, 1, purpose); - case 92645877: /*actor*/ return new Property("actor", "", "Actor participating in the resource.", 0, java.lang.Integer.MAX_VALUE, actor); - case 555127957: /*instance*/ return new Property("instance", "", "Each resource and each version that is present in the workflow.", 0, java.lang.Integer.MAX_VALUE, instance); - case -309518737: /*process*/ return new Property("process", "", "Each major process - a group of operations.", 0, java.lang.Integer.MAX_VALUE, process); - case 35379135: /*workflow*/ return new Property("workflow", "canonical(ExampleScenario)", "Another nested workflow.", 0, java.lang.Integer.MAX_VALUE, workflow); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType - case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier - case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType - case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType - case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration - case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType - case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType - case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType - case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail - case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext - case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept - case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType - case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType - case 92645877: /*actor*/ return this.actor == null ? new Base[0] : this.actor.toArray(new Base[this.actor.size()]); // ExampleScenarioActorComponent - case 555127957: /*instance*/ return this.instance == null ? new Base[0] : this.instance.toArray(new Base[this.instance.size()]); // ExampleScenarioInstanceComponent - case -309518737: /*process*/ return this.process == null ? new Base[0] : this.process.toArray(new Base[this.process.size()]); // ExampleScenarioProcessComponent - case 35379135: /*workflow*/ return this.workflow == null ? new Base[0] : this.workflow.toArray(new Base[this.workflow.size()]); // CanonicalType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 116079: // url - this.url = TypeConvertor.castToUri(value); // UriType - return value; - case -1618432855: // identifier - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier - return value; - case 351608024: // version - this.version = TypeConvertor.castToString(value); // StringType - return value; - case 3373707: // name - this.name = TypeConvertor.castToString(value); // StringType - return value; - case -892481550: // status - value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.status = (Enumeration) value; // Enumeration - return value; - case -404562712: // experimental - this.experimental = TypeConvertor.castToBoolean(value); // BooleanType - return value; - case 3076014: // date - this.date = TypeConvertor.castToDateTime(value); // DateTimeType - return value; - case 1447404028: // publisher - this.publisher = TypeConvertor.castToString(value); // StringType - return value; - case 951526432: // contact - this.getContact().add(TypeConvertor.castToContactDetail(value)); // ContactDetail - return value; - case -669707736: // useContext - this.getUseContext().add(TypeConvertor.castToUsageContext(value)); // UsageContext - return value; - case -507075711: // jurisdiction - this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept - return value; - case 1522889671: // copyright - this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case -220463842: // purpose - this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case 92645877: // actor - this.getActor().add((ExampleScenarioActorComponent) value); // ExampleScenarioActorComponent - return value; - case 555127957: // instance - this.getInstance().add((ExampleScenarioInstanceComponent) value); // ExampleScenarioInstanceComponent - return value; - case -309518737: // process - this.getProcess().add((ExampleScenarioProcessComponent) value); // ExampleScenarioProcessComponent - return value; - case 35379135: // workflow - this.getWorkflow().add(TypeConvertor.castToCanonical(value)); // CanonicalType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("url")) { - this.url = TypeConvertor.castToUri(value); // UriType - } else if (name.equals("identifier")) { - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); - } else if (name.equals("version")) { - this.version = TypeConvertor.castToString(value); // StringType - } else if (name.equals("name")) { - this.name = TypeConvertor.castToString(value); // StringType - } else if (name.equals("status")) { - value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.status = (Enumeration) value; // Enumeration - } else if (name.equals("experimental")) { - this.experimental = TypeConvertor.castToBoolean(value); // BooleanType - } else if (name.equals("date")) { - this.date = TypeConvertor.castToDateTime(value); // DateTimeType - } else if (name.equals("publisher")) { - this.publisher = TypeConvertor.castToString(value); // StringType - } else if (name.equals("contact")) { - this.getContact().add(TypeConvertor.castToContactDetail(value)); - } else if (name.equals("useContext")) { - this.getUseContext().add(TypeConvertor.castToUsageContext(value)); - } else if (name.equals("jurisdiction")) { - this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value)); - } else if (name.equals("copyright")) { - this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("purpose")) { - this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("actor")) { - this.getActor().add((ExampleScenarioActorComponent) value); - } else if (name.equals("instance")) { - this.getInstance().add((ExampleScenarioInstanceComponent) value); - } else if (name.equals("process")) { - this.getProcess().add((ExampleScenarioProcessComponent) value); - } else if (name.equals("workflow")) { - this.getWorkflow().add(TypeConvertor.castToCanonical(value)); - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 116079: return getUrlElement(); - case -1618432855: return addIdentifier(); - case 351608024: return getVersionElement(); - case 3373707: return getNameElement(); - case -892481550: return getStatusElement(); - case -404562712: return getExperimentalElement(); - case 3076014: return getDateElement(); - case 1447404028: return getPublisherElement(); - case 951526432: return addContact(); - case -669707736: return addUseContext(); - case -507075711: return addJurisdiction(); - case 1522889671: return getCopyrightElement(); - case -220463842: return getPurposeElement(); - case 92645877: return addActor(); - case 555127957: return addInstance(); - case -309518737: return addProcess(); - case 35379135: return addWorkflowElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 116079: /*url*/ return new String[] {"uri"}; - case -1618432855: /*identifier*/ return new String[] {"Identifier"}; - case 351608024: /*version*/ return new String[] {"string"}; - case 3373707: /*name*/ return new String[] {"string"}; - case -892481550: /*status*/ return new String[] {"code"}; - case -404562712: /*experimental*/ return new String[] {"boolean"}; - case 3076014: /*date*/ return new String[] {"dateTime"}; - case 1447404028: /*publisher*/ return new String[] {"string"}; - case 951526432: /*contact*/ return new String[] {"ContactDetail"}; - case -669707736: /*useContext*/ return new String[] {"UsageContext"}; - case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; - case 1522889671: /*copyright*/ return new String[] {"markdown"}; - case -220463842: /*purpose*/ return new String[] {"markdown"}; - case 92645877: /*actor*/ return new String[] {}; - case 555127957: /*instance*/ return new String[] {}; - case -309518737: /*process*/ return new String[] {}; - case 35379135: /*workflow*/ return new String[] {"canonical"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type 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"); - } - else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.name"); - } - else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.status"); - } - else if (name.equals("experimental")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.experimental"); - } - else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.date"); - } - else if (name.equals("publisher")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.publisher"); - } - else if (name.equals("contact")) { - return addContact(); - } - 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 ExampleScenario.copyright"); - } - else if (name.equals("purpose")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.purpose"); - } - else if (name.equals("actor")) { - return addActor(); - } - else if (name.equals("instance")) { - return addInstance(); - } - else if (name.equals("process")) { - return addProcess(); - } - else if (name.equals("workflow")) { - throw new FHIRException("Cannot call addChild on a primitive type ExampleScenario.workflow"); - } - else - return super.addChild(name); - } public String fhirType() { return "ExampleScenario"; } - public ExampleScenario copy() { - ExampleScenario dst = new ExampleScenario(); - copyValues(dst); - return dst; - } + public ExampleScenario copy() { + ExampleScenario dst = new ExampleScenario(); + copyValues(dst); + return dst; + } - public void copyValues(ExampleScenario dst) { - super.copyValues(dst); - dst.url = url == null ? null : url.copy(); - if (identifier != null) { - dst.identifier = new ArrayList(); - for (Identifier i : identifier) - dst.identifier.add(i.copy()); - }; - dst.version = version == null ? null : version.copy(); - dst.name = name == null ? null : name.copy(); - dst.status = status == null ? null : status.copy(); - dst.experimental = experimental == null ? null : experimental.copy(); - dst.date = date == null ? null : date.copy(); - dst.publisher = publisher == null ? null : publisher.copy(); - if (contact != null) { - dst.contact = new ArrayList(); - for (ContactDetail i : contact) - dst.contact.add(i.copy()); - }; - if (useContext != null) { - dst.useContext = new ArrayList(); - for (UsageContext i : useContext) - dst.useContext.add(i.copy()); - }; - if (jurisdiction != null) { - dst.jurisdiction = new ArrayList(); - for (CodeableConcept i : jurisdiction) - dst.jurisdiction.add(i.copy()); - }; - dst.copyright = copyright == null ? null : copyright.copy(); - dst.purpose = purpose == null ? null : purpose.copy(); - if (actor != null) { - dst.actor = new ArrayList(); - for (ExampleScenarioActorComponent i : actor) - dst.actor.add(i.copy()); - }; - if (instance != null) { - dst.instance = new ArrayList(); - for (ExampleScenarioInstanceComponent i : instance) - dst.instance.add(i.copy()); - }; - if (process != null) { - dst.process = new ArrayList(); - for (ExampleScenarioProcessComponent i : process) - dst.process.add(i.copy()); - }; - if (workflow != null) { - dst.workflow = new ArrayList(); - for (CanonicalType i : workflow) - dst.workflow.add(i.copy()); - }; - } + public void copyValues(ExampleScenario dst) { + super.copyValues(dst); + dst.url = url == null ? null : url.copy(); + if (identifier != null) { + dst.identifier = new ArrayList(); + for (Identifier i : identifier) + dst.identifier.add(i.copy()); + }; + dst.version = version == null ? null : version.copy(); + dst.name = name == null ? null : name.copy(); + dst.status = status == null ? null : status.copy(); + dst.experimental = experimental == null ? null : experimental.copy(); + dst.date = date == null ? null : date.copy(); + dst.publisher = publisher == null ? null : publisher.copy(); + if (contact != null) { + dst.contact = new ArrayList(); + for (ContactDetail i : contact) + dst.contact.add(i.copy()); + }; + if (useContext != null) { + dst.useContext = new ArrayList(); + for (UsageContext i : useContext) + dst.useContext.add(i.copy()); + }; + if (jurisdiction != null) { + dst.jurisdiction = new ArrayList(); + for (CodeableConcept i : jurisdiction) + dst.jurisdiction.add(i.copy()); + }; + dst.copyright = copyright == null ? null : copyright.copy(); + dst.purpose = purpose == null ? null : purpose.copy(); + if (actor != null) { + dst.actor = new ArrayList(); + for (ExampleScenarioActorComponent i : actor) + dst.actor.add(i.copy()); + }; + if (instance != null) { + dst.instance = new ArrayList(); + for (ExampleScenarioInstanceComponent i : instance) + dst.instance.add(i.copy()); + }; + if (process != null) { + dst.process = new ArrayList(); + for (ExampleScenarioProcessComponent i : process) + dst.process.add(i.copy()); + }; + if (workflow != null) { + dst.workflow = new ArrayList(); + for (CanonicalType i : workflow) + dst.workflow.add(i.copy()); + }; + } - protected ExampleScenario typedCopy() { - return copy(); - } + protected ExampleScenario typedCopy() { + return copy(); + } - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof ExampleScenario)) - return false; - ExampleScenario o = (ExampleScenario) other_; - return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true) - && compareDeep(name, o.name, true) && compareDeep(status, o.status, true) && compareDeep(experimental, o.experimental, true) - && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true) - && compareDeep(useContext, o.useContext, true) && compareDeep(jurisdiction, o.jurisdiction, true) - && compareDeep(copyright, o.copyright, true) && compareDeep(purpose, o.purpose, true) && compareDeep(actor, o.actor, true) - && compareDeep(instance, o.instance, true) && compareDeep(process, o.process, true) && compareDeep(workflow, o.workflow, true) - ; - } + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ExampleScenario)) + return false; + ExampleScenario o = (ExampleScenario) other_; + return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true) + && compareDeep(name, o.name, true) && compareDeep(status, o.status, true) && compareDeep(experimental, o.experimental, true) + && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true) + && compareDeep(useContext, o.useContext, true) && compareDeep(jurisdiction, o.jurisdiction, true) + && compareDeep(copyright, o.copyright, true) && compareDeep(purpose, o.purpose, true) && compareDeep(actor, o.actor, true) + && compareDeep(instance, o.instance, true) && compareDeep(process, o.process, true) && compareDeep(workflow, o.workflow, true) + ; + } - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof ExampleScenario)) - return false; - ExampleScenario o = (ExampleScenario) other_; - return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true) - && compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true) && compareValues(date, o.date, true) - && compareValues(publisher, o.publisher, true) && compareValues(copyright, o.copyright, true) && compareValues(purpose, o.purpose, true) - && compareValues(workflow, o.workflow, true); - } + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ExampleScenario)) + return false; + ExampleScenario o = (ExampleScenario) other_; + return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true) + && compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true) && compareValues(date, o.date, true) + && compareValues(publisher, o.publisher, true) && compareValues(copyright, o.copyright, true) && compareValues(purpose, o.purpose, true) + && compareValues(workflow, o.workflow, true); + } - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version - , name, status, experimental, date, publisher, contact, useContext, jurisdiction - , copyright, purpose, actor, instance, process, workflow); - } + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version + , name, status, experimental, date, publisher, contact, useContext, jurisdiction + , copyright, purpose, actor, instance, process, workflow); + } @Override public ResourceType getResourceType() { return ResourceType.ExampleScenario; - } + } - /** + /** * Search parameter: context-quantity *

* Description: A quantity- or range-valued use context assigned to the example scenario
@@ -4954,7 +4954,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="context-quantity", path="(ExampleScenario.useContext.value as Quantity) | (ExampleScenario.useContext.value as Range)", description="A quantity- or range-valued use context assigned to the example scenario", type="quantity" ) public static final String SP_CONTEXT_QUANTITY = "context-quantity"; - /** + /** * Fluent Client search parameter constant for context-quantity *

* Description: A quantity- or range-valued use context assigned to the example scenario
@@ -4964,7 +4964,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** + /** * Search parameter: context-type-quantity *

* Description: A use context type and quantity- or range-based value assigned to the example scenario
@@ -4974,7 +4974,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="context-type-quantity", path="ExampleScenario.useContext", description="A use context type and quantity- or range-based value assigned to the example scenario", type="composite", compositeOf={"context-type", "context-quantity"} ) public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** + /** * Fluent Client search parameter constant for context-type-quantity *

* Description: A use context type and quantity- or range-based value assigned to the example scenario
@@ -4984,7 +4984,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - /** + /** * Search parameter: context-type-value *

* Description: A use context type and value assigned to the example scenario
@@ -4994,7 +4994,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="context-type-value", path="ExampleScenario.useContext", description="A use context type and value assigned to the example scenario", type="composite", compositeOf={"context-type", "context"} ) public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** + /** * Fluent Client search parameter constant for context-type-value *

* Description: A use context type and value assigned to the example scenario
@@ -5004,7 +5004,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** + /** * Search parameter: context-type *

* Description: A type of use context assigned to the example scenario
@@ -5014,7 +5014,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="context-type", path="ExampleScenario.useContext.code", description="A type of use context assigned to the example scenario", type="token" ) public static final String SP_CONTEXT_TYPE = "context-type"; - /** + /** * Fluent Client search parameter constant for context-type *

* Description: A type of use context assigned to the example scenario
@@ -5024,7 +5024,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** + /** * Search parameter: context *

* Description: A use context assigned to the example scenario
@@ -5034,7 +5034,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="context", path="(ExampleScenario.useContext.value as CodeableConcept)", description="A use context assigned to the example scenario", type="token" ) public static final String SP_CONTEXT = "context"; - /** + /** * Fluent Client search parameter constant for context *

* Description: A use context assigned to the example scenario
@@ -5044,7 +5044,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** + /** * Search parameter: date *

* Description: The example scenario publication date
@@ -5054,7 +5054,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="date", path="ExampleScenario.date", description="The example scenario publication date", type="date" ) public static final String SP_DATE = "date"; - /** + /** * Fluent Client search parameter constant for date *

* Description: The example scenario publication date
@@ -5064,7 +5064,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - /** + /** * Search parameter: identifier *

* Description: External identifier for the example scenario
@@ -5074,7 +5074,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="identifier", path="ExampleScenario.identifier", description="External identifier for the example scenario", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - /** + /** * Fluent Client search parameter constant for identifier *

* Description: External identifier for the example scenario
@@ -5084,7 +5084,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** + /** * Search parameter: jurisdiction *

* Description: Intended jurisdiction for the example scenario
@@ -5094,7 +5094,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="jurisdiction", path="ExampleScenario.jurisdiction", description="Intended jurisdiction for the example scenario", type="token" ) public static final String SP_JURISDICTION = "jurisdiction"; - /** + /** * Fluent Client search parameter constant for jurisdiction *

* Description: Intended jurisdiction for the example scenario
@@ -5104,7 +5104,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); - /** + /** * Search parameter: name *

* Description: Computationally friendly name of the example scenario
@@ -5114,7 +5114,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="name", path="ExampleScenario.name", description="Computationally friendly name of the example scenario", type="string" ) public static final String SP_NAME = "name"; - /** + /** * Fluent Client search parameter constant for name *

* Description: Computationally friendly name of the example scenario
@@ -5124,7 +5124,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); - /** + /** * Search parameter: publisher *

* Description: Name of the publisher of the example scenario
@@ -5134,7 +5134,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="publisher", path="ExampleScenario.publisher", description="Name of the publisher of the example scenario", type="string" ) public static final String SP_PUBLISHER = "publisher"; - /** + /** * Fluent Client search parameter constant for publisher *

* Description: Name of the publisher of the example scenario
@@ -5144,7 +5144,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); - /** + /** * Search parameter: status *

* Description: The current status of the example scenario
@@ -5154,7 +5154,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="status", path="ExampleScenario.status", description="The current status of the example scenario", type="token" ) public static final String SP_STATUS = "status"; - /** + /** * Fluent Client search parameter constant for status *

* Description: The current status of the example scenario
@@ -5164,7 +5164,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - /** + /** * Search parameter: url *

* Description: The uri that identifies the example scenario
@@ -5174,7 +5174,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="url", path="ExampleScenario.url", description="The uri that identifies the example scenario", type="uri" ) public static final String SP_URL = "url"; - /** + /** * Fluent Client search parameter constant for url *

* Description: The uri that identifies the example scenario
@@ -5184,7 +5184,7 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); - /** + /** * Search parameter: version *

* Description: The business version of the example scenario
@@ -5194,7 +5194,7 @@ public class ExampleScenario extends CanonicalResource { */ @SearchParamDefinition(name="version", path="ExampleScenario.version", description="The business version of the example scenario", type="token" ) public static final String SP_VERSION = "version"; - /** + /** * Fluent Client search parameter constant for version *

* Description: The business version of the example scenario
@@ -5204,65 +5204,68 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); - @Override - public StringType getTitleElement() { - return new StringType(); - } - - @Override - public boolean hasTitleElement() { - return false; - } - - @Override - public boolean hasTitle() { - return false; - } - - @Override - public CanonicalResource setTitleElement(StringType value) { - return this; - } - - @Override - public String getTitle() { - return null; - } - - @Override - public CanonicalResource setTitle(String value) { - return this; - } - - @Override - public MarkdownType getDescriptionElement() { - return new MarkdownType(); - } - - @Override - public boolean hasDescriptionElement() { - return false; - } - - @Override - public boolean hasDescription() { - return false; - } - - @Override - public CanonicalResource setDescriptionElement(MarkdownType value) { - return this; - } - - @Override - public String getDescription() { - return null; - } - - @Override - public CanonicalResource setDescription(String value) { - return this; - } + @Override + public String getDescription() { + return new String(); + } + + @Override + public MarkdownType getDescriptionElement() { + return new MarkdownType(); + } + + @Override + public CanonicalResource setDescription(String theDescription) { + return this; + } + + @Override + public CanonicalResource setDescriptionElement(MarkdownType theDescription) { + return this; + } + + @Override + public boolean hasDescription() { + return false; + } + + @Override + public boolean hasDescriptionElement() { + return false; + } + + + @Override + public String getTitle() { + return new String(); + } + + @Override + public StringType getTitleElement() { + return new StringType(); + } + + @Override + public CanonicalResource setTitle(String theTitle) { + return this; + } + + @Override + public CanonicalResource setTitleElement(StringType theTitle) { + return this; + } + + @Override + public boolean hasTitle() { + return false; + } + + @Override + public boolean hasTitleElement() { + return false; + } + + } 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 7e238fd95..629457dad 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 c88abe406..d3f4aa259 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 4deb1f240..17cb65ed1 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 ad40601f0..9e8b77545 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 4861efdba..771b8b76a 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 50655cdea..584cdf933 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 161d9e567..d6f7122b9 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -51,7 +51,7 @@ import ca.uhn.fhir.model.api.annotation.Block; * A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set. */ @ResourceDef(name="GraphDefinition", profile="http://hl7.org/fhir/StructureDefinition/GraphDefinition") -public class GraphDefinition extends DomainResource { +public class GraphDefinition extends CanonicalResource { public enum GraphCompartmentRule { /** @@ -3663,6 +3663,98 @@ public class GraphDefinition extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + @Override + public String getCopyright() { + return new String(); + } + + @Override + public MarkdownType getCopyrightElement() { + return new MarkdownType(); + } + + @Override + public CanonicalResource setCopyright(String theCopyright) { + return this; + } + + @Override + public CanonicalResource setCopyrightElement(MarkdownType theCopyright) { + return this; + } + + @Override + public boolean hasCopyright() { + return false; + } + + @Override + public boolean hasCopyrightElement() { + return false; + } + + + @Override + public List getIdentifier() { + return new ArrayList<>(); + } + + @Override + public CanonicalResource setIdentifier(List theIdentifier) { + return this; + } + + @Override + public boolean hasIdentifier() { + return false; + } + + @Override + public Identifier addIdentifier() { + return null; + } + + @Override + public CanonicalResource addIdentifier(Identifier t) { + return null; + } + + @Override + public Identifier getIdentifierFirstRep() { + return new Identifier(); + } + + @Override + public String getTitle() { + return new String(); + } + + @Override + public StringType getTitleElement() { + return new StringType(); + } + + @Override + public CanonicalResource setTitle(String theTitle) { + return this; + } + + @Override + public CanonicalResource setTitleElement(StringType theTitle) { + return this; + } + + @Override + public boolean hasTitle() { + return false; + } + + @Override + public boolean hasTitleElement() { + return false; + } + + // Manual code (from Configuration.txt): public boolean supportsCopyright() { return false; 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 834f75e74..969485629 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 c4bf18f7d..c695f69d1 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 16ca16bed..381c3c1f9 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 95086440a..3562de4b4 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 a92b41598..f6c86edbf 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 2effcd0d1..2db1d89c5 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 e32fae90d..b9cf97e07 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 118614f84..8830611b9 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 76e57bc0a..d0a731c9e 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 b580e60a1..45555c92b 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -11568,66 +11568,7 @@ public class ImplementationGuide extends CanonicalResource { return ResourceType.ImplementationGuide; } - @Override - public List getIdentifier() { - return new ArrayList<>(); - } - - @Override - public CanonicalResource setIdentifier(List theIdentifier) { - return this; - } - - @Override - public boolean hasIdentifier() { - return false; - } - - @Override - public Identifier addIdentifier() { - return new Identifier(); - } - - @Override - public CanonicalResource addIdentifier(Identifier t) { - return this; - } - - @Override - public Identifier getIdentifierFirstRep() { - return new Identifier(); - } - - @Override - public MarkdownType getPurposeElement() { - return new MarkdownType(); - } - - @Override - public boolean hasPurposeElement() { - return false; - } - - @Override - public boolean hasPurpose() { - return false; - } - - @Override - public CanonicalResource setPurposeElement(MarkdownType value) { - return this; - } - - @Override - public String getPurpose() { - return null; - } - - @Override - public CanonicalResource setPurpose(String value) { - return this; - } -/** + /** * Search parameter: depends-on *

* Description: Identity of the IG that this depends on
@@ -12439,6 +12380,67 @@ public class ImplementationGuide extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + @Override + public String getPurpose() { + return new String(); + } + + @Override + public MarkdownType getPurposeElement() { + return new MarkdownType(); + } + + @Override + public CanonicalResource setPurpose(String thePurpose) { + return this; + } + + @Override + public CanonicalResource setPurposeElement(MarkdownType thePurpose) { + return this; + } + + @Override + public boolean hasPurpose() { + return false; + } + + @Override + public boolean hasPurposeElement() { + return false; + } + + + @Override + public List getIdentifier() { + return new ArrayList<>(); + } + + @Override + public CanonicalResource setIdentifier(List theIdentifier) { + return this; + } + + @Override + public boolean hasIdentifier() { + return false; + } + + @Override + public Identifier addIdentifier() { + return null; + } + + @Override + public CanonicalResource addIdentifier(Identifier t) { + return null; + } + + @Override + public Identifier getIdentifierFirstRep() { + return new Identifier(); + } + } 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 2658c98d3..8f12b081e 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 392932f59..3b014920f 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 4ba06c43c..99dbf602e 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 5e7eeff01..ed5cd2b12 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -51,7 +51,7 @@ import ca.uhn.fhir.model.api.annotation.Block; * The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets. */ @ResourceDef(name="Library", profile="http://hl7.org/fhir/StructureDefinition/Library") -public class Library extends MetadataResource { +public class Library extends CanonicalResource { /** * An absolute URI that is used to identify this library when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this library is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the library is stored on different servers. 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 81acde709..d8c53a2a5 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 253bc629a..4465f5830 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -686,7 +686,7 @@ public class ListResource extends DomainResource { public Enumeration getStatusElement() { if (this.status == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create List.status"); + throw new Error("Attempt to auto-create ListResource.status"); else if (Configuration.doAutoCreate()) this.status = new Enumeration(new ListStatusEnumFactory()); // bb return this.status; @@ -731,7 +731,7 @@ public class ListResource extends DomainResource { public Enumeration getModeElement() { if (this.mode == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create List.mode"); + throw new Error("Attempt to auto-create ListResource.mode"); else if (Configuration.doAutoCreate()) this.mode = new Enumeration(new ListModeEnumFactory()); // bb return this.mode; @@ -776,7 +776,7 @@ public class ListResource extends DomainResource { public StringType getTitleElement() { if (this.title == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create List.title"); + throw new Error("Attempt to auto-create ListResource.title"); else if (Configuration.doAutoCreate()) this.title = new StringType(); // bb return this.title; @@ -825,7 +825,7 @@ public class ListResource extends DomainResource { public CodeableConcept getCode() { if (this.code == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create List.code"); + throw new Error("Attempt to auto-create ListResource.code"); else if (Configuration.doAutoCreate()) this.code = new CodeableConcept(); // cc return this.code; @@ -849,7 +849,7 @@ public class ListResource extends DomainResource { public Reference getSubject() { if (this.subject == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create List.subject"); + throw new Error("Attempt to auto-create ListResource.subject"); else if (Configuration.doAutoCreate()) this.subject = new Reference(); // cc return this.subject; @@ -873,7 +873,7 @@ public class ListResource extends DomainResource { public Reference getEncounter() { if (this.encounter == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create List.encounter"); + throw new Error("Attempt to auto-create ListResource.encounter"); else if (Configuration.doAutoCreate()) this.encounter = new Reference(); // cc return this.encounter; @@ -897,7 +897,7 @@ public class ListResource extends DomainResource { public DateTimeType getDateElement() { if (this.date == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create List.date"); + throw new Error("Attempt to auto-create ListResource.date"); else if (Configuration.doAutoCreate()) this.date = new DateTimeType(); // bb return this.date; @@ -946,7 +946,7 @@ public class ListResource extends DomainResource { public Reference getSource() { if (this.source == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create List.source"); + throw new Error("Attempt to auto-create ListResource.source"); else if (Configuration.doAutoCreate()) this.source = new Reference(); // cc return this.source; @@ -970,7 +970,7 @@ public class ListResource extends DomainResource { public CodeableConcept getOrderedBy() { if (this.orderedBy == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create List.orderedBy"); + throw new Error("Attempt to auto-create ListResource.orderedBy"); else if (Configuration.doAutoCreate()) this.orderedBy = new CodeableConcept(); // cc return this.orderedBy; @@ -1100,7 +1100,7 @@ public class ListResource extends DomainResource { public CodeableConcept getEmptyReason() { if (this.emptyReason == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create List.emptyReason"); + throw new Error("Attempt to auto-create ListResource.emptyReason"); else if (Configuration.doAutoCreate()) this.emptyReason = new CodeableConcept(); // cc return this.emptyReason; 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 4fa0b7a3f..98cc61746 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 25232c208..4368ba39b 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 bb48b7931..ae02be9c7 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 08c90814e..0f26fc535 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 707ff934d..76b06f9a1 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 68ac900ea..83d4864af 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 a19c3080d..c4aa4f11f 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 174fc8f18..136d0b1d1 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 7215bec65..dcc9d8a44 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 8177c41e3..91685a8ea 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 4a2728fa6..1253c0e74 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 0dfe8ff07..7f4d03c9b 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 50a138b97..d5a8fd4a6 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 680197a11..105e71585 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 70a1000a9..1cc0c7afc 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 108ad1d97..a4c06da44 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 299c4387c..e4c46ab4f 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 4d47f7ddb..b2158acdb 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 87b141024..60e3e76b5 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -1775,218 +1775,6 @@ public class NamingSystem extends CanonicalResource { return ResourceType.NamingSystem; } -// end addition - - @Override - public UriType getUrlElement() { - return new UriType(); - } - - @Override - public boolean hasUrlElement() { - return false; - } - - @Override - public boolean hasUrl() { - return false; - } - - @Override - public CanonicalResource setUrlElement(UriType value) { - return this; - } - - @Override - public String getUrl() { - return null; - } - - @Override - public CanonicalResource setUrl(String value) { - return this; - } - - @Override - public List getIdentifier() { - return new ArrayList<>(); - } - - @Override - public CanonicalResource setIdentifier(List theIdentifier) { - return this; - } - - @Override - public boolean hasIdentifier() { - return false; - } - - @Override - public Identifier addIdentifier() { - return new Identifier(); - } - - @Override - public CanonicalResource addIdentifier(Identifier t) { - return this; - } - - @Override - public Identifier getIdentifierFirstRep() { - return new Identifier(); - } - - @Override - public StringType getVersionElement() { - return new StringType(); - } - - @Override - public boolean hasVersionElement() { - return false; - } - - @Override - public boolean hasVersion() { - return false; - } - - @Override - public CanonicalResource setVersionElement(StringType value) { - return this; - } - - @Override - public String getVersion() { - return null; - } - - @Override - public CanonicalResource setVersion(String value) { - return this; - } - - @Override - public StringType getTitleElement() { - return new StringType(); - } - - @Override - public boolean hasTitleElement() { - return false; - } - - @Override - public boolean hasTitle() { - return false; - } - - @Override - public CanonicalResource setTitleElement(StringType value) { - return this; - } - - @Override - public String getTitle() { - return null; - } - - @Override - public CanonicalResource setTitle(String value) { - return this; - } - - @Override - public BooleanType getExperimentalElement() { - return new BooleanType(); - } - - @Override - public boolean hasExperimentalElement() { - return false; - } - - @Override - public boolean hasExperimental() { - return false; - } - - @Override - public CanonicalResource setExperimentalElement(BooleanType value) { - return this; - } - - @Override - public boolean getExperimental() { - return false; - } - - @Override - public CanonicalResource setExperimental(boolean value) { - return this; - } - - @Override - public MarkdownType getPurposeElement() { - return new MarkdownType(); - } - - @Override - public boolean hasPurposeElement() { - return false; - } - - @Override - public boolean hasPurpose() { - return false; - } - - @Override - public CanonicalResource setPurposeElement(MarkdownType value) { - return this; - } - - @Override - public String getPurpose() { - return null; - } - - @Override - public CanonicalResource setPurpose(String value) { - return this; - } - - @Override - public MarkdownType getCopyrightElement() { - return new MarkdownType(); - } - - @Override - public boolean hasCopyrightElement() { - return false; - } - - @Override - public boolean hasCopyright() { - return false; - } - - @Override - public CanonicalResource setCopyrightElement(MarkdownType value) { - return this; - } - - @Override - public String getCopyright() { - return null; - } - - @Override - public CanonicalResource setCopyright(String value) { - return this; - } - /** * Search parameter: contact *

@@ -2717,6 +2505,222 @@ public class NamingSystem extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + @Override + public String getPurpose() { + return new String(); + } + + @Override + public MarkdownType getPurposeElement() { + return new MarkdownType(); + } + + @Override + public CanonicalResource setPurpose(String thePurpose) { + return this; + } + + @Override + public CanonicalResource setPurposeElement(MarkdownType thePurpose) { + return this; + } + + @Override + public boolean hasPurpose() { + return false; + } + + @Override + public boolean hasPurposeElement() { + return false; + } + + + @Override + public String getCopyright() { + return new String(); + } + + @Override + public MarkdownType getCopyrightElement() { + return new MarkdownType(); + } + + @Override + public CanonicalResource setCopyright(String theCopyright) { + return this; + } + + @Override + public CanonicalResource setCopyrightElement(MarkdownType theCopyright) { + return this; + } + + @Override + public boolean hasCopyright() { + return false; + } + + @Override + public boolean hasCopyrightElement() { + return false; + } + + + @Override + public String getUrl() { + return new String(); + } + + @Override + public UriType getUrlElement() { + return new UriType(); + } + + @Override + public CanonicalResource setUrl(String theUrl) { + return this; + } + + @Override + public CanonicalResource setUrlElement(UriType theUrl) { + return this; + } + + @Override + public boolean hasUrl() { + return false; + } + + @Override + public boolean hasUrlElement() { + return false; + } + + + @Override + public boolean getExperimental() { + return false; + } + + @Override + public BooleanType getExperimentalElement() { + return new BooleanType(); + } + + @Override + public CanonicalResource setExperimental(boolean theExperimental) { + return this; + } + + @Override + public CanonicalResource setExperimentalElement(BooleanType theExperimental) { + return this; + } + + @Override + public boolean hasExperimental() { + return false; + } + + @Override + public boolean hasExperimentalElement() { + return false; + } + + + @Override + public String getVersion() { + return new String(); + } + + @Override + public StringType getVersionElement() { + return new StringType(); + } + + @Override + public CanonicalResource setVersion(String theVersion) { + return this; + } + + @Override + public CanonicalResource setVersionElement(StringType theVersion) { + return this; + } + + @Override + public boolean hasVersion() { + return false; + } + + @Override + public boolean hasVersionElement() { + return false; + } + + + @Override + public List getIdentifier() { + return new ArrayList<>(); + } + + @Override + public CanonicalResource setIdentifier(List theIdentifier) { + return this; + } + + @Override + public boolean hasIdentifier() { + return false; + } + + @Override + public Identifier addIdentifier() { + return null; + } + + @Override + public CanonicalResource addIdentifier(Identifier t) { + return null; + } + + @Override + public Identifier getIdentifierFirstRep() { + return new Identifier(); + } + + @Override + public String getTitle() { + return new String(); + } + + @Override + public StringType getTitleElement() { + return new StringType(); + } + + @Override + public CanonicalResource setTitle(String theTitle) { + return this; + } + + @Override + public CanonicalResource setTitleElement(StringType theTitle) { + return this; + } + + @Override + public boolean hasTitle() { + return false; + } + + @Override + public boolean hasTitleElement() { + return false; + } + + // Manual code (from Configuration.txt): public boolean supportsCopyright() { return false; 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 2c858edd8..e6d9b5e58 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 3fc274045..42f4f4905 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 f9336ddac..47385f923 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 21cc55b09..a97fc1455 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 d4919af21..82b7e6979 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 20f91d162..739978045 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -3815,74 +3815,6 @@ public class OperationDefinition extends CanonicalResource { return ResourceType.OperationDefinition; } -// Manual code (from Configuration.txt): - public boolean supportsCopyright() { - return false; - } - - @Override - public List getIdentifier() { - return new ArrayList<>(); - } - - @Override - public CanonicalResource setIdentifier(List theIdentifier) { - return this; - } - - @Override - public boolean hasIdentifier() { - return false; - } - - @Override - public Identifier addIdentifier() { - return new Identifier(); - } - - @Override - public CanonicalResource addIdentifier(Identifier t) { - return this; - } - - @Override - public Identifier getIdentifierFirstRep() { - return new Identifier(); - } - - @Override - public MarkdownType getCopyrightElement() { - return new MarkdownType(); - } - - @Override - public boolean hasCopyrightElement() { - return false; - } - - @Override - public boolean hasCopyright() { - return false; - } - - @Override - public CanonicalResource setCopyrightElement(MarkdownType value) { - return this; - } - - @Override - public String getCopyright() { - return null; - } - - @Override - public CanonicalResource setCopyright(String value) { - return this; - } - - -// end addition - /** * Search parameter: base *

@@ -4775,5 +4707,73 @@ public class OperationDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + @Override + public String getCopyright() { + return new String(); + } + + @Override + public MarkdownType getCopyrightElement() { + return new MarkdownType(); + } + + @Override + public CanonicalResource setCopyright(String theCopyright) { + return this; + } + + @Override + public CanonicalResource setCopyrightElement(MarkdownType theCopyright) { + return this; + } + + @Override + public boolean hasCopyright() { + return false; + } + + @Override + public boolean hasCopyrightElement() { + return false; + } + + + @Override + public List getIdentifier() { + return new ArrayList<>(); + } + + @Override + public CanonicalResource setIdentifier(List theIdentifier) { + return this; + } + + @Override + public boolean hasIdentifier() { + return false; + } + + @Override + public Identifier addIdentifier() { + return null; + } + + @Override + public CanonicalResource addIdentifier(Identifier t) { + return null; + } + + @Override + public Identifier getIdentifierFirstRep() { + return new Identifier(); + } + +// Manual code (from Configuration.txt): + public boolean supportsCopyright() { + return false; + } + +// end addition + } 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 8f00dc294..f16def07e 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 ace76f485..eb4138fbd 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 337deb413..cd24fd0ef 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 d191d2ff5..8e8ca2e3d 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 c5506e684..93f0a3ffd 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 2fb5d88dc..7b8a187eb 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 2dfe43762..4c2a2073b 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 451a39cc9..7f675a1b0 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 fb9d89e71..2e638e990 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 94d975c8f..175287c96 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 2e5ec1e3a..24dd8ff3f 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 eea8f0200..5ce9eb03d 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Population.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Population.java index 341bab642..97c821495 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Population.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Population.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 2d029d843..fd546f837 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 31996dcff..149feb430 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 644504a57..6c857f49c 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 342271870..e5a190128 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ProductShelfLife.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ProductShelfLife.java index f9a3ed750..e8f73116c 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ProductShelfLife.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ProductShelfLife.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 c22c29ff1..febe2b7eb 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 45930a3e5..11e712a60 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 99ed1e297..f1028e281 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 d729bc0d1..7eef2cd2c 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Range.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Range.java index 4d96cddd7..8af90609a 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Range.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Range.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Ratio.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Ratio.java index 642c6ff41..6c3b328bb 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Ratio.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/Ratio.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RatioRange.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RatioRange.java index 9efbefcf9..f0bde8c37 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RatioRange.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/RatioRange.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 4abad54dd..71c7b0cee 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 c59400c5d..ba06a2527 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 76e9281e8..5e7da4b47 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 0f148b21d..a7471b719 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 9f2ccbb5b..9f4ef2415 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 f927a996b..f3d49558d 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -51,7 +51,7 @@ import ca.uhn.fhir.model.api.annotation.Block; * The ResearchDefinition resource describes the conditional state (population and any exposures being compared within the population) and outcome (if specified) that the knowledge (evidence, assertion, recommendation) is about. */ @ResourceDef(name="ResearchDefinition", profile="http://hl7.org/fhir/StructureDefinition/ResearchDefinition") -public class ResearchDefinition extends DomainResource { +public class ResearchDefinition extends CanonicalResource { /** * An absolute URI that is used to identify this research definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this research definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the research definition is stored on different servers. 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 f623299d3..e0b14de4e 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -51,7 +51,7 @@ import ca.uhn.fhir.model.api.annotation.Block; * The ResearchElementDefinition resource describes a "PICO" element that knowledge (evidence, assertion, recommendation) is about. */ @ResourceDef(name="ResearchElementDefinition", profile="http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition") -public class ResearchElementDefinition extends DomainResource { +public class ResearchElementDefinition extends CanonicalResource { public enum ResearchElementType { /** 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 6b3244864..0868e3864 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 82d88c8d7..1e64f480c 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 ec1048d02..669d6d36d 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResourceFactory.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResourceFactory.java index 85bb7baa5..345ecdc85 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResourceFactory.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResourceFactory.java @@ -28,7 +28,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResourceType.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResourceType.java index ee8d5d97a..face17fc7 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResourceType.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/ResourceType.java @@ -28,7 +28,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild 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 e51dc13b0..1171c38d9 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 e786acc37..2bf0aa153 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 1aebf7683..bb8f53065 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 ef14c5820..6f25add23 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -2974,7 +2974,7 @@ public class SearchParameter extends CanonicalResource { return ResourceType.SearchParameter; } -/** + /** * Search parameter: base *

* Description: The resource type(s) this search parameter applies to
@@ -3776,6 +3776,98 @@ public class SearchParameter extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + @Override + public String getCopyright() { + return new String(); + } + + @Override + public MarkdownType getCopyrightElement() { + return new MarkdownType(); + } + + @Override + public CanonicalResource setCopyright(String theCopyright) { + return this; + } + + @Override + public CanonicalResource setCopyrightElement(MarkdownType theCopyright) { + return this; + } + + @Override + public boolean hasCopyright() { + return false; + } + + @Override + public boolean hasCopyrightElement() { + return false; + } + + + @Override + public List getIdentifier() { + return new ArrayList<>(); + } + + @Override + public CanonicalResource setIdentifier(List theIdentifier) { + return this; + } + + @Override + public boolean hasIdentifier() { + return false; + } + + @Override + public Identifier addIdentifier() { + return null; + } + + @Override + public CanonicalResource addIdentifier(Identifier t) { + return null; + } + + @Override + public Identifier getIdentifierFirstRep() { + return new Identifier(); + } + + @Override + public String getTitle() { + return new String(); + } + + @Override + public StringType getTitleElement() { + return new StringType(); + } + + @Override + public CanonicalResource setTitle(String theTitle) { + return this; + } + + @Override + public CanonicalResource setTitleElement(StringType theTitle) { + return this; + } + + @Override + public boolean hasTitle() { + return false; + } + + @Override + public boolean hasTitleElement() { + return false; + } + + // Manual code (from Configuration.txt): public boolean supportsCopyright() { return false; @@ -3783,96 +3875,5 @@ public class SearchParameter extends CanonicalResource { // end addition - - @Override - public List getIdentifier() { - return new ArrayList<>(); - } - - @Override - public CanonicalResource setIdentifier(List theIdentifier) { - return this; - } - - @Override - public boolean hasIdentifier() { - return false; - } - - @Override - public Identifier addIdentifier() { - return new Identifier(); - } - - @Override - public CanonicalResource addIdentifier(Identifier t) { - return this; - } - - @Override - public Identifier getIdentifierFirstRep() { - return new Identifier(); - } - - @Override - public MarkdownType getCopyrightElement() { - return new MarkdownType(); - } - - @Override - public boolean hasCopyrightElement() { - return false; - } - - @Override - public boolean hasCopyright() { - return false; - } - - @Override - public CanonicalResource setCopyrightElement(MarkdownType value) { - return this; - } - - @Override - public String getCopyright() { - return null; - } - - @Override - public CanonicalResource setCopyright(String value) { - return this; - } - - @Override - public StringType getTitleElement() { - return new StringType(); - } - - @Override - public boolean hasTitleElement() { - return false; - } - - @Override - public boolean hasTitle() { - return false; - } - - @Override - public CanonicalResource setTitleElement(StringType value) { - return this; - } - - @Override - public String getTitle() { - return null; - } - - @Override - public CanonicalResource setTitle(String value) { - return this; - } - } 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 2b6d8ceaa..83d6f09b9 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 45c214910..27150ff96 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 df0c13536..498b99408 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 f7b013d84..9f2e584c3 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 198942a24..f3db53183 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 87ad2b863..c394259c9 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 4f1fd5c75..820429d38 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 9724ce592..e91c3cd25 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 3453a030c..c7dac2b77 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 dbda95812..3554924ae 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 d5c579645..7f7375a16 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 c989f6d5f..10d20c509 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 1bc5ea012..3e3fe3275 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 8e173c751..3198d25db 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 bcc779fe6..bf999f25e 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 0f5713cb7..bd8a398eb 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -4764,36 +4764,7 @@ public class TerminologyCapabilities extends CanonicalResource { return ResourceType.TerminologyCapabilities; } - @Override - public List getIdentifier() { - return new ArrayList<>(); - } - - @Override - public CanonicalResource setIdentifier(List theIdentifier) { - return this; - } - - @Override - public boolean hasIdentifier() { - return false; - } - - @Override - public Identifier addIdentifier() { - return null; - } - - @Override - public CanonicalResource addIdentifier(Identifier t) { - return this; - } - - @Override - public Identifier getIdentifierFirstRep() { - return new Identifier(); - } -/** + /** * Search parameter: context-quantity *

* Description: Multiple Resources: @@ -5507,6 +5478,36 @@ public class TerminologyCapabilities extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + @Override + public List getIdentifier() { + return new ArrayList<>(); + } + + @Override + public CanonicalResource setIdentifier(List theIdentifier) { + return this; + } + + @Override + public boolean hasIdentifier() { + return false; + } + + @Override + public Identifier addIdentifier() { + return null; + } + + @Override + public CanonicalResource addIdentifier(Identifier t) { + return null; + } + + @Override + public Identifier getIdentifierFirstRep() { + return new Identifier(); + } + } 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 d774547e4..30d77d7ce 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 b5abc7044..51b5c3382 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; @@ -51,7 +51,7 @@ import ca.uhn.fhir.model.api.annotation.Block; * A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification. */ @ResourceDef(name="TestScript", profile="http://hl7.org/fhir/StructureDefinition/TestScript") -public class TestScript extends DomainResource { +public class TestScript extends CanonicalResource { public enum AssertionDirectionType { /** @@ -11572,30 +11572,70 @@ public class TestScript extends DomainResource { return this; } + /** + * only one on this implementation + */ + @Override + public int getIdentifierMax() { + return 1; + } /** * @return {@link #identifier} (A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance.) */ - public Identifier getIdentifier() { - if (this.identifier == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create TestScript.identifier"); - else if (Configuration.doAutoCreate()) - this.identifier = new Identifier(); // cc - return this.identifier; + public List getIdentifier() { + List list = new ArrayList(); + if (this.identifier == null) { + list.add(identifier); + } + return list; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public TestScript setIdentifier(List theIdentifier) { + if (theIdentifier.size() == 0) { + this.identifier = null; + } else if (theIdentifier.size() == 1) { + this.identifier = theIdentifier.get(0); + } else { + throw new Error("Cannot have more than one TestScript.identifier"); + } + return this; } public boolean hasIdentifier() { return this.identifier != null && !this.identifier.isEmpty(); } - /** - * @param value {@link #identifier} (A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance.) - */ - public TestScript setIdentifier(Identifier value) { - this.identifier = value; + public Identifier addIdentifier() { //3 + if (this.identifier == null) { + this.identifier = new Identifier(); + } else { + throw new Error("Cannot have more than one TestScript.identifier"); + } + return this.identifier; + } + + public TestScript addIdentifier(Identifier t) { //3 + if (this.identifier == null) { + this.identifier = t; + } else { + throw new Error("Cannot have more than one TestScript.identifier"); + } return this; } + /** + * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} + */ + public Identifier getIdentifierFirstRep() { + if (identifier == null) { + addIdentifier(); + } + return identifier; + } + /** * @return {@link #version} (The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value */ @@ -12856,7 +12896,7 @@ public class TestScript extends DomainResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 116079: return getUrlElement(); - case -1618432855: return getIdentifier(); + case -1618432855: return getIdentifierFirstRep(); case 351608024: return getVersionElement(); case 3373707: return getNameElement(); case 110371416: return getTitleElement(); 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 9942134d2..07a795bc7 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 d523d7aef..116164f15 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/UsageContext.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/UsageContext.java index 07f93ad76..67781eda5 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/UsageContext.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/model/UsageContext.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 47113e6a5..df27bd398 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 64ef33fc9..03e83c4fc 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date; 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 dfebb2f54..64a8af8e0 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 @@ -29,7 +29,7 @@ package org.hl7.fhir.r4b.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Dec 31, 2021 05:58+1100 for FHIR v4.3.0-snapshot1 +// Generated on Fri, Apr 22, 2022 11:20+1000 for FHIR v4.3.0-cibuild import java.util.ArrayList; import java.util.Date;